Help with Ahk_H

Ask for help, how to use AHK_H, etc.
Bandolero1571
Posts: 5
Joined: 23 Nov 2020, 23:13

Help with Ahk_H

Post by Bandolero1571 » 18 Sep 2021, 01:38

Hi :wave:

I'm completely noob with ahk_h, so i'm serch for basics steps.

Example: how do this in a multi-thread enviroment?

$d::
Send, {f1}
Send, {f2}
return

One hotkey sends two differents key simultaneously. Is that possible? :crazy:

HotKeyIt
Posts: 2364
Joined: 29 Sep 2013, 18:35
Contact:

Re: Help with Ahk_H

Post by HotKeyIt » 18 Sep 2021, 01:51

What do you mean by simultaneously, it is not possible even pressing the keys on the keyboard, one will be before another.
Here same hotkey is used in 2 threads to send different keys.

Code: Select all

ahkdll:=AhkThread("~d::Send, {F1}")
~d::Send, {F2}

Bandolero1571
Posts: 5
Joined: 23 Nov 2020, 23:13

Re: Help with Ahk_H

Post by Bandolero1571 » 18 Sep 2021, 02:18

Thank you for the reply <3

"it is not possible even..." Sorry, misconception of my part...

One more question: How use your code with ControlSend instead send?

HotKeyIt
Posts: 2364
Joined: 29 Sep 2013, 18:35
Contact:

Re: Help with Ahk_H

Post by HotKeyIt » 18 Sep 2021, 16:56

Just replace Send with Controlsend and proper syntax: ControlSend

Post Reply

Return to “Ask for Help”