Jump to content


Photo

Basic GUI creator.


  • Please log in to reply
280 replies to this topic

#1 maestrith

maestrith
  • Members
  • 406 posts

Posted 17 May 2011 - 03:45 AM

I have been working on a Script Writer for a while now and I wanted to make a plugin for it that would give the user a development environment for making static GUI's. I know that Rajat has an amazing GUI creator but I was looking to make something a bit more simplistic. I have tested it as much as I can for bugs but if you can find some in it please message me. Any and all feedback is welcome.
Script Writer has been updated to AHK Studio.

 

Un-compiled version requires Autohotkey_L. Please download the compiled version if you are using any other versions.

latest beta
1.This version is for AHK_L only
2.Will work with any version of AHK

If you want to download the files easily just right click and select "save as" that way you do not have to copy and paste the code.

Version notes can be viewed here:

Thank you for taking the time to try out my script.

This script was developed using Script Writer Which I no longer write or update. AHK Studio is now where I program so give it a try.

Just in case you were wondering, my
It is nowhere near ready but it shows what I am doing and where the project is going. Load and save are not implemented yet
beta.PNG
This program was written using my Script Writer.Give it a shot.

Features:

  • Drag to select multiple controls
  • Resize, Move, Position, and change the font of multiple controls at the same time
  • Delete unwanted controls
  • Undo/Redo
  • Edit font color, face, and style
  • Import simple scripts from files or clipboard
  • Automatically load the last saved file

Many more...
_________________________
Composed/Posted with WYSIWYG BBCode Editor



#2 guest3456

guest3456
  • Members
  • 1328 posts

Posted 17 May 2011 - 04:54 AM

cool, simple, i like it :)

#3 shajul

shajul
  • Members
  • 571 posts

Posted 17 May 2011 - 10:42 AM

this is very nice..
maybe you can add an option to duplicate a control also someday!

#4 SoggyDog

SoggyDog
  • Members
  • 803 posts

Posted 17 May 2011 - 01:57 PM

Simple-- Useful;
Could be expanded some without losing simplicity.

#5 bekihito

bekihito
  • Members
  • 42 posts

Posted 17 May 2011 - 03:14 PM

nice, but I suggest a grid background for easier alignment

#6 Morpheus

Morpheus
  • Members
  • 397 posts

Posted 18 May 2011 - 11:19 AM

I am getting a duplicate function definition error. rcm(x="") is defined on lines 109, and 487.

#7 maestrith

maestrith
  • Members
  • 406 posts

Posted 18 May 2011 - 12:39 PM

I am getting a duplicate function definition error. rcm(x="") is defined on lines 109, and 487.

Yea....sorry about that. Somehow I got some of the code twice.

#8 Morpheus

Morpheus
  • Members
  • 397 posts

Posted 18 May 2011 - 03:15 PM

I have it working now. Preliminary results are looking good. Thanks for the script. :)

#9 maestrith

maestrith
  • Members
  • 406 posts

Posted 18 May 2011 - 05:33 PM

You are welcome Morpheus. I have a link at the top of the post where I will be publishing updates. Not all of them will make it to the forum right away so check there.

#10 sjkeegs

sjkeegs
  • Members
  • 21 posts

Posted 19 May 2011 - 01:44 PM

Very nice, Thanks.

#11 maestrith

maestrith
  • Members
  • 406 posts

Posted 19 May 2011 - 04:32 PM

You are welcome sjkeegs. I hope you get some use out of it. I did add a few more options and also Text controls...I can not believe I forgot them.

#12 Relayer

Relayer
  • Members
  • 104 posts

Posted 19 May 2011 - 06:45 PM

hummm,

I just tried it and got a blank parameter error at line 255. I put "" in to see if that would let it load and got a too many parameters error at line 417.

Also, your url for the file has a redundancy at the beginning.

Relayer

#13 tidbit

tidbit
  • Moderators
  • 2288 posts

Posted 19 May 2011 - 07:14 PM

Relayer: same.
solution: use AHKL.

#14 maestrith

maestrith
  • Members
  • 406 posts

Posted 19 May 2011 - 07:32 PM

Thank you Relayer for reporting that to me. I went through the code and found that I was using features that AHK Basic does not use. Thank you to tidbit as well for helping out. I have fixed the script and it should now work with basic as well. The sad thing is that code wise I was doing an extra step that was not necessary.

#15 tidbit

tidbit
  • Moderators
  • 2288 posts

Posted 20 May 2011 - 03:20 PM

I like it :) feels a lot smoother then smartgui.

My suggestions:
1. have the align tools work on reverse. If you right-click on a control and then click the align buttons, it should align that control to the next control clicked.

2. edit the text/headers/labels/whatever of a control. Not sure if you can currently do it, like adding extra headers to a lv or change the text in a text control.
-2a. duplicate control seemed to screw up the headers in the duplicated lv control. That was also the only control I test that on, might screw up other controls.

3. if you could somehow implement a grid, that'd be pretty handy :)


Here's a screenshot of my (quite old) unfinished gui creator. Maybe it'll give you some ideas. It still needs a lot of work. No grid, snapping, aligning, saving, loading and pretty flickery.. But it does have control edge detection, do you can resize the control when your mouse is at the edge of a control.