Easy AutoGUI for Autohotkey v2.0

Post your working scripts, libraries and tools.
sashaatx
Posts: 354
Joined: 27 May 2021, 08:27
Contact:

Re: Easy AutoGUI for v2 with AHKv2converter

19 Aug 2023, 10:50

LAPIII wrote:
28 Jul 2023, 08:37
I had just gotten the script Launch_AutoGUI.ahk, from Github, and it throws: Error: #Include file "lib/ClassOrderedMap.ahk" cannot be opened. for line 8, but the line is blank.
@@LAPIII

I now understand what you were getting at, I fixed the clone code.
https://github.com/samfisherirl
? /Easy-Auto-GUI-for-AHK-v2 ? /Useful-AHK-v2-Libraries-and-Classes : /Pulovers-Macro-Creator-for-AHKv2 :
LAPIII
Posts: 676
Joined: 01 Aug 2021, 06:01

Re: Easy AutoGUI for Autohotkey v2.0

30 Aug 2023, 13:31

@sashaatx This is what I get:
CUsersdowerDesktop__ahk_codegenerator__EZ_AUTO_GUI 30_08_23 02⦂29⦂19⦂023 PM.jpg
CUsersdowerDesktop__ahk_codegenerator__EZ_AUTO_GUI 30_08_23 02⦂29⦂19⦂023 PM.jpg (117.84 KiB) Viewed 3257 times
What am I doing wrong?
sashaatx
Posts: 354
Joined: 27 May 2021, 08:27
Contact:

Re: Easy AutoGUI for Autohotkey v2.0

31 Aug 2023, 09:42

LAPIII wrote:
30 Aug 2023, 13:31
@sashaatx This is what I get:

CUsersdowerDesktop__ahk_codegenerator__EZ_AUTO_GUI 30_08_23 02⦂29⦂19⦂023 PM.jpg

What am I doing wrong?
@LAPIII you're doing nothing wrong, that's an example of the Clone Tool where I clone a Notepad++ GUI to ahkv2.

click this link if you want to download the easy autoGUI app. https://github.com/samfisherirl/Easy-Auto-GUI-for-AHK-v2/releases/download/v1.6.2/Easy-Auto-GUI-for-AHK-v2.zip
https://github.com/samfisherirl
? /Easy-Auto-GUI-for-AHK-v2 ? /Useful-AHK-v2-Libraries-and-Classes : /Pulovers-Macro-Creator-for-AHKv2 :
sashaatx
Posts: 354
Joined: 27 May 2021, 08:27
Contact:

Re: Easy AutoGUI for Autohotkey v2.0

11 Oct 2023, 10:45

for fixing DPI issues- Im traveling so updating the code isnt convenient.

right click properties on exe
image.png
image.png (38.43 KiB) Viewed 2992 times
image.png
image.png (30.08 KiB) Viewed 2992 times
https://github.com/samfisherirl
? /Easy-Auto-GUI-for-AHK-v2 ? /Useful-AHK-v2-Libraries-and-Classes : /Pulovers-Macro-Creator-for-AHKv2 :
sashaatx
Posts: 354
Joined: 27 May 2021, 08:27
Contact:

Re: Easy AutoGUI for Autohotkey v2.0

24 Oct 2023, 12:56

Update to include extended style functions:

https://github-production-user-asset-6210df.s3.amazonaws.com/98753696/277759218-6c7b092f-97e8-498d-a0d2-df1b2505c275.png
image.png
image.png (142.71 KiB) Viewed 2780 times
https://github.com/samfisherirl
? /Easy-Auto-GUI-for-AHK-v2 ? /Useful-AHK-v2-Libraries-and-Classes : /Pulovers-Macro-Creator-for-AHKv2 :
sashaatx
Posts: 354
Joined: 27 May 2021, 08:27
Contact:

Re: Easy AutoGUI for Autohotkey v2.0

24 Dec 2023, 16:07

finally dug through the original codebase, found the toolbar DPI offset issue. updated release fix
https://github.com/samfisherirl
? /Easy-Auto-GUI-for-AHK-v2 ? /Useful-AHK-v2-Libraries-and-Classes : /Pulovers-Macro-Creator-for-AHKv2 :
sashaatx
Posts: 354
Joined: 27 May 2021, 08:27
Contact:

Re: Easy AutoGUI for Autohotkey v2.0

13 Jan 2024, 13:14

@XMCQCX

After reading your comment, I dug deeper into the Menu builder part of AutoGUI and noticed the ICON function didn't work, so I went through and fixed the icon portion of the app. Fixing the conversion to ahkv2. Let me know if you see any other issues. Thanks https://github.com/samfisherirl/Easy-Auto-GUI-for-AHK-v2/releases/tag/v1.7.2
Attachments
296507982-9747a883-d377-4182-9e3c-93a1ed6d183d.png
296507982-9747a883-d377-4182-9e3c-93a1ed6d183d.png (127.88 KiB) Viewed 1882 times
https://github.com/samfisherirl
? /Easy-Auto-GUI-for-AHK-v2 ? /Useful-AHK-v2-Libraries-and-Classes : /Pulovers-Macro-Creator-for-AHKv2 :
sashaatx
Posts: 354
Joined: 27 May 2021, 08:27
Contact:

Re: Easy AutoGUI for Autohotkey v2.0

10 Feb 2024, 10:51

using convert2resizer, you can convert and gui script from easyautogui into a scalable gui with guiresizer found here https://github.com/samfisherirl/GuiResizer-Addons/blob/main/convert2Resizer.ahk
https://github.com/samfisherirl
? /Easy-Auto-GUI-for-AHK-v2 ? /Useful-AHK-v2-Libraries-and-Classes : /Pulovers-Macro-Creator-for-AHKv2 :
JSD
Posts: 3
Joined: 29 May 2024, 16:35

Re: Easy AutoGUI for Autohotkey v2.0

29 May 2024, 16:58

I'm having a WEIRD bug.
When I open a saved AHK file, its code won't reflect the GUI. There's no GUI at all.
Show/Hide Preview button wont show GUI.
Execute
image.png
image.png (171.57 KiB) Viewed 1203 times

Code: Select all

#Requires Autohotkey v2
;AutoGUI 2.5.8 creator: Alguimist autohotkey.com/boards/viewtopic.php?f=64&t=89901
;AHKv2converter creator: github.com/mmikeww/AHK-v2-script-converter
;Easy_AutoGUI_for_AHKv2 github.com/samfisherirl/Easy-Auto-GUI-for-AHK-v2

myGui := Gui()
ButtonWarranty := myGui.Add("Button", "x16 y48 w80 h23", "&Warranty")
ButtonPayment := myGui.Add("Button", "x104 y48 w80 h23", "&Payment")
ButtonPermit := myGui.Add("Button", "x192 y48 w80 h23", "&Permit")
ButtonCancellation := myGui.Add("Button", "x280 y48 w80 h23", "&Cancellation")
myGui.Add("GroupBox", "x8 y0 w457 h81", "TERMS AND CONDITIONS")
Radio1 := myGui.Add("Radio", "x16 y16 w64 h23", "BIG JOB")
Radio2 := myGui.Add("Radio", "x88 y16 w82 h23", "SMALL JOB")
ButtonWarranty.OnEvent("Click", Warranty)
ButtonPayment.OnEvent("Click", OnEventHandler)
ButtonPermit.OnEvent("Click", OnEventHandler)
ButtonCancellation.OnEvent("Click", OnEventHandler)
myGui.OnEvent('Close', (*) => ExitApp())
myGui.Title := "ANIRAF"
myGui.Show("w480 h660")

OnEventHandler(*)
{
	ToolTip("Click! This is a sample action.`n"
	. "Active GUI element values include:`n"  
	. "ButtonWarranty => " ButtonWarranty.Text "`n" 
	. "ButtonPayment => " ButtonPayment.Text "`n" 
	. "ButtonPermit => " ButtonPermit.Text "`n" 
	. "ButtonCancellation => " ButtonCancellation.Text "`n", 77, 277)
	SetTimer () => ToolTip(), -3000 ; tooltip timer
}
Warranty(*)
{
    Msgbox "Warranty"
}
JSD
Posts: 3
Joined: 29 May 2024, 16:35

Re: Easy AutoGUI for Autohotkey v2.0

29 May 2024, 17:00

Another thing I've noticed is the versioning on https://github.com/samfisherirl/Easy-Auto-GUI-for-AHK-v2/releases is not right
image.png
image.png (48.26 KiB) Viewed 1203 times
User avatar
boiler
Posts: 17706
Joined: 21 Dec 2014, 02:44

Re: Easy AutoGUI for Autohotkey v2.0

29 May 2024, 17:17

JSD wrote: I'm having a WEIRD bug.
When I open a saved AHK file, its code won't reflect the GUI. There's no GUI at all.
Show/Hide Preview button wont show GUI.
That's not a bug. It's not supposed to do what you're trying to do. It builds the GUI code when you build a GUI using its GUI tool, but it doesn't take existing code and show it in the GUI builder. There is a GUI import feature (looks like it's called the "Window Cloning Tool") where it would take a GUI window that's actually displayed in Windows and build it in the GUI builder tool so you can use that as a starting point. So you could run your code to display its GUI, then import it from the displayed GUI window, but then it loses any "smarts" you have built into it. It's not like a two-way back-and-forth.
sashaatx
Posts: 354
Joined: 27 May 2021, 08:27
Contact:

Re: Easy AutoGUI for Autohotkey v2.0

29 May 2024, 17:21

boiler wrote:
29 May 2024, 17:17
JSD wrote: I'm having a WEIRD bug.
When I open a saved AHK file, its code won't reflect the GUI. There's no GUI at all.
Show/Hide Preview button wont show GUI.
It's been a while, but I'm pretty sure that's not a bug. It's not supposed to do what you're trying to do. It builds the GUI code when you build a GUI using its GUI tool, but it doesn't take existing code and show it in the GUI builder. There is (or was, at least) a GUI import feature (the "Window Cloning Tool"?) where it would a GUI window that's actually displayed in Windows and build it in the GUI builder tool so you can use that as a starting point. So you could run your code to display its GUI, then import it from the displayed GUI window, but then it loses any "smarts" you have built into it. It's not like a two-way back-and-forth.
negative, @JSD

edit: SORRY I misunderstood, boiler is right. There is no resuming Gui Design. As he said, you can clone a partially finished window and continue from there..

I kept up with versioning but sometimes I just make a quick fix and zip it up. Plus the versioning you highlighted is the base application, which is static. then my mod has various versions.
Attachments
image.png
image.png (223.97 KiB) Viewed 1191 times
https://github.com/samfisherirl
? /Easy-Auto-GUI-for-AHK-v2 ? /Useful-AHK-v2-Libraries-and-Classes : /Pulovers-Macro-Creator-for-AHKv2 :
JSD
Posts: 3
Joined: 29 May 2024, 16:35

Re: Easy AutoGUI for Autohotkey v2.0

29 May 2024, 17:40

Alright, many thanks @boiler and @sashaatx. As far as I could understand, It's not a bug it's a feature that could be implemented.
Hopefully in the future it'll be developed.
I think I'll stick with Excel form for now and use AHK to do the last mile.
Marizzz95
Posts: 1
Joined: 07 Oct 2024, 15:29
Contact:

Re: Easy AutoGUI for Autohotkey v2.0

07 Oct 2024, 15:32

Can someone help me? When I add a control to my GUI and add an anchor, it says i'm missing the AutoXYWH.ahk file. After I manually create that file and put it in the same folder as the AutoGUI, and I try to include it, AutoGUI keeps deleting the include when I change anything about the gui.
Is there something I'm missing? I find it weird that I have to supply my own AutoXYWH.ahk script

Return to “Scripts and Functions (v2)”

Who is online

Users browsing this forum: No registered users and 35 guests