Need help with a toggle script for OBS studio.

Get help with using AutoHotkey and its commands and hotkeys
AriesGOSU
Posts: 6
Joined: 06 Jun 2018, 10:46

Need help with a toggle script for OBS studio.

05 Jun 2020, 18:34

hi, ive been using this script for a toggle between two keys.

Code: Select all

t::Send, % (Toggle :=!Toggle) ? "1" : "2"
this will make the "t" send 12121212 etc.

how ever, i read here that there is someting wierd with OBS, and it require a short "hold down", someone shared this example:

Code: Select all

Send {F22 Down}
Sleep, 50
Send {F22 Up}

how do i combine theese?

i want my script to hold down each key for 50ms every time i press it but also keeping the toggle.

any help would be appreciated!
User avatar
Yakshongas
Posts: 591
Joined: 21 Jan 2020, 08:41
Facebook: Yakshongas

Re: Need help with a toggle script for OBS studio.

05 Jun 2020, 18:45

Maybe this?

Code: Select all

SetKeyDelay, 50, 50
F1::Send, % (Toggle := !Toggle) ? "1" : "2"
Please mark your topics as solved if you don't need any further help. ✅

Need a little more help? Discord : Yakshongas#9893 🕹
AriesGOSU
Posts: 6
Joined: 06 Jun 2018, 10:46

Re: Need help with a toggle script for OBS studio.

06 Jun 2020, 06:42

i was that easy! and it worked perfect!

Thanks a lot! :)

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], blured, boiler, Google [Bot], hasantr, Smile_, SOTE and 54 guests