Controlsend nor working

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
rspai
Posts: 9
Joined: 15 Oct 2019, 03:38

Controlsend nor working

Post by rspai » 02 Oct 2022, 17:34

Code: Select all

^u::
ControlSend,,^!e,ahk_class PotPlayer
Sleep, 1000
ControlSend,,f,ahk_class PotPlayer
Return
The above code sends the correct keystrokes to the Application (PotPlayer)

The code below (without the Ctrl(^) in the Hotkey) sends only Alt+E to the Application

Code: Select all

u::
ControlSend,,^!e,ahk_class PotPlayer
Sleep, 1000
ControlSend,,f,ahk_class PotPlayer
Return
I want the code to work only when "u" is pressed.

Thanks in advance for the help.

sashaatx
Posts: 333
Joined: 27 May 2021, 08:27
Contact:

Re: Controlsend nor working

Post by sashaatx » 02 Oct 2022, 23:39

rspai wrote:
02 Oct 2022, 17:34

Code: Select all

^u::
ControlSend,,^!e,ahk_class PotPlayer
Sleep, 1000
ControlSend,,f,ahk_class PotPlayer
Return
The above code sends the correct keystrokes to the Application (PotPlayer)

The code below (without the Ctrl(^) in the Hotkey) sends only Alt+E to the Application

Code: Select all

u::
ControlSend,,^!e,ahk_class PotPlayer
Sleep, 1000
ControlSend,,f,ahk_class PotPlayer
Return
I want the code to work only when "u" is pressed.

Thanks in advance for the help.


####

I use these to create a framework of code to start from, the second one being more advanced


macro pulo viewtopic.php?t=143



https://github.com/Descolada/UIAutomation
(downlaod UIviewer, top right corner click macro)
https://github.com/samfisherirl
? /Easy-Auto-GUI-for-AHK-v2 ? /Useful-AHK-v2-Libraries-and-Classes : /Pulovers-Macro-Creator-for-AHKv2 :

Post Reply

Return to “Ask for Help (v1)”