Jump to content
Sign in to follow this  
SugarplumChum

HotKeySet on KeyUp/KeyDown?

Recommended Posts

SugarplumChum

Basically want a macro that can respond from either KeyDown or KeyUp. Is this possible? I couldnt find anything about this.

Share this post


Link to post
Share on other sites
KickStarter15

Hi @SugarplumChum,

Check in help file for "Send()" and "HotKeySet()" functions, that might help your problem.


Programming is "To make it so simple that there are obviously no deficiencies" or "To make it so complicated that there are no obvious deficiencies" by C.A.R. Hoare.

Share this post


Link to post
Share on other sites
corgano

In the helpfile for send https://www.autoitscript.com/autoit3/docs/functions/Send.htm
IT describes being able to send("{k}{e}{y}{s}") by specifying the key inside {}'s. This also lets you send keys up/down explicitly
send("{lctrl down}a{lctrl up}")

This works for many other functions, like hotkeyset("{lctrl down}", "functionnamehere")


0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.