Using modifiers and help with fixing this macro

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Kfram
Posts: 1
Joined: 17 Jun 2021, 12:58

Using modifiers and help with fixing this macro

17 Jun 2021, 13:04

So ive been trying to do this for awhile and i just cant seem to get it right.
Basically what im trying to do is using Ctrl+4 to execute Ctrl+4 and - in quick succession.
This is what i have right now, any help appreciated.

Code: Select all

$^4::
Send, {^ down}{4 down}{- down}
Send, {^ up}{4 up}{- up}
Return
User avatar
mikeyww
Posts: 26940
Joined: 09 Sep 2014, 18:38

Re: Using modifiers and help with fixing this macro

17 Jun 2021, 13:36

Here is a couple of options (not the same).

Code: Select all

~^4::Send -

Code: Select all

$^4::Send {Ctrl down}{4 down}-{4 up}{Ctrl up}
Running the following script will demonstrate one of the issues with your script.

Code: Select all

Send {^ down}{^ up}

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: filipemb and 305 guests