[Coordmode] How to change whole screen coordinates?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
steve2122
Posts: 1
Joined: 20 Sep 2017, 19:44

[Coordmode] How to change whole screen coordinates?

20 Sep 2017, 19:51

I have a script using coordinates in Coordmode, however to use that script in a different application I need to move all Y coordinates up by 10.

eg.
click x, y-10 (but i need to do this for all commands that have a coordinate reference - its a relatively large script otherwise i'll be changing them 1 by 1 T_T)

is there a way to move the whole coordinate system? ie. change 0,0 to 0,-10

Thanks in advance!
BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: [Coordmode] How to change whole screen coordinates?

21 Sep 2017, 00:55

What about to use variables?

Code: Select all

xVar := 10
yVar := 10
Gui, Add, Edit, x%xVar% y%yVar% ...
Gui, Add, Edit, xp+20 yp ...

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Chunjee, Theda and 124 guests