Simulate Sequential Keys to New Hotkey

Get help with using AutoHotkey and its commands and hotkeys
radar81
Posts: 15
Joined: 04 Dec 2017, 07:34

Simulate Sequential Keys to New Hotkey

09 Jun 2019, 18:21

I'd like to create a script that simulates this key combination:

Left Alt, v, t, b (pressed sequentially, not simultaneously)

I'd like to map that to a Hotkey such as Ctrl+Y

Please advise, thanks
User avatar
YoucefHam
Posts: 344
Joined: 24 Aug 2015, 12:56
Facebook: https://fb.me/YoucefHamDz
Google: [email protected]
GitHub: YoucefHam
Location: Algeria
Contact:

Re: Simulate Sequential Keys to New Hotkey

09 Jun 2019, 19:12

try this

Code: Select all

^y::
KeyWait, Ctrl
Sleep, 60
SendInput, {LAlt}
Sleep, 60
SendInput, {v}
Sleep, 60
SendInput, {t}
Sleep, 60
SendInput, {b}
return
if you are goining to select a menu Item use
WinMenuSelectItem
:wave: There is always more than one way to solve a problem. ;)
radar81
Posts: 15
Joined: 04 Dec 2017, 07:34

Re: Simulate Sequential Keys to New Hotkey

10 Jun 2019, 11:01

Works perfectly thanks! :bravo:

Incidentally, I am using this to Toggle the display of the Firefox bookmarks toolbar on/off. Hope it helps somebody else.

Return to “Ask For Help”

Who is online

Users browsing this forum: anv, DaveT1, Google [Bot], mcl, mikeyww, RayB, TheProdigyC2, TXShooter and 69 guests