Advertisement
Guest User

Untitled

a guest
Nov 17th, 2018
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #MaxThreadsPerHotkey 2
  2.  
  3. running := false
  4. stop := false
  5.  
  6. ~!+^9:: ; - - - ctrl alt shift 9
  7.  
  8. if(!running) {
  9.     running := true
  10. }
  11. else {
  12.     stop := true
  13.     return
  14. }
  15.  
  16. loop {
  17.     WinActivate, ahk_class CameraRaw_WindowClass
  18.     Send ^u
  19.     Send {Down}
  20.     Wait(2000)
  21.     if(stop) {
  22.         running := false
  23.         stop := false
  24.         break
  25.     }
  26.     Sleep, 100
  27.  
  28. }
  29.  
  30. return
  31.  
  32. Wait(time){
  33.     static MyProgress
  34.     tick:=A_TickCount+time
  35.     Gui,New,hwndMyGui
  36.     Gui,-Caption +AlwaysOnTop +Disabled -SysMenu +Owner
  37.         Gui,Margin,0,0
  38.     Gui,Add,Progress,w300 h20 Range%A_TickCount%-%tick% vMyProgress
  39.     Gui,Show,NA
  40.     While A_TickCount<=tick {
  41.         GuiControl,,MyProgress,% A_TickCount
  42.         Sleep 16
  43.     }
  44.     Gui,Destroy
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement