| View previous topic :: View next topic |
| Author |
Message |
rockit0
Joined: 06 Oct 2006 Posts: 22
|
Posted: Fri Oct 06, 2006 10:24 pm Post subject: Simple Question about DDL |
|
|
How to AutoLoad when i select one of item of Drop Down List?
For Example:
There is 4 itens in my DDL: Blue|Green|Red|Yellow
If i select the green one, the script will execute: "Msgbox, You collor was Green" automatic, without wait gui submit or i press enter or click OK.
How can i do this?
Sorry for my English
Thank's! |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5376 Location: /b/
|
Posted: Fri Oct 06, 2006 11:04 pm Post subject: |
|
|
Give it a g-label  |
|
| Back to top |
|
 |
rockit0
Joined: 06 Oct 2006 Posts: 22
|
Posted: Fri Oct 06, 2006 11:24 pm Post subject: |
|
|
| Ok, but, how to do it using DDL ? |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 6223
|
Posted: Fri Oct 06, 2006 11:36 pm Post subject: |
|
|
| rockit0 wrote: | | Ok, but, how to do it using DDL ? |
| Code: | Gui, Add, DDL, Choose1 vColor gShowMsgBox, Blue|Green|Red|Yellow
Gui, Show, w400 h300 , Select a Color
Return
ShowMsgBox:
Gui, Submit, NoHide
MsgBox, 64, Color Selection, %Color%
Return
GuiEscape:
GuiClose:
ExitApp
Return |
Regards,
PS: Please Read The Fine Manual and try the examples given in it. Also use Search and try the many scripts posted throughout this forum. _________________
 |
|
| Back to top |
|
 |
rockit0
Joined: 06 Oct 2006 Posts: 22
|
Posted: Fri Oct 06, 2006 11:44 pm Post subject: |
|
|
| Thank's. |
|
| Back to top |
|
 |
|