Add AHK scripts

This commit is contained in:
Demonic 2023-07-13 11:46:11 +02:00 committed by GitHub
parent ae3d0d1f4e
commit 4f403e8f3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 87 additions and 0 deletions

27
AHK/AltTabLoop.ahk Normal file
View 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
View 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
View 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