how to use relative coordinate at class_dd

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Tear
Posts: 23
Joined: 22 Jul 2018, 09:46

how to use relative coordinate at class_dd

18 Aug 2018, 10:26

when i use softeware signal and active client , mouse move or click (etc..) automatically work window coordinate.(window)
But , i want use hardware signal with class_dd

BUT , class_dd work absoulte coordinate. how can i use relative??

coordmode,mouse,window << it works??
tmplinshi
Posts: 1604
Joined: 01 Oct 2013, 14:57

Re: how to use relative coordinate at class_dd

18 Aug 2018, 11:26

Code: Select all

hwnd := WinExist("A")
dd.MouseMove(hwnd, 10, 20)
Tear
Posts: 23
Joined: 22 Jul 2018, 09:46

Re: how to use relative coordinate at class_dd

18 Aug 2018, 12:13

didn't works ....
cord is ..
hwnd := winexist ("P")
dd.mousemove("P",646,124)
dd._btn("RButtonDown")
dd._btn("RButtonUp")

but , mouse move left monitor.. i use duble monitor.. why this happened??
tmplinshi
Posts: 1604
Joined: 01 Oct 2013, 14:57

Re: how to use relative coordinate at class_dd

18 Aug 2018, 12:39

"A" in WinExist("A") means the active window.
tmplinshi
Posts: 1604
Joined: 01 Oct 2013, 14:57

Re: how to use relative coordinate at class_dd

18 Aug 2018, 12:42

hwnd := winexist ("P")
dd.mousemove("P",646,124)
The red "P" should be hwnd
Tear
Posts: 23
Joined: 22 Jul 2018, 09:46

Re: how to use relative coordinate at class_dd

18 Aug 2018, 13:37

hwnd does not work. why....
mouse move left monitor.. game exsist right monitor..

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot], Raymondbit and 390 guests