The click command can not be executed in the game

Ask gaming related questions (AHK v1.1 and older)
yessorryno
Posts: 22
Joined: 12 Sep 2017, 03:13

The click command can not be executed in the game

13 Sep 2017, 02:31

Hi ALL,

I play online games, to write a click function, but in the game did not achieve the click function, the keyboard function can be used normally, what method can help me achieve the click function?

The instructions are as follows.

XButton1::

SendMode Play

Send {click X,Y}

return

The mouse will move to that coordinate but do not click on the action.

Is there a way to solve this situation?
User avatar
Capn Odin
Posts: 1352
Joined: 23 Feb 2016, 19:45
Location: Denmark
Contact:

Re: The click command can not be executed in the game

13 Sep 2017, 03:01

Try adding a delay between pressing the mouse button and releasing it.

Code: Select all

MyClick(x, y) {
	Click, % x " " y " down"
	Sleep, 50
	Click, % x " " y "up"
}
Please excuse my spelling I am dyslexic.
yessorryno
Posts: 22
Joined: 12 Sep 2017, 03:13

Re: The click command can not be executed in the game

18 Sep 2017, 03:28

Capn Odin wrote:Try adding a delay between pressing the mouse button and releasing it.

Code: Select all

MyClick(x, y) {
	Click, % x " " y " down"
	Sleep, 50
	Click, % x " " y "up"
}
Hi,

I am adding a delay, the function is still unable to send to the game, probably because the game has nProtect GameGuard protection, is there a way to skip nProtect GameGuard's policy?
icuurd12b42
Posts: 202
Joined: 14 Aug 2016, 04:08

Re: The click command can not be executed in the game

18 Sep 2017, 06:10

#InstallKeybdHook
#InstallMouseHook
#UseHook On
....

Maybe?

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 75 guests