Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #MaxThreadsPerHotkey 2
- running := false
- stop := false
- ~!+^9:: ; - - - ctrl alt shift 9
- if(!running) {
- running := true
- }
- else {
- stop := true
- return
- }
- loop {
- WinActivate, ahk_class CameraRaw_WindowClass
- Send ^u
- Send {Down}
- Wait(2000)
- if(stop) {
- running := false
- stop := false
- break
- }
- Sleep, 100
- }
- return
- Wait(time){
- static MyProgress
- tick:=A_TickCount+time
- Gui,New,hwndMyGui
- Gui,-Caption +AlwaysOnTop +Disabled -SysMenu +Owner
- Gui,Margin,0,0
- Gui,Add,Progress,w300 h20 Range%A_TickCount%-%tick% vMyProgress
- Gui,Show,NA
- While A_TickCount<=tick {
- GuiControl,,MyProgress,% A_TickCount
- Sleep 16
- }
- Gui,Destroy
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement