Ahk_Hv2.0 Ahk2Exe

Ask for help, how to use AHK_H, etc.
HotKeyIt
Posts: 2364
Joined: 29 Sep 2013, 18:35
Contact:

Re: Ahk_Hv2.0 Ahk2Exe

02 May 2020, 03:47

I have fixed the bugs, Ahk2Exe.ahk can be now compiled.
guest3456
Posts: 3477
Joined: 09 Oct 2013, 10:31

Re: Ahk_Hv2.0 Ahk2Exe

08 Jun 2020, 12:54

@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

User avatar
TheArkive
Posts: 1032
Joined: 05 Aug 2016, 08:06
Location: The Construct
Contact:

Re: Ahk_Hv2.0 Ahk2Exe

08 Jun 2020, 13:28

@guest3456
i think it's either ... but the one that comes with downloaded AHK_H is better in my experience
guest3456
Posts: 3477
Joined: 09 Oct 2013, 10:31

Re: Ahk_Hv2.0 Ahk2Exe

09 Jun 2020, 08:05

well the Ahk2Exe repo won't run on the latest ahk_H exe

User avatar
TheArkive
Posts: 1032
Joined: 05 Aug 2016, 08:06
Location: The Construct
Contact:

Re: Ahk_Hv2.0 Ahk2Exe

09 Jun 2020, 08:12

@guest3456
Yah i've had issues with it too, my latest success is definitely with the included Ahk2Exe.ahk
User avatar
TheArkive
Posts: 1032
Joined: 05 Aug 2016, 08:06
Location: The Construct
Contact:

Re: Ahk_Hv2.0 Ahk2Exe

28 Jun 2020, 07:16

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.

Return to “Ask for Help”

Who is online

Users browsing this forum: No registered users and 22 guests