AutoHotkey Community

It is currently May 27th, 2012, 9:01 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 28 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Messagebox-Creator
PostPosted: August 9th, 2006, 1:37 pm 
Offline

Joined: July 12th, 2005, 1:21 pm
Posts: 633
This little program was written to design Messageboxes faster.
I often use them and I already have the most important numbers in my mind, but it is much nicer this way...

When the program is minimized it remains as Tray-Icon to save place. A single click onto the icon is enough to restore it.
Context Menu may also me used...
The Tray-Icons Context Menu also offers a "Reset"-Option to remove all user-input...

You can enter the messagebox-text in more than one line. A linebreak is automatically translated to "`n".
A realtime result can be found at the bottom-part of the GUI.

A "Timeout" of "-1" is interpreted as "not used". Both kinds of decimalpoint "." and "," can be used.

The other options should be self-explanatory..

Code for 2 variants can be retreived here:
http://www.autohotkey.com/forum/post-99392.html#99392
A german version has been done by °digit° here.

Thalon

_________________
AHK-Icon-Changer
AHK-IRC
deutsches Forum


Last edited by Thalon on October 23rd, 2008, 3:11 pm, edited 10 times in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 9th, 2006, 2:17 pm 
Offline

Joined: October 1st, 2005, 9:55 pm
Posts: 775
Location: Texas, USA
Excellent idea! :D I like the test button so that you can instantly see your new MsgBox creation.

Just in case you didn't know, Chris has added a few new options to the MsgBox and IfMsgBox statements in the latest release of AHK. There is a new Always-On-Top option that I like a lot better than System Modal simply because it doesn't include that fracken blank icon in the title bar. In addition, there is a new "Cancel/Try Again/Continue" group of buttons available. Check it out: http://www.autohotkey.com/docs/commands/MsgBox.htm

Them be my thoughts...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 9th, 2006, 2:34 pm 
Offline

Joined: July 12th, 2005, 1:21 pm
Posts: 633
Thx, I wasn't aware of this options!
I'll add them tomorrow!

Thalon

_________________
AHK-Icon-Changer
AHK-IRC
deutsches Forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 9th, 2006, 3:35 pm 
Offline

Joined: July 12th, 2005, 1:21 pm
Posts: 633
I had some time in work, so I added it today ;)

Thalon

_________________
AHK-Icon-Changer
AHK-IRC
deutsches Forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 9th, 2006, 3:37 pm 
Offline

Joined: June 8th, 2006, 2:41 am
Posts: 285
That's a very interesting idea! kind of like smartgui for messageboxes.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 10th, 2006, 1:33 pm 
Offline

Joined: July 15th, 2006, 7:36 pm
Posts: 31
Another keeper added to my "favorites" collection!

I did change it to make it open minimized though.

I also did not know you could do this.
Menu, Tray, Click, 1

Not only is it very useful, but it shows very clearly how to make radio, input boxes, etc..

Thanks!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 10th, 2006, 2:00 pm 
Offline

Joined: July 15th, 2006, 7:36 pm
Posts: 31
Heck, while I'm playing with it.
You may like to change the c:\windows entries to %A_WinDir% to make it more portable. I wouldn't pick at it, except that I like it! :)

One more thing I learned was your very elegant solution to "minimize to tray" I remember a while back I looked all over for this solution and finally "rolled my own". I wish, when you searched the docs for the word "minimize", that this solution would come up.

GuiSize:
if A_EventInfo = 1
Gui, Show, Hide
return


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 10th, 2006, 5:28 pm 
Offline

Joined: July 12th, 2005, 1:21 pm
Posts: 633
Thank you for feedback.
I have updated "A_WinDir"...

If there are any points missing please let me know!

Quote:
Not only is it very useful, but it shows very clearly how to make radio, input boxes, etc..
It is my own style for creating GUIs. This way it is easily possible to move Groupboxes with there related controls around whereever I want.
I'm glad if it's also a way for you!

Quote:
One more thing I learned was your very elegant solution to "minimize to tray"
I searched also around about one year ago and didn't find anything. This is my final solution I already used in some other scripts. I tried several versions, but I like this most - few lines of code and simple handling.

Thalon

_________________
AHK-Icon-Changer
AHK-IRC
deutsches Forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 10th, 2006, 8:52 pm 
Offline

Joined: June 27th, 2006, 2:38 pm
Posts: 385
Location: Canada
Error in your script:

My screen resoultion is smaller than your GUI, so I dont get the Alignment section or the Test/Copy to clipboard buttons.


But congrats, nice job! :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 10th, 2006, 9:20 pm 
Offline

Joined: July 12th, 2005, 1:21 pm
Posts: 633
What screen-resolution do you use? :shock:
640x480?

In this case it should be easily possible to rearrange the groupboxes.
The GUI is designed to be very flexible. You would only have to adjust the missing parts right beside the others.

For example replace the following (only "x" and "y" is affected):
Code:
Gui, Add, Groupbox, x10 y385 h95 w340 section, Buttons
by
Code:
Gui, Add, Groupbox, x360 y10 h95 w340 section, Buttons
---
Code:
Gui, Add, Groupbox, x10 y490 h45 w230 section, Default-Button
by
Code:
Gui, Add, Groupbox, x360 y115 h45 w230 section, Default-Button
---
Code:
Gui, Add, Groupbox, x260 y490 h45 w90 section, Timeout
by
Code:
Gui, Add, Groupbox, x610 y115 h45 w90 section, Timeout
---
Code:
Gui, Add, Groupbox, x10 y545 w230 h45 section, Allignment
by
Code:
Gui, Add, Groupbox, x360 y170 w230 h45 section, Allignment
and
Code:
Gui, Add, Groupbox, x10 y600 w340 h95 section, Result
by
Code:
Gui, Add, Groupbox, x360 y225 w340 h95 section, Result

I hope this will solve it for you ;)

_________________
AHK-Icon-Changer
AHK-IRC
deutsches Forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 11th, 2006, 9:56 am 
Offline

Joined: July 12th, 2005, 1:21 pm
Posts: 633
A little mistake was done: I had forgotten to escape "," and ";".
It's corrected now (see first post).

Thalon

_________________
AHK-Icon-Changer
AHK-IRC
deutsches Forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 15th, 2006, 6:16 am 
Offline

Joined: July 15th, 2006, 7:36 pm
Posts: 31
Code:
Gui, Add, Button, xs+60 ys+60 h30 w40 Default gReset, Reset


If your going to keep messin with it. Put the reset on the bottom of the page. :)

I just used it on a huge script.. Made my script messages look much better. Was fast and easy to do.

I may add an option after copying to the clipboard to reset. Or better yet, a checkbox to "reset after clipboard" option.. hmmm


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 15th, 2006, 2:13 pm 
Offline

Joined: July 12th, 2005, 1:21 pm
Posts: 633
@userabuser
I wanted to add the Reset-Button to GUI as I did come here :D

I have also added the (optional) possibility of a Ini-File for Configurations like Default-Values for "Reset".

I added a option to automatically reset the GUI after pressing the "Copy to Clipboard"-Button as it was your idea!

Thalon

_________________
AHK-Icon-Changer
AHK-IRC
deutsches Forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 16th, 2006, 3:43 pm 
Offline

Joined: June 27th, 2006, 2:38 pm
Posts: 385
Location: Canada
No, im running on 800 x 600.

I personally re aranged controls to make it maximized and fit all on the screen. Thx for the handy script.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: nice.
PostPosted: December 29th, 2006, 1:31 pm 
Offline

Joined: December 4th, 2006, 10:35 am
Posts: 561
Location: Galil, Israel
nice.

_________________
Joyce Jamce


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 28 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 9 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group