Add AHK scripts
This commit is contained in:
parent
ae3d0d1f4e
commit
4f403e8f3b
27
AHK/AltTabLoop.ahk
Normal file
27
AHK/AltTabLoop.ahk
Normal file
@ -0,0 +1,27 @@
|
||||
#SingleInstance, Force
|
||||
|
||||
Gui, Add, Button, x0 y21 w121 h29 gstartstop vsstoggle, Start
|
||||
Gui, Add, Button, x160 y21 w121 h29 gover, E&xit
|
||||
|
||||
gui, show, w281 h50
|
||||
|
||||
Loop
|
||||
{
|
||||
while toggle {
|
||||
Send, {AltDown}{Tab}{AltUp}
|
||||
Sleep, 300000
|
||||
if !toggle
|
||||
break
|
||||
}
|
||||
}
|
||||
return
|
||||
|
||||
startstop:
|
||||
toggle := !toggle
|
||||
GuiControl,, sstoggle, % toggle ? "Stop" : "Start"
|
||||
return
|
||||
|
||||
over:
|
||||
GuiClose:
|
||||
GuiEscape:
|
||||
ExitApp
|
32
AHK/CtrlTabLoop.ahk
Normal file
32
AHK/CtrlTabLoop.ahk
Normal file
@ -0,0 +1,32 @@
|
||||
#SingleInstance, Force
|
||||
|
||||
Gui, Add, Text, x52 y23 w121 h29, Minutes:
|
||||
Gui, Add, Edit, x107 y21 w121 h20 vVTime, 5
|
||||
Gui, Add, Button, x0 y50 w121 h29 gstartstop vsstoggle, Start
|
||||
Gui, Add, Button, x160 y50 w121 h29 gover, E&xit
|
||||
gui, show, w281 h80
|
||||
|
||||
TimeVar := 1 * 10000
|
||||
|
||||
MsgBox, 0,, % TimeVar
|
||||
|
||||
Loop
|
||||
{
|
||||
while toggle {
|
||||
Send, {CtrlDown}{Tab}{CtrlUp}
|
||||
Sleep TimeVar
|
||||
if !toggle
|
||||
break
|
||||
}
|
||||
}
|
||||
return
|
||||
|
||||
startstop:
|
||||
toggle := !toggle
|
||||
GuiControl,, sstoggle, % toggle ? "Stop" : "Start"
|
||||
return
|
||||
|
||||
over:
|
||||
GuiClose:
|
||||
GuiEscape:
|
||||
ExitApp
|
28
AHK/MoveMouseLoop.ahk
Normal file
28
AHK/MoveMouseLoop.ahk
Normal file
@ -0,0 +1,28 @@
|
||||
#SingleInstance, Force
|
||||
|
||||
Gui, Add, Button, x0 y21 w121 h29 gstartstop vsstoggle, Start
|
||||
Gui, Add, Button, x160 y21 w121 h29 gover, E&xit
|
||||
|
||||
gui, show, w281 h50
|
||||
|
||||
Loop
|
||||
{
|
||||
while toggle {
|
||||
MouseMove, 0, 100, 0
|
||||
MouseMove, 0, 0, 0
|
||||
Sleep, 300000
|
||||
if !toggle
|
||||
break
|
||||
}
|
||||
}
|
||||
return
|
||||
|
||||
startstop:
|
||||
toggle := !toggle
|
||||
GuiControl,, sstoggle, % toggle ? "Stop" : "Start"
|
||||
return
|
||||
|
||||
over:
|
||||
GuiClose:
|
||||
GuiEscape:
|
||||
ExitApp
|
Loading…
Reference in New Issue
Block a user