Page 1 of 1

ControlClick does not click on a button at a specific coordinate

Posted: 18 Sep 2021, 09:21
by deffafnq
Hi, there was such a problem, I'm trying to write a simple script that will just start a match in a Fortnite game, then pick up the rewards and start over, I did almost everything, but there was a problem with ControlSend, it works only in two coordinates, and the main ones are the first ones (x1700 y720 )
he hovers on them but does not click, what could be the problem? - I provide a video.
Fortnite
ahk_class UnrealWindow
ahk_exe FortniteClient-Win64-Shipping.exe
ahk_pid 12216

Re: ControlClick does not click on a button at a specific coordinate

Posted: 18 Sep 2021, 10:19
by mikeyww
Try a one-liner with a single click, to get the command working first. See reliability tips. ControlFocus may be another thing to try. There is no guarantee that it will work. You can try running as admin, also not a guarantee.

I suggest that you first test a simple Click command while your target window is active. Use a one-line hotkey to do it.

Re: ControlClick does not click on a button at a specific coordinate

Posted: 18 Sep 2021, 11:21
by deffafnq
it doesn’t work are there any more methods?

Re: ControlClick does not click on a button at a specific coordinate

Posted: 18 Sep 2021, 12:09
by mikeyww
You can post your one-liner click routine for feedback about it. You may also want to search the forum here to see what solutions others have found for working with Fortnite.