Earn €5 by solving my problem! windows 10 related

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
xpoonerx
Posts: 5
Joined: 24 Jul 2017, 09:06

Earn €5 by solving my problem! windows 10 related

25 Jul 2017, 02:57

Yesterday I went on the discord and made a script in which you can control 3 identical open processes at once... the discord experts think the script is fine but that there is something stopping my script from recognising my open processes... i'm running windows 10 and the programs i want to control are java applications!

Lbutton::

WinGet, OutputVar, list, Nameoftheprogram,
SetTitleMatchMode 2
SetTitleMatchMode, slow

Mousegetpos, xx, yy
ControlClick, x%xx%, y%yy%, ahk_id %OutputVar1%
ControlClick, x%xx%, y%yy%, ahk_id %OutputVar2%
ControlClick, x%xx%, y%yy%, ahk_id %OutputVar3%
return

can anyone help me?
Helgef
Posts: 4709
Joined: 17 Jul 2016, 01:02
Contact:

Re: Earn €5 by solving my problem! windows 10 related

25 Jul 2017, 03:25

Java programs might give you incorrect coordinates, you can try to adjust the coordinates by a fixed amount. Eg add 20 to the y coordinate. If the problem is misplaced clicks that is, you didn't specify.
You can try to use

Code: Select all

F1::
	mousegetpos,x,y
	; y+=20 ; Try this in the java window
	ControlClick, x%x% y%y%,A
return
to see if the clicks are misplaced by controlclicking on and around something that is clickable.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: filipemb and 309 guests