Dampe Posted March 31, 2010 Share Posted March 31, 2010 Howdy. I cannot seem to read any value from my combo box except 0. Example: $System_Drop = GUICtrlCreateCombo ("Alterac Valley", 170, 5, 145, 20) GUICtrlSetData (-1, "Arathi Basin|Warsong Gulch|Eye of the Storm", "Alterac Valley") MsgBox (32, "test", GUICtrlRead($System_Drop)) And even $System_Drop = GUICtrlCreateCombo ("Alterac Valley", 170, 5, 145, 20) GUICtrlSetData (-1, "Arathi Basin|Warsong Gulch|Eye of the Storm", "Alterac Valley") MsgBox (32, "test", _GUICtrlComboBox_GetCurSel($System_Drop)) Thanks Link to comment Share on other sites More sharing options...
ForsakenGod Posted March 31, 2010 Share Posted March 31, 2010 (edited) $System_Drop = GUICtrlCreateCombo ("Alterac Valley", 170, 5, 145, 20) GUICtrlSetData (-1, "Arathi Basin|Warsong Gulch|Eye of the Storm", "Alterac Valley") MsgBox (32, "test", GUICtrlRead($System_Drop)) $System_Drop = GUICtrlCreateCombo ("Alterac Valley", 170, 5, 145, 20) GUICtrlSetData (-1, "Arathi Basin|Warsong Gulch|Eye of the Storm", "Alterac Valley") MsgBox (32, "test", _GUICtrlComboBox_GetCurSel($System_Drop)) You are creating a game bot and thats not allowed here ( Yes its violating Blizzards EULA ) When you want to post here firstoff READ THE RULES ! Edited March 31, 2010 by ForsakenGod Link to comment Share on other sites More sharing options...
Dampe Posted March 31, 2010 Author Share Posted March 31, 2010 (edited) You are creating a game bot and thats not allowed here ( Yes its violating Blizzards EULA ) When you want to post here firstoff READ THE RULES !First of all, I have about 150 posts more than you.Second of all, I'm not asking for help with writing a bot, I'm asking for help with a GUI Function. You have absolutely no idea what the rest of the script does. It could just be a knowledge database or something similar.And thirdly, before you go bossing people around, you should really think more before you post. You're just making yourself look stupid.If anyone doesn't want me to post this, I can re-post the same problem without battleground names for values,But I really didn't think it was necessary.Now if we could go back on topic that would be excellent. Edited March 31, 2010 by Dampe Link to comment Share on other sites More sharing options...
ForsakenGod Posted March 31, 2010 Share Posted March 31, 2010 First of all, I have about 150 posts more than you. Second of all, I'm not asking for help with writing a bot, I'm asking for help with a GUI Function. And thirdly, before you go bossing people around, you should check these things out. If anyone doesn't want me to post this, I can re-post the same problem without battleground names for values, But I really didn't think it was necessary. Now if we could go back on topic that would be excellent. I m definelly not bossy lol i am just telling you that you ignore the rules here . 150 posts more than me ? o.O so what .If you think the number of posts mean experience ( Well in some cases it does ) why are you not able to read the helpfile ? I m not telling this is the best way how to solve it but it works #include <GUIConstants.au3> #Region ### START Koda GUI section ### Form= Global $Form1 = GUICreate("Form1", 625, 443, 193, 125) Global $System_Drop = GUICtrlCreateCombo ("Alterac Valley", 170, 5, 145, 20) GUICtrlSetData (-1, "Arathi Basin|Warsong Gulch|Eye of the Storm", "Alterac Valley") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $System_Drop Combo() EndSwitch Wend Func Combo() $cRead = GUICtrlRead($System_Drop) If $cRead = "Arathi Basin" Then MsgBox (32, "test", $cRead) ;~ Arathi Basin stuff ElseIf $cRead = "Warsong Gulch" Then MsgBox (32, "test", $cRead) ;~ Warsong Gulch stuff ElseIf $cRead = "Eye of the Storm" Then MsgBox (32, "test", $cRead) ;~ Eye of the Storm stuff EndIF EndFunc Link to comment Share on other sites More sharing options...
Dampe Posted March 31, 2010 Author Share Posted March 31, 2010 Sorry, didn't mean to hard rage. Just was frustrated. Thanks, it seems assigning the value to a variable and then reading it works. 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