Page 3 of 4

Re: GUI Creator (formerly Basic GUI Creator)

Posted: 29 Dec 2015, 13:52
by PumpkinShortie
Thank you!

Re: GUI Creator (formerly Basic GUI Creator)

Posted: 29 Dec 2015, 13:54
by maestrith
PumpkinShortie wrote:Thank you!
No problem :)

Re: GUI Creator (formerly Basic GUI Creator)

Posted: 29 Jan 2016, 13:18
by Hacker
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.

Re: GUI Creator (formerly Basic GUI Creator)

Posted: 11 Feb 2016, 13:16
by Hacker
Anyone, please?
I am also open to suggestions for other GUI Creators.

Re: GUI Creator (formerly Basic GUI Creator)

Posted: 11 Feb 2016, 13:18
by maestrith
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.

Re: GUI Creator (formerly Basic GUI Creator)

Posted: 11 Feb 2016, 13:23
by maestrith

Re: GUI Creator (formerly Basic GUI Creator)

Posted: 11 Feb 2016, 13:45
by Hacker
maestrith wrote:For now use this version. http://files.maestrith.com/GUI-Creator/GUI-Creator.ahk
Thank you!

Re: GUI Creator (formerly Basic GUI Creator)

Posted: 11 Feb 2016, 16:51
by maestrith
Hacker wrote:
maestrith wrote:For now use this version. http://files.maestrith.com/GUI-Creator/GUI-Creator.ahk
Thank you!
You are welcome :)

Re: GUI Creator (formerly Basic GUI Creator)

Posted: 11 Feb 2016, 23:48
by ralgondo
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

Re: GUI Creator (formerly Basic GUI Creator)

Posted: 12 Feb 2016, 02:19
by maestrith
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.

Re: GUI Creator (formerly Basic GUI Creator)

Posted: 16 Mar 2016, 02:34
by autocart
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.

Re: GUI Creator (formerly Basic GUI Creator)

Posted: 16 Mar 2016, 10:09
by maestrith
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.

Re: GUI Creator (formerly Basic GUI Creator)

Posted: 10 May 2016, 23:13
by lornfate
Very useful and helpful!

Thank you very much!

Re: GUI Creator (formerly Basic GUI Creator)

Posted: 16 May 2016, 07:10
by maestrith
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

Re: GUI Creator (formerly Basic GUI Creator)

Posted: 22 Jun 2016, 21:12
by sordidfellow
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

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

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!

Re: GUI Creator (formerly Basic GUI Creator)

Posted: 23 Jun 2016, 09:05
by maestrith
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.

Re: GUI Creator (formerly Basic GUI Creator)

Posted: 03 Dec 2016, 07:35
by autocart
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)

Re: GUI Creator (formerly Basic GUI Creator)

Posted: 03 Dec 2016, 08:45
by maestrith
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.

Re: GUI Creator (formerly Basic GUI Creator)

Posted: 03 Dec 2016, 12:37
by maestrith
Updated to a newer version and also updated the links on the main post. and also here

Re: GUI Creator (formerly Basic GUI Creator)

Posted: 03 Dec 2016, 12:53
by autocart
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.