tommytx Posted April 8, 2012 Share Posted April 8, 2012 I am familiar with the onchange() action available in javascript to fire off the combo box each time you make a change in the combo box selection I have searched by have not found such a command in Auto it... does anyone know how or if this can be done... #include <GUIConstants.au3> hotkeyset("{ESC}", "terminate") GUICreate("TEST1", 400, 400) GUISetState(@SW_SHOW) $combo1 = GUICtrlCreateCombo("Make Selection", 50, 50, 200, 100, 3) $button = GUICtrlCreateButton("Action" , 50, 250, 50, 20) GUICtrlSetData($combo1,"Close|Test|Sync|Minimize|Restore" ) While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $button Local $a = GuiCtrlRead($combo1) Select case $a = "Close" MsgBox(0,"","Close") case $a = "Test" MsgBox(0,"","Test") case $a = "Sync" MsgBox(0,"","Sync") case $a = "Minimize" MsgBox(0,"","Minimize") case $a = "Restore" MsgBox(0,"","Restore") EndSelect EndSelect Wend func terminate() ;exit Exit 0 EndFunc Link to comment Share on other sites More sharing options...
SecretLanguage Posted April 8, 2012 Share Posted April 8, 2012 hey nice script here how long do you plan on working tonight? Link to comment Share on other sites More sharing options...
SecretLanguage Posted April 8, 2012 Share Posted April 8, 2012 just curious if you will be available for a webinar Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now