Hello,
I need script that press keys Ctrl+Alt+R every 2 secounds. I have succeed to make a script that press one key every 2 secounds but can't do with 3 keys at same time...
Also, I compile a GUI for that script, and lost .ahk file. Is it possible to revert from GUI to .ahk?
Thanks everyone for help.
Need to pres 3 keys simultaneously every 2 secounds Topic is solved
Re: Need to pres 3 keys simultaneously every 2 secounds
Welcome to this AutoHotkey forum!
I don't think AHK supports decompiling as a general activity, but there could be programs for it elsewhere.
Code: Select all
#Requires AutoHotkey v1.1.33
#Persistent
SetTimer go, 2000
go()
Return
go() {
Send ^!r
}
Re: Need to pres 3 keys simultaneously every 2 secounds
Thanks, works perfectly! Just one more question, if I would like to start skript with F4 instead of #Persistent I put F4:: the script does start but it doesn't stop when I press F4 again, for some reason... Sorry I'm new.mikeyww wrote: ↑07 Jun 2023, 07:19Welcome to this AutoHotkey forum!I don't think AHK supports decompiling as a general activity, but there could be programs for it elsewhere.Code: Select all
#Requires AutoHotkey v1.1.33 #Persistent SetTimer go, 2000 go() Return go() { Send ^!r }
Re: Need to pres 3 keys simultaneously every 2 secounds Topic is solved
Code: Select all
#Requires AutoHotkey v1.1.33
F4::
If on := !on {
SetTimer go, 2000
go()
SoundBeep 1500
} Else {
SetTimer go, Off
SoundBeep 1000
}
Return
go() {
Send ^!r
}
Re: Need to pres 3 keys simultaneously every 2 secounds
Thank you verry much!mikeyww wrote: ↑07 Jun 2023, 10:33Code: Select all
#Requires AutoHotkey v1.1.33 F4:: If on := !on { SetTimer go, 2000 go() SoundBeep 1500 } Else { SetTimer go, Off SoundBeep 1000 } Return go() { Send ^!r }