GUI Creator (formerly Basic GUI Creator)

Post your working scripts, libraries and tools
User avatar
maestrith
Posts: 683
Joined: 16 Oct 2013, 13:52

Re: GUI Creator (formerly Basic GUI Creator)

29 Dec 2015, 13:54

PumpkinShortie wrote:Thank you!

No problem :)
AHK Studio OSD GUI Creator
Donations
Discord
All code is done on a Windows 10 PC Running x64 and AutoHotkey x32
Hacker
Posts: 10
Joined: 13 Apr 2015, 09:18

Re: GUI Creator (formerly Basic GUI Creator)

29 Jan 2016, 13:18

Hi,
Windows 7 x64, AHK v1.1.23.00.
When I run the GUI Creator and right-click on the empty GUI I get this message:

Image

What am I doing wrong? Any ideas welcome.
Thank you.
Hacker
Posts: 10
Joined: 13 Apr 2015, 09:18

Re: GUI Creator (formerly Basic GUI Creator)

11 Feb 2016, 13:16

Anyone, please?
I am also open to suggestions for other GUI Creators.
User avatar
maestrith
Posts: 683
Joined: 16 Oct 2013, 13:52

Re: GUI Creator (formerly Basic GUI Creator)

11 Feb 2016, 13:18

Hacker wrote:Anyone, please?
I am also open to suggestions for other GUI Creators.

Sorry that it is doing that, I'm deep in the middle of another project but I will try to see if I can figure out what is going on.
AHK Studio OSD GUI Creator
Donations
Discord
All code is done on a Windows 10 PC Running x64 and AutoHotkey x32
User avatar
maestrith
Posts: 683
Joined: 16 Oct 2013, 13:52

Re: GUI Creator (formerly Basic GUI Creator)

11 Feb 2016, 13:23

AHK Studio OSD GUI Creator
Donations
Discord
All code is done on a Windows 10 PC Running x64 and AutoHotkey x32
Hacker
Posts: 10
Joined: 13 Apr 2015, 09:18

Re: GUI Creator (formerly Basic GUI Creator)

11 Feb 2016, 13:45

maestrith wrote:For now use this version. http://files.maestrith.com/GUI-Creator/GUI-Creator.ahk

Thank you!
User avatar
maestrith
Posts: 683
Joined: 16 Oct 2013, 13:52

Re: GUI Creator (formerly Basic GUI Creator)

11 Feb 2016, 16:51

Hacker wrote:
maestrith wrote:For now use this version. http://files.maestrith.com/GUI-Creator/GUI-Creator.ahk

Thank you!

You are welcome :)
AHK Studio OSD GUI Creator
Donations
Discord
All code is done on a Windows 10 PC Running x64 and AutoHotkey x32
ralgondo
Posts: 1
Joined: 11 Feb 2016, 23:45

Re: GUI Creator (formerly Basic GUI Creator)

11 Feb 2016, 23:48

I can't get it to work, what am I doing wrong?

Sorry, I am new to this.

I get this error: http://puu.sh/n4PKg/8c33b96eee.png
User avatar
maestrith
Posts: 683
Joined: 16 Oct 2013, 13:52

Re: GUI Creator (formerly Basic GUI Creator)

12 Feb 2016, 02:19

ralgondo wrote:I can't get it to work, what am I doing wrong?

Sorry, I am new to this.

I get this error: http://puu.sh/n4PKg/8c33b96eee.png

What version of AHK are you running? X32 X64 or Ansii?
Try downloading AHK from https://autohotkey.com/download/ahk-install.exe and choose Unicode 32 as the default.
AHK Studio OSD GUI Creator
Donations
Discord
All code is done on a Windows 10 PC Running x64 and AutoHotkey x32
autocart
Posts: 86
Joined: 12 May 2014, 07:42

Re: GUI Creator (formerly Basic GUI Creator)

16 Mar 2016, 02:34

I get the following error when trying to run (in ahk-x32 mode):
...\GUI-Creator 20160211.ahk (256) : ==> Target label does not exist.

EDIT: NEVER MIND, I had to update to the latest autohotkey-version. Now it works fine. Sorry.
User avatar
maestrith
Posts: 683
Joined: 16 Oct 2013, 13:52

Re: GUI Creator (formerly Basic GUI Creator)

16 Mar 2016, 10:09

autocart wrote:I get the following error when trying to run (in ahk-x32 mode):
...\GUI-Creator 20160211.ahk (256) : ==> Target label does not exist.

EDIT: NEVER MIND, I had to update to the latest autohotkey-version. Now it works fine. Sorry.

No problem. :) hope it works well for you.
AHK Studio OSD GUI Creator
Donations
Discord
All code is done on a Windows 10 PC Running x64 and AutoHotkey x32
lornfate
Posts: 1
Joined: 06 May 2016, 12:07

Re: GUI Creator (formerly Basic GUI Creator)

10 May 2016, 23:13

Very useful and helpful!

Thank you very much!
User avatar
maestrith
Posts: 683
Joined: 16 Oct 2013, 13:52

Re: GUI Creator (formerly Basic GUI Creator)

16 May 2016, 07:10

lornfate wrote:Very useful and helpful!

Thank you very much!

No problem :) Sorry it took so long to reply but for some reason I didn't get an e-mail
AHK Studio OSD GUI Creator
Donations
Discord
All code is done on a Windows 10 PC Running x64 and AutoHotkey x32
sordidfellow

Re: GUI Creator (formerly Basic GUI Creator)

22 Jun 2016, 21:12

Fix #1:
In WinPos definition, add "Int" to the type since that's what the DLL puts in the rect object.
On my system, the default UPtr type for NumGet was giving me values in the 1e15 range for w

Code: [Select all] [Download] GeSHi © Codebox Plus

WinPos(x:="",y:=""){
ControlGetPos,xx,yy,ww,hh,,% hwnd([3])
VarSetCapacity(rect,16)
DllCall("GetClientRect",ptr,hwnd(3),ptr,&rect)
x-=xx+v.Border
y-=yy+v.Border+v.Caption
w:=NumGet(rect,8,"Int") ; Add "Int" parameter
h:=NumGet(rect,12,"Int") ; Add "Int" parameter
return {x:x,y:y,w:w,h:h}
}


Fix #2:
Additional options are being concatenated directly against the previous code, causing errors.
Adjust CompileItem definition:

Code: [Select all] [Download] GeSHi © Codebox Plus

CompileItem(node){
ea:=xml.ea(node),index:=0
item:="Gui,Add," ea.type ","
for a,b in StrSplit("x,y,w,h,g,v",",")
if(ea[b]!="")
item.=(index=0?"":" ") b ea[b],index++
if(ea.option)
item.=" " ea.option ; Add space before additional options
item.="," ea.value
return item
}



With those 2 fixes, the Export function could be modified to no longer quit early and actually run the GUI nicely.
Super handy tool!
User avatar
maestrith
Posts: 683
Joined: 16 Oct 2013, 13:52

Re: GUI Creator (formerly Basic GUI Creator)

23 Jun 2016, 09:05

sordidfellow wrote:Fix #1:
In WinPos definition, add "Int" to the type since that's what the DLL puts in the rect object.
On my system, the default UPtr type for NumGet was giving me values in the 1e15 range for w
...
With those 2 fixes, the Export function could be modified to no longer quit early and actually run the GUI nicely.
Super handy tool!

Thank you for that :) I will be re-visiting this project (hopefully soon) and I will add this to the new code.
I have also updated the code online for now to reflect these changes.
AHK Studio OSD GUI Creator
Donations
Discord
All code is done on a Windows 10 PC Running x64 and AutoHotkey x32
autocart
Posts: 86
Joined: 12 May 2014, 07:42

Re: GUI Creator (formerly Basic GUI Creator)

03 Dec 2016, 07:35

In case the original download link (http://files.maestrith.com/GUI-Creator/GUI-Creator.ahk)
should be broken (which is true in my case right now)
then this (new?) link right here: https://github.com/maestrith :thumbup:
should still provide the code.
The version "GUI_Creator" (with the underscore) works better in my experience.
(this one also seems to include a compiled version, which shows the version number and lets me do an update)
Last edited by autocart on 03 Dec 2016, 09:01, edited 2 times in total.
User avatar
maestrith
Posts: 683
Joined: 16 Oct 2013, 13:52

Re: GUI Creator (formerly Basic GUI Creator)

03 Dec 2016, 08:45

autocart wrote:In case the original download link (http://files.maestrith.com/GUI-Creator/GUI-Creator.ahk)
should be broken (which is true in my case right now)
then this (new?) link right here: https://github.com/maestrith
should still provide the code.
The version "GUI_Creator" (with the underscore) works better in my experience.
(this one also seems to include a compiled version, which shows the version number and lets me do an update)

My old webhost has closed sadly. I have uploaded my most recent version and fixed the main link.
AHK Studio OSD GUI Creator
Donations
Discord
All code is done on a Windows 10 PC Running x64 and AutoHotkey x32
User avatar
maestrith
Posts: 683
Joined: 16 Oct 2013, 13:52

Re: GUI Creator (formerly Basic GUI Creator)

03 Dec 2016, 12:37

Updated to a newer version and also updated the links on the main post. and also here
AHK Studio OSD GUI Creator
Donations
Discord
All code is done on a Windows 10 PC Running x64 and AutoHotkey x32
autocart
Posts: 86
Joined: 12 May 2014, 07:42

Re: GUI Creator (formerly Basic GUI Creator)

03 Dec 2016, 12:53

thx, maestrith,
when I compile it though and then hit the update program menu item i get the error message in the picture. afterwards, windos says that the exe cannot be executed on this computer when I try to start it again.
when I leave it uncompiled and I hit the update program button then the window flashes but no version information or similar is given (which seems to be missing anyway, especially since it has an update menu item).
besides, how can I specify the size of the gui window being designed, or other attributes of it?

EDIT: The website does not let me upload the picture but the error message says:
Error: Failed attempt to launch program or document:
Action: <"C:\Users\UserName\Downloads\GUI_Creator.exe">
Params: </restart>

Specifically: Die Version von

               Line#
--->          689: Reload

The current thread will exit.
Last edited by autocart on 03 Dec 2016, 13:04, edited 1 time in total.

Return to “Scripts and Functions”

Who is online

Users browsing this forum: No registered users and 20 guests