| View previous topic :: View next topic |
| Author |
Message |
Thalon
Joined: 12 Jul 2005 Posts: 643
|
Posted: Wed Aug 09, 2006 1:37 pm Post subject: Messagebox-Creator |
|
|
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 Thu Oct 23, 2008 3:11 pm; edited 10 times in total |
|
| Back to top |
|
 |
jballi
Joined: 01 Oct 2005 Posts: 446 Location: Texas, USA
|
Posted: Wed Aug 09, 2006 2:17 pm Post subject: |
|
|
Excellent idea! 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... |
|
| Back to top |
|
 |
Thalon
Joined: 12 Jul 2005 Posts: 643
|
|
| Back to top |
|
 |
Thalon
Joined: 12 Jul 2005 Posts: 643
|
|
| Back to top |
|
 |
d-man
Joined: 08 Jun 2006 Posts: 268
|
Posted: Wed Aug 09, 2006 3:37 pm Post subject: |
|
|
| That's a very interesting idea! kind of like smartgui for messageboxes. |
|
| Back to top |
|
 |
userabuser
Joined: 15 Jul 2006 Posts: 29
|
Posted: Thu Aug 10, 2006 1:33 pm Post subject: |
|
|
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! |
|
| Back to top |
|
 |
userabuser
Joined: 15 Jul 2006 Posts: 29
|
Posted: Thu Aug 10, 2006 2:00 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
Thalon
Joined: 12 Jul 2005 Posts: 643
|
Posted: Thu Aug 10, 2006 5:28 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
Conquer
Joined: 27 Jun 2006 Posts: 385 Location: Canada
|
Posted: Thu Aug 10, 2006 8:52 pm Post subject: |
|
|
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!  _________________
 |
|
| Back to top |
|
 |
Thalon
Joined: 12 Jul 2005 Posts: 643
|
Posted: Thu Aug 10, 2006 9:20 pm Post subject: |
|
|
What screen-resolution do you use?
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 |
|
| Back to top |
|
 |
Thalon
Joined: 12 Jul 2005 Posts: 643
|
Posted: Fri Aug 11, 2006 9:56 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
userabuser
Joined: 15 Jul 2006 Posts: 29
|
Posted: Tue Aug 15, 2006 6:16 am Post subject: |
|
|
| 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 |
|
| Back to top |
|
 |
Thalon
Joined: 12 Jul 2005 Posts: 643
|
Posted: Tue Aug 15, 2006 2:13 pm Post subject: |
|
|
@userabuser
I wanted to add the Reset-Button to GUI as I did come here
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 |
|
| Back to top |
|
 |
Conquer
Joined: 27 Jun 2006 Posts: 385 Location: Canada
|
Posted: Wed Aug 16, 2006 3:43 pm Post subject: |
|
|
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. _________________
 |
|
| Back to top |
|
 |
Joy2DWorld
Joined: 04 Dec 2006 Posts: 485 Location: Galil, Israel
|
Posted: Fri Dec 29, 2006 1:31 pm Post subject: nice. |
|
|
nice. _________________ Joyce Jamce |
|
| Back to top |
|
 |
|