Page 2 of 2

Re: Ahk_Hv2.0 Ahk2Exe

Posted: 02 May 2020, 03:47
by HotKeyIt
I have fixed the bugs, Ahk2Exe.ahk can be now compiled.

Re: Ahk_Hv2.0 Ahk2Exe

Posted: 02 May 2020, 07:16
by TheArkive
cool! thanks!

Re: Ahk_Hv2.0 Ahk2Exe

Posted: 08 Jun 2020, 12:54
by guest3456
@HotKeyIt

are we supposed to use this compiler from the Ahk2Exe repo:
https://github.com/HotKeyIt/Ahk2Exe

or are we supposed to use the /Compiler/ subfolder in the ahk-v1-release repo?
https://github.com/HotKeyIt/ahkdll-v1-release

Re: Ahk_Hv2.0 Ahk2Exe

Posted: 08 Jun 2020, 13:28
by TheArkive
@guest3456
i think it's either ... but the one that comes with downloaded AHK_H is better in my experience

Re: Ahk_Hv2.0 Ahk2Exe

Posted: 09 Jun 2020, 08:05
by guest3456
well the Ahk2Exe repo won't run on the latest ahk_H exe

Re: Ahk_Hv2.0 Ahk2Exe

Posted: 09 Jun 2020, 08:12
by TheArkive
@guest3456
Yah i've had issues with it too, my latest success is definitely with the included Ahk2Exe.ahk

Re: Ahk_Hv2.0 Ahk2Exe

Posted: 28 Jun 2020, 07:16
by TheArkive
I tried to take a stab at fixing the compiler for AHK_H v2-a110. I made it up to these 2 errors:

Code: Select all

---------------------------
Ahk2Exe.ahk
---------------------------
Error:  RegClass

	Line#
	041: FileMenu.Add()
	042: FileMenu.Add("E&xit	Alt+F4", "GuiClose")
	043: HelpMenu.Add("&Help", "Help")
	044: HelpMenu.Add()
	045: HelpMenu.Add("&About", "About")
	046: MenuBar.Add("&File", FileMenu)
	047: MenuBar.Add("&Help", HelpMenu)
--->	049: Gui := GuiCreate()
	050: ToolTip := TT(Gui.Hwnd)
	051: Gui.OnEvent("Close","GuiClose")
	052: Gui.OnEvent("DropFiles","GuiDropFiles")
	053: Gui.MenuBar := MenuBar
	054: Gui.AddLink("x287 y10","©2004-2009 Chris Mallet
©2008-2011 Steve Gray (Lexikos)
©2011-" A_Year "  fincs
©2012-" A_Year " HotKeyIt
<a href="http://ahkscript.org">http://ahkscript.org</a>
Note: Compiling does not guarantee source code protection.")
	063: Gui.AddText("x11 y97 w570 h2 +0x1007")
	064: Gui.SetFont("Bold")

Continue the current thread?
---------------------------
Yes   No   
---------------------------

Code: Select all

---------------------------
Ahk2Exe.ahk
---------------------------
Error:  Could not create Gui.

	Line#
	041: FileMenu.Add()
	042: FileMenu.Add("E&xit	Alt+F4", "GuiClose")
	043: HelpMenu.Add("&Help", "Help")
	044: HelpMenu.Add()
	045: HelpMenu.Add("&About", "About")
	046: MenuBar.Add("&File", FileMenu)
	047: MenuBar.Add("&Help", HelpMenu)
--->	049: Gui := GuiCreate()
	050: ToolTip := TT(Gui.Hwnd)
	051: Gui.OnEvent("Close","GuiClose")
	052: Gui.OnEvent("DropFiles","GuiDropFiles")
	053: Gui.MenuBar := MenuBar
	054: Gui.AddLink("x287 y10","©2004-2009 Chris Mallet
©2008-2011 Steve Gray (Lexikos)
©2011-" A_Year "  fincs
©2012-" A_Year " HotKeyIt
<a href="http://ahkscript.org">http://ahkscript.org</a>
Note: Compiling does not guarantee source code protection.")
	063: Gui.AddText("x11 y97 w570 h2 +0x1007")
	064: Gui.SetFont("Bold")

Continue the current thread?
---------------------------
Yes   No   
---------------------------
This seems like something wrong with GuiCreate() possibly?

In a previous attempt, I changed the GUI var from Gui to myGui, and it didn't seem to help.