Send Command Help Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
ZeuZ

Send Command Help

17 Mar 2016, 21:43

I'm trying to use a simple send macro, but having trouble with the correct syntax. Basically what i'm trying to get it to do is when i hold down R, I need D and left click to be held down at the same time, and when I release R it releases D and left click.

This is what I have so far:

Code: Select all

*r::
Send D down
Send Click down
return
Any help would be highly appreciated.
Shadowpheonix
Posts: 1259
Joined: 16 Apr 2015, 09:41

Re: Send Command Help  Topic is solved

18 Mar 2016, 10:56

Did you really intend the "*" on the r::? The "*" would allow this script to be activated by "r", "Ctrl+r", "Shift+r", etcetera.
Or did you mean to use "~" instead? The "~" means that the "r" should maintain its normal function in addition to the script - IE: pressing "r" would result in your application thing that "r", "d", and the left mouse button are all being held down at the same time.

Code: Select all

*r::
Send {d Down}{LButton Down}
While GetKeyState("r", "P")
   Sleep 10
Send {d Up}{LButton Up}
Return

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: prototype_zero and 227 guests