Controlsend doesn't work

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Plantim
Posts: 13
Joined: 22 May 2020, 23:56

Controlsend doesn't work

21 Sep 2021, 04:51

Hello,

I try to send a keystroke to a windows in background (the window is not activated), but it doesn't work.
I don't know what i'm doing wrong

Code: Select all

SendMode Input
ControlSend,, {c}, %window%
thank you
kentpachi
Posts: 152
Joined: 15 May 2016, 01:23

Re: Controlsend doesn't work

21 Sep 2021, 06:03

Plantim wrote:
21 Sep 2021, 04:51
Hello,

I try to send a keystroke to a windows in background (the window is not activated), but it doesn't work.
I don't know what i'm doing wrong

Code: Select all

SendMode Input
ControlSend,, {c}, %window%
thank you
what window is it? a game or emulated?
i tested that some games or app if its directx or opengl, controlsend and controlclick wont work properly
User avatar
boiler
Posts: 16902
Joined: 21 Dec 2014, 02:44

Re: Controlsend doesn't work

21 Sep 2021, 07:33

What does the variable window contain?
Plantim
Posts: 13
Joined: 22 May 2020, 23:56

Re: Controlsend doesn't work

22 Sep 2021, 11:45

Oops sorry, any wintitle
Plantim
Posts: 13
Joined: 22 May 2020, 23:56

Re: Controlsend doesn't work

22 Sep 2021, 11:46

kentpachi wrote:
21 Sep 2021, 06:03
Plantim wrote:
21 Sep 2021, 04:51
Hello,

I try to send a keystroke to a windows in background (the window is not activated), but it doesn't work.
I don't know what i'm doing wrong

Code: Select all

SendMode Input
ControlSend,, {c}, %window%
thank you
what window is it? a game or emulated?
i tested that some games or app if its directx or opengl, controlsend and controlclick wont work properly
It’s on java/flash game
kentpachi
Posts: 152
Joined: 15 May 2016, 01:23

Re: Controlsend doesn't work

22 Sep 2021, 13:12

Plantim wrote:
22 Sep 2021, 11:46
kentpachi wrote:
21 Sep 2021, 06:03
Plantim wrote:
21 Sep 2021, 04:51
Hello,

I try to send a keystroke to a windows in background (the window is not activated), but it doesn't work.
I don't know what i'm doing wrong

Code: Select all

SendMode Input
ControlSend,, {c}, %window%
thank you
what window is it? a game or emulated?
i tested that some games or app if its directx or opengl, controlsend and controlclick wont work properly
It’s on java/flash game
try to add ClassNN, use Window Spy to check it.
have u also tried controlclick if it works?
i tested controlclickc and controlsend in some gamees and sometimes former work and the latter does not or vice versa.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Spawnova, Thorlian and 267 guests