Global Move GUI Buttons

Discuss features, issues, about Editors for AHK
MusoCity
Posts: 95
Joined: 24 Mar 2018, 20:45

Global Move GUI Buttons

24 Mar 2018, 21:04

I have been trying a lot of editors and GUI creators but I haven't found a way to automatically add an amount to all or selected x or y coordinates.
I can manually go to each of the 100+ buttons and add 10 or 20 to the amount but that could take many days. I can open it in SmartGUI and move one at a time as the group move is too hard to work out by button numbers and multi tabs, and Shift select don't work.
Is there an Editor/GUI Creator that will import the .ahk, select all the buttons I want to move and drag them or add a value to the selected x or y in the text ?
Like an HTLM WYSIWYG Editor.
MusoCity
Posts: 95
Joined: 24 Mar 2018, 20:45

Re: Global Move GUI Buttons

30 Apr 2018, 04:54

The way I got to move all elements at once is variables x y numbered for each set of elements x1 y1, x2 y2, x3 y3....:

Code: Select all

;Button Position Adjustment add e.g x5 = -10 or x5 = 0 or x5 = 10 etc..
x5 := 10
y5 := 10

;Buttons

hor := 22 + x5, vrt := 410 + y5
Gui, Add, Button, x%hor% y%vrt% w90 h20 , Button1

hor := 22 + x5, vrt := 430 + y5
Gui, Add, Button, x%hor% y%vrt% w90 h20 , Button2

Return to “Editors”

Who is online

Users browsing this forum: No registered users and 16 guests