MajSlayer420 Posted March 3, 2007 Share Posted March 3, 2007 Hello, I'm having a problem, When a user selects a option in my pulldown menu my script cant activate keyboard commands till the user selects some other option(or tabs out of the input field) Is there a way I can stop this? Heres my Code Global $LogOnTime $LogOnTime = GUICtrlCreateCombo ("12:00 PM", 150,312,70,200,$CBS_DROPDOWNLIST) ; create first item GUICtrlSetData(-1,"1:00 PM|2:00 PM|3:00 PM|4:00 PM|5:00 PM|6:00 PM|7:00 PM|8:00 PM|9:00 PM|10:00 PM|11:00 PM|12:00 AM|1:00 AM|2:00 AM|3:00 AM|4:00 AM|5:00 AM|6:00 AM|7:00 AM|8:00 AM|9:00 AM|10:00 AM|11:00 AM","12:00 PM") Thanks, MajSlayer420 Link to comment Share on other sites More sharing options...
BrettF Posted March 3, 2007 Share Posted March 3, 2007 $msg = GUIGetMsg () $Combo = GuiCtrlRead ($combo) Select Case Not $combo = GuiCtrlRead ($combo) ;Do Something EndSelect UNTESTED! Hope that helps Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
EndFunc Posted March 4, 2007 Share Posted March 4, 2007 Hello, I'm having a problem, When a user selects a option in my pulldown menu my script cant activate keyboard commands till the user selects some other option(or tabs out of the input field)Is there a way I can stop this?Heres my CodeGlobal $LogOnTime$LogOnTime = GUICtrlCreateCombo ("12:00 PM", 150,312,70,200,$CBS_DROPDOWNLIST) ; create first itemGUICtrlSetData(-1,"1:00 PM|2:00 PM|3:00 PM|4:00 PM|5:00 PM|6:00 PM|7:00 PM|8:00 PM|9:00 PM|10:00 PM|11:00 PM|12:00 AM|1:00 AM|2:00 AM|3:00 AM|4:00 AM|5:00 AM|6:00 AM|7:00 AM|8:00 AM|9:00 AM|10:00 AM|11:00 AM","12:00 PM") Thanks,MajSlayer420What do you want it to do after the time is selected? Since the field is basically read-only you won't be able to type anything until you change focus of the control. EndFuncAutoIt is the shiznit. I love it. 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