Markus Posted January 12, 2006 Share Posted January 12, 2006 Hi! I have a problem with the GUICtrlSetData function. #include <GUIConstants.au3> GUICreate("") GUiSetState() $id_combo=GUICtrlCreateCombo("",10,10,200,20) GUICtrlSetData($id_combo,"hello") GuiCtrlSetData($id_combo,"he") While 1 WEnd If you try it, you'll see, that theres only "hello" in the combo, because for AutoIt "he" seems to be the same as"hello" and so it just sets "hello" as default and doesnt adds "he" as entry(same results with words with same letters at the beginning). It would work if i would add "he" at start and then "hello" but in my newest script the user decides what is added in the combo and if he wants to add $id_variable2 and then $id_variable theres the same problem as with "he" after "hello". Is there any possibilitie to add "he" after "hello"?? Plz help "It's easier to disintegrate an atom than a prejudice." (A.Einstein)---------------------------------------------------------------------------My C++ - tools:Tidy tool-->indents your c++ sourceCleanscript --> cleans autoit-code before compiling (co-author: peethebee)My tools:GUIBuilder-->build your window and get the source; german versionMy Games:OnlineGameCenter-->Online Chess and Connect4 with a rtf-chatSnake-->including a level editor to build your own levelsTetris-->the well known game, big funOther things:Tower of Hanoi-->perfect riddler with graphic output Link to comment Share on other sites More sharing options...
GaryFrost Posted January 12, 2006 Share Posted January 12, 2006 beta 101 it works as you have it written. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Markus Posted January 12, 2006 Author Share Posted January 12, 2006 It works??? Not for me^^ FileGetVersion returns 3.1.0.15 I have same version like u, havent I? why my combo only has "hello" as entry then? "It's easier to disintegrate an atom than a prejudice." (A.Einstein)---------------------------------------------------------------------------My C++ - tools:Tidy tool-->indents your c++ sourceCleanscript --> cleans autoit-code before compiling (co-author: peethebee)My tools:GUIBuilder-->build your window and get the source; german versionMy Games:OnlineGameCenter-->Online Chess and Connect4 with a rtf-chatSnake-->including a level editor to build your own levelsTetris-->the well known game, big funOther things:Tower of Hanoi-->perfect riddler with graphic output Link to comment Share on other sites More sharing options...
Markus Posted January 12, 2006 Author Share Posted January 12, 2006 Ah i need that 3.1.1++ Beta? Never updated my Autoit^^ Good I think that was the mistake "It's easier to disintegrate an atom than a prejudice." (A.Einstein)---------------------------------------------------------------------------My C++ - tools:Tidy tool-->indents your c++ sourceCleanscript --> cleans autoit-code before compiling (co-author: peethebee)My tools:GUIBuilder-->build your window and get the source; german versionMy Games:OnlineGameCenter-->Online Chess and Connect4 with a rtf-chatSnake-->including a level editor to build your own levelsTetris-->the well known game, big funOther things:Tower of Hanoi-->perfect riddler with graphic output Link to comment Share on other sites More sharing options...
Developers Jos Posted January 12, 2006 Developers Share Posted January 12, 2006 you are not on XP right? try: #include <GUIConstants.au3> GUICreate("") GUiSetState() $id_combo=GUICtrlCreateCombo("",10,10,200,80) GUICtrlSetData($id_combo,"hello") GuiCtrlSetData($id_combo,"he") While 1 sleep(10) WEnd SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
GaryFrost Posted January 12, 2006 Share Posted January 12, 2006 @Jdeb, forgot about that, been away for a while. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Markus Posted January 12, 2006 Author Share Posted January 12, 2006 I am. But now all works fine, i just updated Autoit with the 3.1.1++Beta Version, thx for help. "It's easier to disintegrate an atom than a prejudice." (A.Einstein)---------------------------------------------------------------------------My C++ - tools:Tidy tool-->indents your c++ sourceCleanscript --> cleans autoit-code before compiling (co-author: peethebee)My tools:GUIBuilder-->build your window and get the source; german versionMy Games:OnlineGameCenter-->Online Chess and Connect4 with a rtf-chatSnake-->including a level editor to build your own levelsTetris-->the well known game, big funOther things:Tower of Hanoi-->perfect riddler with graphic output 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