AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Messagebox-Creator
Goto page 1, 2  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Thalon



Joined: 12 Jul 2005
Posts: 643

PostPosted: Wed Aug 09, 2006 1:37 pm    Post subject: Messagebox-Creator Reply with quote

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
View user's profile Send private message
jballi



Joined: 01 Oct 2005
Posts: 446
Location: Texas, USA

PostPosted: Wed Aug 09, 2006 2:17 pm    Post subject: Reply with quote

Excellent idea! Very Happy 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
View user's profile Send private message Send e-mail
Thalon



Joined: 12 Jul 2005
Posts: 643

PostPosted: Wed Aug 09, 2006 2:34 pm    Post subject: Reply with quote

Thx, I wasn't aware of this options!
I'll add them tomorrow!

Thalon
_________________
AHK-Icon-Changer
AHK-IRC
deutsches Forum
Back to top
View user's profile Send private message
Thalon



Joined: 12 Jul 2005
Posts: 643

PostPosted: Wed Aug 09, 2006 3:35 pm    Post subject: Reply with quote

I had some time in work, so I added it today Wink

Thalon
_________________
AHK-Icon-Changer
AHK-IRC
deutsches Forum
Back to top
View user's profile Send private message
d-man



Joined: 08 Jun 2006
Posts: 268

PostPosted: Wed Aug 09, 2006 3:37 pm    Post subject: Reply with quote

That's a very interesting idea! kind of like smartgui for messageboxes.
Back to top
View user's profile Send private message
userabuser



Joined: 15 Jul 2006
Posts: 29

PostPosted: Thu Aug 10, 2006 1:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
userabuser



Joined: 15 Jul 2006
Posts: 29

PostPosted: Thu Aug 10, 2006 2:00 pm    Post subject: Reply with quote

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! Smile

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
View user's profile Send private message
Thalon



Joined: 12 Jul 2005
Posts: 643

PostPosted: Thu Aug 10, 2006 5:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
Conquer



Joined: 27 Jun 2006
Posts: 385
Location: Canada

PostPosted: Thu Aug 10, 2006 8:52 pm    Post subject: Reply with quote

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
_________________
Back to top
View user's profile Send private message
Thalon



Joined: 12 Jul 2005
Posts: 643

PostPosted: Thu Aug 10, 2006 9:20 pm    Post subject: Reply with quote

What screen-resolution do you use? Shocked
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 Wink
_________________
AHK-Icon-Changer
AHK-IRC
deutsches Forum
Back to top
View user's profile Send private message
Thalon



Joined: 12 Jul 2005
Posts: 643

PostPosted: Fri Aug 11, 2006 9:56 am    Post subject: Reply with quote

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
View user's profile Send private message
userabuser



Joined: 15 Jul 2006
Posts: 29

PostPosted: Tue Aug 15, 2006 6:16 am    Post subject: Reply with quote

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. Smile

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
View user's profile Send private message
Thalon



Joined: 12 Jul 2005
Posts: 643

PostPosted: Tue Aug 15, 2006 2:13 pm    Post subject: Reply with quote

@userabuser
I wanted to add the Reset-Button to GUI as I did come here Very Happy

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
View user's profile Send private message
Conquer



Joined: 27 Jun 2006
Posts: 385
Location: Canada

PostPosted: Wed Aug 16, 2006 3:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
Joy2DWorld



Joined: 04 Dec 2006
Posts: 485
Location: Galil, Israel

PostPosted: Fri Dec 29, 2006 1:31 pm    Post subject: nice. Reply with quote

nice.
_________________
Joyce Jamce
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group