AlmarM Posted September 21, 2007 Share Posted September 21, 2007 Heya, I now have this script: xxx = All the things from $vsay_list1, $vsay_list_vsays1 etc expandcollapse popup#include <GuiConstants.au3> $edit = GUICtrlCreateEdit("", 16, 40, 601, 361) GuiCreate("Vsay Add", 400, 550) GuiCtrlCreateLabel("Vsay:", 10, 35) GuiCtrlCreateLabel("Key:", 150, 15) GuiCtrlCreateLabel("Text:", 150, 35) $vsay_list1 = GuiCtrlCreatecombo("Vsay List", 10, 10, 110) $vsay_list_vsays1 = GuiCtrlSetData(-1, "PathCleared|EnemyWeak|AllClear|Incoming|FireInTheHole|OnDefense|OnOffense|TakingFire|MinesCleared|EnemyDisguised|Medic|NeedAmmo|NeedBackup|NeedEngineer|CoverMe|HoldFire|WhereTo|NeedOps|FollowMe|LetsGo|Move|ClearPath|DefendObjective|DisarmDynamite|ClearMines|ReinforceOffense|ReinforceDefense|Affirmative|Negative|Thanks|Welcome|Sorry|Oops|EnemyWeak|Hi|Bye|GreatShot|Cheer|HoldFire|GoodGame|CommandAcknowledged|CommandDeclined|CommandCompleted|DestroyPrimary|DestroySecondary|DestroyConstruction|ConstructionCommencing|RepairVehicle|DestroyVehicle|EscortVehicle", "Vsay List") $key_list1 = GuiCtrlCreateCombo("Key List", 180, 10, 110) $key_list_keys1 = GuiCtrlSetData(-1, "f1|f2|f3|f4|f5|f6|f7|f8|f9|f10|f11|f12|1|2|3|4|5|6|7|8|9|0|a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|ins|del|home|pgdn|pgup|end|-|=|[|]|;|'|\|,|.|/|alt|ctrl|tab|mouse1|mouse2|mouse3|mwheelup|mwheeldown|kp_ins|kp_home|kp_del|kp_pgdn|kp_pgup|kp_end|kp_leftarrow|kp_rightarrow|kp_uparrow|kp_downarrow|kp_5", "Key List") $text_input1 = GuiCtrlCreateInput("", 180, 35) $add_button_1 = GuiCtrlCreateButton("Add Vsay", 300, 20) GuiCtrlCreateLabel("Vsay:", 10, 105) GuiCtrlCreateLabel("Key:", 150, 85) GuiCtrlCreateLabel("Text:", 150, 105) $vsay_list2 = GuiCtrlCreatecombo("Vsay List", 10, 80, 110) $vsay_list_vsays2 = GuiCtrlSetData(-1, "PathCleared|EnemyWeak|AllClear|Incoming|FireInTheHole|OnDefense|OnOffense|TakingFire|MinesCleared|EnemyDisguised|Medic|NeedAmmo|NeedBackup|NeedEngineer|CoverMe|HoldFire|WhereTo|NeedOps|FollowMe|LetsGo|Move|ClearPath|DefendObjective|DisarmDynamite|ClearMines|ReinforceOffense|ReinforceDefense|Affirmative|Negative|Thanks|Welcome|Sorry|Oops|EnemyWeak|Hi|Bye|GreatShot|Cheer|HoldFire|GoodGame|CommandAcknowledged|CommandDeclined|CommandCompleted|DestroyPrimary|DestroySecondary|DestroyConstruction|ConstructionCommencing|RepairVehicle|DestroyVehicle|EscortVehicle", "Vsay List") $key_list2 = GuiCtrlCreateCombo("Key List", 180, 80, 110) $key_list_keys2 = GuiCtrlSetData(-1, "f1|f2|f3|f4|f5|f6|f7|f8|f9|f10|f11|f12|1|2|3|4|5|6|7|8|9|0|a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|ins|del|home|pgdn|pgup|end|-|=|[|]|;|'|\|,|.|/|alt|ctrl|tab|mouse1|mouse2|mouse3|mwheelup|mwheeldown|kp_ins|kp_home|kp_del|kp_pgdn|kp_pgup|kp_end|kp_leftarrow|kp_rightarrow|kp_uparrow|kp_downarrow|kp_5", "Key List") $text_input2 = GuiCtrlCreateInput("", 180, 105) $add_button_2 = GuiCtrlCreateButton("Add Vsay", 300, 90) GuiCtrlCreateLabel("Vsay:", 10, 175) GuiCtrlCreateLabel("Key:", 150, 155) GuiCtrlCreateLabel("Text:", 150, 175) $vsay_list3 = GuiCtrlCreatecombo("Vsay List", 10, 150, 110) $vsay_list_vsays3 = GuiCtrlSetData(-1, "PathCleared|EnemyWeak|AllClear|Incoming|FireInTheHole|OnDefense|OnOffense|TakingFire|MinesCleared|EnemyDisguised|Medic|NeedAmmo|NeedBackup|NeedEngineer|CoverMe|HoldFire|WhereTo|NeedOps|FollowMe|LetsGo|Move|ClearPath|DefendObjective|DisarmDynamite|ClearMines|ReinforceOffense|ReinforceDefense|Affirmative|Negative|Thanks|Welcome|Sorry|Oops|EnemyWeak|Hi|Bye|GreatShot|Cheer|HoldFire|GoodGame|CommandAcknowledged|CommandDeclined|CommandCompleted|DestroyPrimary|DestroySecondary|DestroyConstruction|ConstructionCommencing|RepairVehicle|DestroyVehicle|EscortVehicle", "Vsay List") $key_list3 = GuiCtrlCreateCombo("Key List", 180, 150, 110) $key_list_keys3 = GuiCtrlSetData(-1, "f1|f2|f3|f4|f5|f6|f7|f8|f9|f10|f11|f12|1|2|3|4|5|6|7|8|9|0|a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|ins|del|home|pgdn|pgup|end|-|=|[|]|;|'|\|,|.|/|alt|ctrl|tab|mouse1|mouse2|mouse3|mwheelup|mwheeldown|kp_ins|kp_home|kp_del|kp_pgdn|kp_pgup|kp_end|kp_leftarrow|kp_rightarrow|kp_uparrow|kp_downarrow|kp_5", "Key List") $text_input3 = GuiCtrlCreateInput("", 180, 175) $add_button_3 = GuiCtrlCreateButton("Add Vsay", 300, 160) GuiCtrlCreateLabel("Vsay:", 10, 245) GuiCtrlCreateLabel("Key:", 150, 225) GuiCtrlCreateLabel("Text:", 150, 245) $vsay_list4 = GuiCtrlCreatecombo("Vsay List", 10, 220, 110) $vsay_list_vsays4 = GuiCtrlSetData(-1, "PathCleared|EnemyWeak|AllClear|Incoming|FireInTheHole|OnDefense|OnOffense|TakingFire|MinesCleared|EnemyDisguised|Medic|NeedAmmo|NeedBackup|NeedEngineer|CoverMe|HoldFire|WhereTo|NeedOps|FollowMe|LetsGo|Move|ClearPath|DefendObjective|DisarmDynamite|ClearMines|ReinforceOffense|ReinforceDefense|Affirmative|Negative|Thanks|Welcome|Sorry|Oops|EnemyWeak|Hi|Bye|GreatShot|Cheer|HoldFire|GoodGame|CommandAcknowledged|CommandDeclined|CommandCompleted|DestroyPrimary|DestroySecondary|DestroyConstruction|ConstructionCommencing|RepairVehicle|DestroyVehicle|EscortVehicle", "Vsay List") $key_list4 = GuiCtrlCreateCombo("Key List", 180, 220, 110) $key_list_keys4 = GuiCtrlSetData(-1, "f1|f2|f3|f4|f5|f6|f7|f8|f9|f10|f11|f12|1|2|3|4|5|6|7|8|9|0|a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|ins|del|home|pgdn|pgup|end|-|=|[|]|;|'|\|,|.|/|alt|ctrl|tab|mouse1|mouse2|mouse3|mwheelup|mwheeldown|kp_ins|kp_home|kp_del|kp_pgdn|kp_pgup|kp_end|kp_leftarrow|kp_rightarrow|kp_uparrow|kp_downarrow|kp_5", "Key List") $text_input4 = GuiCtrlCreateInput("", 180, 245) $add_button_4 = GuiCtrlCreateButton("Add Vsay", 300, 230) GuiCtrlCreateLabel("Vsay:", 10, 315) GuiCtrlCreateLabel("Key:", 150, 225) GuiCtrlCreateLabel("Text:", 150, 315) $vsay_list5 = GuiCtrlCreatecombo("Vsay List", 10, 290, 110) $vsay_list_vsays5 = GuiCtrlSetData(-1, "PathCleared|EnemyWeak|AllClear|Incoming|FireInTheHole|OnDefense|OnOffense|TakingFire|MinesCleared|EnemyDisguised|Medic|NeedAmmo|NeedBackup|NeedEngineer|CoverMe|HoldFire|WhereTo|NeedOps|FollowMe|LetsGo|Move|ClearPath|DefendObjective|DisarmDynamite|ClearMines|ReinforceOffense|ReinforceDefense|Affirmative|Negative|Thanks|Welcome|Sorry|Oops|EnemyWeak|Hi|Bye|GreatShot|Cheer|HoldFire|GoodGame|CommandAcknowledged|CommandDeclined|CommandCompleted|DestroyPrimary|DestroySecondary|DestroyConstruction|ConstructionCommencing|RepairVehicle|DestroyVehicle|EscortVehicle", "Vsay List") $key_list5 = GuiCtrlCreateCombo("Key List", 180, 290, 110) $key_list_keys5 = GuiCtrlSetData(-1, "f1|f2|f3|f4|f5|f6|f7|f8|f9|f10|f11|f12|1|2|3|4|5|6|7|8|9|0|a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|ins|del|home|pgdn|pgup|end|-|=|[|]|;|'|\|,|.|/|alt|ctrl|tab|mouse1|mouse2|mouse3|mwheelup|mwheeldown|kp_ins|kp_home|kp_del|kp_pgdn|kp_pgup|kp_end|kp_leftarrow|kp_rightarrow|kp_uparrow|kp_downarrow|kp_5", "Key List") $text_input5 = GuiCtrlCreateInput("", 180, 315) $add_button_5 = GuiCtrlCreateButton("Add Vsay", 300, 300) $show_script = GuiCtrlCreateButton("Show Script", 10, 340, 380) GuiSetState() While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit Case $msg = $show_script $script_box = GuiCtrlCreateEdit("xxx", 10, 370, 380, 170) EndSelect WEnd My problem is I dont know how I can do this: You Select a Vsay from Vsay List and a Key from Key List and put text in the input, then you push Add Vsay. If you did that with all the 5 vsays (clicked on all 5 Add Vsays Buttons) How I get get all information fro the Combo an Input Boxes in the GuiCtrlCreateEdit() ?? Someone have an idea ?? Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
AlmarM Posted September 21, 2007 Author Share Posted September 21, 2007 Can someone please!!! help me ?? :"> Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
Blue_Drache Posted September 21, 2007 Share Posted September 21, 2007 (edited) if you want to GET the TEXT from a CONTROL......ControlGetText Edited September 21, 2007 by Blue_Drache Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
AlmarM Posted September 21, 2007 Author Share Posted September 21, 2007 Uhm... I just want to know how I get the things from the Combo and Input into the GuiCtrlCreateEdit() Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
Blue_Drache Posted September 21, 2007 Share Posted September 21, 2007 (edited) Re-read my post. The answer is there. Look harder and read the help file. Ok, so you prefer an example? #include <GuiConstants.au3> Opt("WinTitleMatchMode",4) $hwndMain = GUICreate("Example") $butOne = GUICtrlCreateButton("THIS IS A BUTTON",10,10,150,75) GUISetState(@SW_SHOW,$hwndMain) While 1 $msg = GUIGetMsg() Select Case $msg = $gui_event_close Exit Case $msg = $butOne MsgBox(0,"Your Text Sir",ControlGetText($hwndMain,"",$butOne)) EndSelect WEnd There. Edited September 21, 2007 by Blue_Drache Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
sandin Posted September 21, 2007 Share Posted September 21, 2007 is this what you had in mind: expandcollapse popup#include <GuiConstants.au3> global $i = 0 $edit = GUICtrlCreateEdit("", 16, 40, 601, 361) GuiCreate("Vsay Add", 400, 550) GuiCtrlCreateLabel("Vsay:", 10, 35) GuiCtrlCreateLabel("Key:", 150, 15) GuiCtrlCreateLabel("Text:", 150, 35) $vsay_list1 = GuiCtrlCreatecombo("Vsay List", 10, 10, 110) $vsay_list_vsays1 = GuiCtrlSetData(-1, "PathCleared|EnemyWeak|AllClear|Incoming|FireInTheHole|OnDefense|OnOffense|TakingFire|MinesCleared|EnemyDisguised|Medic|NeedAmmo|NeedBackup|NeedEngineer|CoverMe|HoldFire|WhereTo|NeedOps|FollowMe|LetsGo|Move|ClearPath|DefendObjective|DisarmDynamite|ClearMines|ReinforceOffense|ReinforceDefense|Affirmative|Negative|Thanks|Welcome|Sorry|Oops|EnemyWeak|Hi|Bye|GreatShot|Cheer|HoldFire|GoodGame|CommandAcknowledged|CommandDeclined|CommandCompleted|DestroyPrimary|DestroySecondary|DestroyConstruction|ConstructionCommencing|RepairVehicle|DestroyVehicle|EscortVehicle", "Vsay List") $key_list1 = GuiCtrlCreateCombo("Key List", 180, 10, 110) $key_list_keys1 = GuiCtrlSetData(-1, "f1|f2|f3|f4|f5|f6|f7|f8|f9|f10|f11|f12|1|2|3|4|5|6|7|8|9|0|a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|ins|del|home|pgdn|pgup|end|-|=|[|]|;|'|\|,|.|/|alt|ctrl|tab|mouse1|mouse2|mouse3|mwheelup|mwheeldown|kp_ins|kp_home|kp_del|kp_pgdn|kp_pgup|kp_end|kp_leftarrow|kp_rightarrow|kp_uparrow|kp_downarrow|kp_5", "Key List") $text_input1 = GuiCtrlCreateInput("", 180, 35) $add_button_1 = GuiCtrlCreateButton("Add Vsay", 300, 20) GUICtrlSetState($add_button_1, $GUI_DISABLE) GuiCtrlCreateLabel("Vsay:", 10, 105) GuiCtrlCreateLabel("Key:", 150, 85) GuiCtrlCreateLabel("Text:", 150, 105) $vsay_list2 = GuiCtrlCreatecombo("Vsay List", 10, 80, 110) $vsay_list_vsays2 = GuiCtrlSetData(-1, "PathCleared|EnemyWeak|AllClear|Incoming|FireInTheHole|OnDefense|OnOffense|TakingFire|MinesCleared|EnemyDisguised|Medic|NeedAmmo|NeedBackup|NeedEngineer|CoverMe|HoldFire|WhereTo|NeedOps|FollowMe|LetsGo|Move|ClearPath|DefendObjective|DisarmDynamite|ClearMines|ReinforceOffense|ReinforceDefense|Affirmative|Negative|Thanks|Welcome|Sorry|Oops|EnemyWeak|Hi|Bye|GreatShot|Cheer|HoldFire|GoodGame|CommandAcknowledged|CommandDeclined|CommandCompleted|DestroyPrimary|DestroySecondary|DestroyConstruction|ConstructionCommencing|RepairVehicle|DestroyVehicle|EscortVehicle", "Vsay List") $key_list2 = GuiCtrlCreateCombo("Key List", 180, 80, 110) $key_list_keys2 = GuiCtrlSetData(-1, "f1|f2|f3|f4|f5|f6|f7|f8|f9|f10|f11|f12|1|2|3|4|5|6|7|8|9|0|a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|ins|del|home|pgdn|pgup|end|-|=|[|]|;|'|\|,|.|/|alt|ctrl|tab|mouse1|mouse2|mouse3|mwheelup|mwheeldown|kp_ins|kp_home|kp_del|kp_pgdn|kp_pgup|kp_end|kp_leftarrow|kp_rightarrow|kp_uparrow|kp_downarrow|kp_5", "Key List") $text_input2 = GuiCtrlCreateInput("", 180, 105) $add_button_2 = GuiCtrlCreateButton("Add Vsay", 300, 90) GUICtrlSetState($add_button_2, $GUI_DISABLE) GuiCtrlCreateLabel("Vsay:", 10, 175) GuiCtrlCreateLabel("Key:", 150, 155) GuiCtrlCreateLabel("Text:", 150, 175) $vsay_list3 = GuiCtrlCreatecombo("Vsay List", 10, 150, 110) $vsay_list_vsays3 = GuiCtrlSetData(-1, "PathCleared|EnemyWeak|AllClear|Incoming|FireInTheHole|OnDefense|OnOffense|TakingFire|MinesCleared|EnemyDisguised|Medic|NeedAmmo|NeedBackup|NeedEngineer|CoverMe|HoldFire|WhereTo|NeedOps|FollowMe|LetsGo|Move|ClearPath|DefendObjective|DisarmDynamite|ClearMines|ReinforceOffense|ReinforceDefense|Affirmative|Negative|Thanks|Welcome|Sorry|Oops|EnemyWeak|Hi|Bye|GreatShot|Cheer|HoldFire|GoodGame|CommandAcknowledged|CommandDeclined|CommandCompleted|DestroyPrimary|DestroySecondary|DestroyConstruction|ConstructionCommencing|RepairVehicle|DestroyVehicle|EscortVehicle", "Vsay List") $key_list3 = GuiCtrlCreateCombo("Key List", 180, 150, 110) $key_list_keys3 = GuiCtrlSetData(-1, "f1|f2|f3|f4|f5|f6|f7|f8|f9|f10|f11|f12|1|2|3|4|5|6|7|8|9|0|a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|ins|del|home|pgdn|pgup|end|-|=|[|]|;|'|\|,|.|/|alt|ctrl|tab|mouse1|mouse2|mouse3|mwheelup|mwheeldown|kp_ins|kp_home|kp_del|kp_pgdn|kp_pgup|kp_end|kp_leftarrow|kp_rightarrow|kp_uparrow|kp_downarrow|kp_5", "Key List") $text_input3 = GuiCtrlCreateInput("", 180, 175) $add_button_3 = GuiCtrlCreateButton("Add Vsay", 300, 160) GUICtrlSetState($add_button_3, $GUI_DISABLE) GuiCtrlCreateLabel("Vsay:", 10, 245) GuiCtrlCreateLabel("Key:", 150, 225) GuiCtrlCreateLabel("Text:", 150, 245) $vsay_list4 = GuiCtrlCreatecombo("Vsay List", 10, 220, 110) $vsay_list_vsays4 = GuiCtrlSetData(-1, "PathCleared|EnemyWeak|AllClear|Incoming|FireInTheHole|OnDefense|OnOffense|TakingFire|MinesCleared|EnemyDisguised|Medic|NeedAmmo|NeedBackup|NeedEngineer|CoverMe|HoldFire|WhereTo|NeedOps|FollowMe|LetsGo|Move|ClearPath|DefendObjective|DisarmDynamite|ClearMines|ReinforceOffense|ReinforceDefense|Affirmative|Negative|Thanks|Welcome|Sorry|Oops|EnemyWeak|Hi|Bye|GreatShot|Cheer|HoldFire|GoodGame|CommandAcknowledged|CommandDeclined|CommandCompleted|DestroyPrimary|DestroySecondary|DestroyConstruction|ConstructionCommencing|RepairVehicle|DestroyVehicle|EscortVehicle", "Vsay List") $key_list4 = GuiCtrlCreateCombo("Key List", 180, 220, 110) $key_list_keys4 = GuiCtrlSetData(-1, "f1|f2|f3|f4|f5|f6|f7|f8|f9|f10|f11|f12|1|2|3|4|5|6|7|8|9|0|a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|ins|del|home|pgdn|pgup|end|-|=|[|]|;|'|\|,|.|/|alt|ctrl|tab|mouse1|mouse2|mouse3|mwheelup|mwheeldown|kp_ins|kp_home|kp_del|kp_pgdn|kp_pgup|kp_end|kp_leftarrow|kp_rightarrow|kp_uparrow|kp_downarrow|kp_5", "Key List") $text_input4 = GuiCtrlCreateInput("", 180, 245) $add_button_4 = GuiCtrlCreateButton("Add Vsay", 300, 230) GUICtrlSetState($add_button_4, $GUI_DISABLE) GuiCtrlCreateLabel("Vsay:", 10, 315) GuiCtrlCreateLabel("Key:", 150, 225) GuiCtrlCreateLabel("Text:", 150, 315) $vsay_list5 = GuiCtrlCreatecombo("Vsay List", 10, 290, 110) $vsay_list_vsays5 = GuiCtrlSetData(-1, "PathCleared|EnemyWeak|AllClear|Incoming|FireInTheHole|OnDefense|OnOffense|TakingFire|MinesCleared|EnemyDisguised|Medic|NeedAmmo|NeedBackup|NeedEngineer|CoverMe|HoldFire|WhereTo|NeedOps|FollowMe|LetsGo|Move|ClearPath|DefendObjective|DisarmDynamite|ClearMines|ReinforceOffense|ReinforceDefense|Affirmative|Negative|Thanks|Welcome|Sorry|Oops|EnemyWeak|Hi|Bye|GreatShot|Cheer|HoldFire|GoodGame|CommandAcknowledged|CommandDeclined|CommandCompleted|DestroyPrimary|DestroySecondary|DestroyConstruction|ConstructionCommencing|RepairVehicle|DestroyVehicle|EscortVehicle", "Vsay List") $key_list5 = GuiCtrlCreateCombo("Key List", 180, 290, 110) $key_list_keys5 = GuiCtrlSetData(-1, "f1|f2|f3|f4|f5|f6|f7|f8|f9|f10|f11|f12|1|2|3|4|5|6|7|8|9|0|a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|ins|del|home|pgdn|pgup|end|-|=|[|]|;|'|\|,|.|/|alt|ctrl|tab|mouse1|mouse2|mouse3|mwheelup|mwheeldown|kp_ins|kp_home|kp_del|kp_pgdn|kp_pgup|kp_end|kp_leftarrow|kp_rightarrow|kp_uparrow|kp_downarrow|kp_5", "Key List") $text_input5 = GuiCtrlCreateInput("", 180, 315) $add_button_5 = GuiCtrlCreateButton("Add Vsay", 300, 300) GUICtrlSetState($add_button_5, $GUI_DISABLE) $show_script = GuiCtrlCreateButton("Show Script", 10, 340, 380) $script_box = GuiCtrlCreateEdit("xxx", 10, 370, 380, 170) GUICtrlSetState($script_box, $GUI_HIDE) GuiSetState() While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit Case $msg = $show_script if $i = 0 Then GUICtrlSetState($script_box, $GUI_SHOW) GUICtrlSetState($add_button_1, $GUI_ENABLE) GUICtrlSetState($add_button_2, $GUI_ENABLE) GUICtrlSetState($add_button_3, $GUI_ENABLE) GUICtrlSetState($add_button_4, $GUI_ENABLE) GUICtrlSetState($add_button_5, $GUI_ENABLE) $i = 1 Else GUICtrlSetState($script_box, $GUI_HIDE) GUICtrlSetState($add_button_1, $GUI_DISABLE) GUICtrlSetState($add_button_2, $GUI_DISABLE) GUICtrlSetState($add_button_3, $GUI_DISABLE) GUICtrlSetState($add_button_4, $GUI_DISABLE) GUICtrlSetState($add_button_5, $GUI_DISABLE) $i = 0 EndIf case $msg = $add_button_1 GUICtrlSetData($script_box, GUICtrlRead($script_box) & @CRLF & GUICtrlRead($vsay_list1) & " --- " & Guictrlread($key_list1) & " --- " & Guictrlread($text_input1)) case $msg = $add_button_2 GUICtrlSetData($script_box, GUICtrlRead($script_box) & @CRLF & GUICtrlRead($vsay_list2) & " --- " & Guictrlread($key_list2) & " --- " & Guictrlread($text_input2)) case $msg = $add_button_3 GUICtrlSetData($script_box, GUICtrlRead($script_box) & @CRLF & GUICtrlRead($vsay_list3) & " --- " & Guictrlread($key_list3) & " --- " & Guictrlread($text_input3)) case $msg = $add_button_4 GUICtrlSetData($script_box, GUICtrlRead($script_box) & @CRLF & GUICtrlRead($vsay_list4) & " --- " & Guictrlread($key_list4) & " --- " & Guictrlread($text_input4)) case $msg = $add_button_5 GUICtrlSetData($script_box, GUICtrlRead($script_box) & @CRLF & GUICtrlRead($vsay_list5) & " --- " & Guictrlread($key_list5) & " --- " & Guictrlread($text_input5)) EndSelect WEnd ? Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll Link to comment Share on other sites More sharing options...
AlmarM Posted September 21, 2007 Author Share Posted September 21, 2007 Yeah thats almost good Ty for your help but I actualy needed this: Case $msg = $add_button_1 $read_vsay_list1 = GuiCtrlRead($vsay_list1) $read_key_list1 = GuiCtrlRead($key_list1) Case $msg = $show_script $script_box = GuiCtrlCreateEdit("bind " & $read_key_list1 & " vsay " & $read_vsay_list1, 10, 370, 380, 170) Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
AlmarM Posted September 21, 2007 Author Share Posted September 21, 2007 (edited) Can u make this script that if you pressed all Add Vsay button THEN will the Show Script Button be able to push? EDIT: I know a better idea... Can u make it that you need to Push the 1st Add Vsay then will the 2nd enable if the 2nd = pussed the 3rd will be unlocked etc etc etc ?? Edited September 21, 2007 by AlmarM Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
Blue_Drache Posted September 21, 2007 Share Posted September 21, 2007 (edited) GUICtrlSetState #include <GuiConstants.au3> Opt("WinTitleMatchMode",4) $hwndMain = GUICreate("Example") $butOne = GUICtrlCreateButton("PUSH ME",10,10,150,75) $butTwo = GUICtrlCreateButton("Now Push Me",220,200,150,75) GUICtrlSetState($butTwo,$gui_disable) $lblOne = GUICtrlCreateLabel("Type in edit control(s) and push button",175,10,75,75) $editOne = GUICtrlCreateEdit("Just tinkering around",10,90,200,100) $editTwo = GUICtrlCreateEdit("Still tinkering around",10,200,200,100) $text = "" GUISetState(@SW_SHOW,$hwndMain) While 1 $msg = GUIGetMsg() Select Case $msg = $gui_event_close Exit Case $msg = $butOne GUICtrlSetState($butOne,$gui_disable) GUICtrlSetState($butTwo,$gui_enable) $text = ControlGetText($hwndMain,"",$editOne) & @LF Case $msg = $butTwo $text = $text & ControlGetText($hwndMain,"",$editTwo) MsgBox(0,"Your Text Sir",$text) EndSelect WEnd Edited September 21, 2007 by Blue_Drache Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
AlmarM Posted September 21, 2007 Author Share Posted September 21, 2007 Yeah I just figured out how I want my script.... This is it expandcollapse popup#include <GuiConstants.au3> DIM $read_key_list1, $read_vsay_list1, $read_text_input1, $read_key_list2, $read_vsay_list2, $read_text_input2, $read_key_list3, $read_vsay_list3, $read_text_input3, $read_key_list4, $read_vsay_list4, $read_text_input4, $read_key_list5, $read_vsay_list5, $read_text_input5 $edit = GUICtrlCreateEdit("", 16, 40, 601, 361) GuiCreate("Vsay Add", 400, 550) GuiCtrlCreateLabel("Vsay:", 10, 35) GuiCtrlCreateLabel("Key:", 150, 15) GuiCtrlCreateLabel("Text:", 150, 35) $vsay_list1 = GuiCtrlCreatecombo("Vsay List", 10, 10, 110) $vsay_list_vsays1 = GuiCtrlSetData(-1, "PathCleared|EnemyWeak|AllClear|Incoming|FireInTheHole|OnDefense|OnOffense|TakingFire|MinesCleared|EnemyDisguised|Medic|NeedAmmo|NeedBackup|NeedEngineer|CoverMe|HoldFire|WhereTo|NeedOps|FollowMe|LetsGo|Move|ClearPath|DefendObjective|DisarmDynamite|ClearMines|ReinforceOffense|ReinforceDefense|Affirmative|Negative|Thanks|Welcome|Sorry|Oops|EnemyWeak|Hi|Bye|GreatShot|Cheer|HoldFire|GoodGame|CommandAcknowledged|CommandDeclined|CommandCompleted|DestroyPrimary|DestroySecondary|DestroyConstruction|ConstructionCommencing|RepairVehicle|DestroyVehicle|EscortVehicle", "Vsay List") $key_list1 = GuiCtrlCreateCombo("Key List", 180, 10, 110) $key_list_keys1 = GuiCtrlSetData(-1, "f1|f2|f3|f4|f5|f6|f7|f8|f9|f10|f11|f12|1|2|3|4|5|6|7|8|9|0|a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|ins|del|home|pgdn|pgup|end|-|=|[|]|;|'|\|,|.|/|alt|ctrl|tab|mouse1|mouse2|mouse3|mwheelup|mwheeldown|kp_ins|kp_home|kp_del|kp_pgdn|kp_pgup|kp_end|kp_leftarrow|kp_rightarrow|kp_uparrow|kp_downarrow|kp_5", "Key List") $text_input1 = GuiCtrlCreateInput("", 180, 35) $add_button_1 = GuiCtrlCreateButton("Add Vsay", 300, 20) GuiCtrlSetState($add_button_1, $GUI_ENABLE) GuiCtrlCreateLabel("Vsay:", 10, 105) GuiCtrlCreateLabel("Key:", 150, 85) GuiCtrlCreateLabel("Text:", 150, 105) $vsay_list2 = GuiCtrlCreatecombo("Vsay List", 10, 80, 110) $vsay_list_vsays2 = GuiCtrlSetData(-1, "PathCleared|EnemyWeak|AllClear|Incoming|FireInTheHole|OnDefense|OnOffense|TakingFire|MinesCleared|EnemyDisguised|Medic|NeedAmmo|NeedBackup|NeedEngineer|CoverMe|HoldFire|WhereTo|NeedOps|FollowMe|LetsGo|Move|ClearPath|DefendObjective|DisarmDynamite|ClearMines|ReinforceOffense|ReinforceDefense|Affirmative|Negative|Thanks|Welcome|Sorry|Oops|EnemyWeak|Hi|Bye|GreatShot|Cheer|HoldFire|GoodGame|CommandAcknowledged|CommandDeclined|CommandCompleted|DestroyPrimary|DestroySecondary|DestroyConstruction|ConstructionCommencing|RepairVehicle|DestroyVehicle|EscortVehicle", "Vsay List") $key_list2 = GuiCtrlCreateCombo("Key List", 180, 80, 110) $key_list_keys2 = GuiCtrlSetData(-1, "f1|f2|f3|f4|f5|f6|f7|f8|f9|f10|f11|f12|1|2|3|4|5|6|7|8|9|0|a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|ins|del|home|pgdn|pgup|end|-|=|[|]|;|'|\|,|.|/|alt|ctrl|tab|mouse1|mouse2|mouse3|mwheelup|mwheeldown|kp_ins|kp_home|kp_del|kp_pgdn|kp_pgup|kp_end|kp_leftarrow|kp_rightarrow|kp_uparrow|kp_downarrow|kp_5", "Key List") $text_input2 = GuiCtrlCreateInput("", 180, 105) $add_button_2 = GuiCtrlCreateButton("Add Vsay", 300, 90) GuiCtrlSetState($add_button_2, $GUI_DISABLE) GuiCtrlCreateLabel("Vsay:", 10, 175) GuiCtrlCreateLabel("Key:", 150, 155) GuiCtrlCreateLabel("Text:", 150, 175) $vsay_list3 = GuiCtrlCreatecombo("Vsay List", 10, 150, 110) $vsay_list_vsays3 = GuiCtrlSetData(-1, "PathCleared|EnemyWeak|AllClear|Incoming|FireInTheHole|OnDefense|OnOffense|TakingFire|MinesCleared|EnemyDisguised|Medic|NeedAmmo|NeedBackup|NeedEngineer|CoverMe|HoldFire|WhereTo|NeedOps|FollowMe|LetsGo|Move|ClearPath|DefendObjective|DisarmDynamite|ClearMines|ReinforceOffense|ReinforceDefense|Affirmative|Negative|Thanks|Welcome|Sorry|Oops|EnemyWeak|Hi|Bye|GreatShot|Cheer|HoldFire|GoodGame|CommandAcknowledged|CommandDeclined|CommandCompleted|DestroyPrimary|DestroySecondary|DestroyConstruction|ConstructionCommencing|RepairVehicle|DestroyVehicle|EscortVehicle", "Vsay List") $key_list3 = GuiCtrlCreateCombo("Key List", 180, 150, 110) $key_list_keys3 = GuiCtrlSetData(-1, "f1|f2|f3|f4|f5|f6|f7|f8|f9|f10|f11|f12|1|2|3|4|5|6|7|8|9|0|a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|ins|del|home|pgdn|pgup|end|-|=|[|]|;|'|\|,|.|/|alt|ctrl|tab|mouse1|mouse2|mouse3|mwheelup|mwheeldown|kp_ins|kp_home|kp_del|kp_pgdn|kp_pgup|kp_end|kp_leftarrow|kp_rightarrow|kp_uparrow|kp_downarrow|kp_5", "Key List") $text_input3 = GuiCtrlCreateInput("", 180, 175) $add_button_3 = GuiCtrlCreateButton("Add Vsay", 300, 160) GuiCtrlSetState($add_button_3, $GUI_DISABLE) GuiCtrlCreateLabel("Vsay:", 10, 245) GuiCtrlCreateLabel("Key:", 150, 225) GuiCtrlCreateLabel("Text:", 150, 245) $vsay_list4 = GuiCtrlCreatecombo("Vsay List", 10, 220, 110) $vsay_list_vsays4 = GuiCtrlSetData(-1, "PathCleared|EnemyWeak|AllClear|Incoming|FireInTheHole|OnDefense|OnOffense|TakingFire|MinesCleared|EnemyDisguised|Medic|NeedAmmo|NeedBackup|NeedEngineer|CoverMe|HoldFire|WhereTo|NeedOps|FollowMe|LetsGo|Move|ClearPath|DefendObjective|DisarmDynamite|ClearMines|ReinforceOffense|ReinforceDefense|Affirmative|Negative|Thanks|Welcome|Sorry|Oops|EnemyWeak|Hi|Bye|GreatShot|Cheer|HoldFire|GoodGame|CommandAcknowledged|CommandDeclined|CommandCompleted|DestroyPrimary|DestroySecondary|DestroyConstruction|ConstructionCommencing|RepairVehicle|DestroyVehicle|EscortVehicle", "Vsay List") $key_list4 = GuiCtrlCreateCombo("Key List", 180, 220, 110) $key_list_keys4 = GuiCtrlSetData(-1, "f1|f2|f3|f4|f5|f6|f7|f8|f9|f10|f11|f12|1|2|3|4|5|6|7|8|9|0|a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|ins|del|home|pgdn|pgup|end|-|=|[|]|;|'|\|,|.|/|alt|ctrl|tab|mouse1|mouse2|mouse3|mwheelup|mwheeldown|kp_ins|kp_home|kp_del|kp_pgdn|kp_pgup|kp_end|kp_leftarrow|kp_rightarrow|kp_uparrow|kp_downarrow|kp_5", "Key List") $text_input4 = GuiCtrlCreateInput("", 180, 245) $add_button_4 = GuiCtrlCreateButton("Add Vsay", 300, 230) GuiCtrlSetState($add_button_4, $GUI_DISABLE) GuiCtrlCreateLabel("Vsay:", 10, 315) GuiCtrlCreateLabel("Key:", 150, 295) GuiCtrlCreateLabel("Text:", 150, 315) $vsay_list5 = GuiCtrlCreatecombo("Vsay List", 10, 290, 110) $vsay_list_vsays5 = GuiCtrlSetData(-1, "PathCleared|EnemyWeak|AllClear|Incoming|FireInTheHole|OnDefense|OnOffense|TakingFire|MinesCleared|EnemyDisguised|Medic|NeedAmmo|NeedBackup|NeedEngineer|CoverMe|HoldFire|WhereTo|NeedOps|FollowMe|LetsGo|Move|ClearPath|DefendObjective|DisarmDynamite|ClearMines|ReinforceOffense|ReinforceDefense|Affirmative|Negative|Thanks|Welcome|Sorry|Oops|EnemyWeak|Hi|Bye|GreatShot|Cheer|HoldFire|GoodGame|CommandAcknowledged|CommandDeclined|CommandCompleted|DestroyPrimary|DestroySecondary|DestroyConstruction|ConstructionCommencing|RepairVehicle|DestroyVehicle|EscortVehicle", "Vsay List") $key_list5 = GuiCtrlCreateCombo("Key List", 180, 290, 110) $key_list_keys5 = GuiCtrlSetData(-1, "f1|f2|f3|f4|f5|f6|f7|f8|f9|f10|f11|f12|1|2|3|4|5|6|7|8|9|0|a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|ins|del|home|pgdn|pgup|end|-|=|[|]|;|'|\|,|.|/|alt|ctrl|tab|mouse1|mouse2|mouse3|mwheelup|mwheeldown|kp_ins|kp_home|kp_del|kp_pgdn|kp_pgup|kp_end|kp_leftarrow|kp_rightarrow|kp_uparrow|kp_downarrow|kp_5", "Key List") $text_input5 = GuiCtrlCreateInput("", 180, 315) $add_button_5 = GuiCtrlCreateButton("Add Vsay", 300, 300) GuiCtrlSetState($add_button_5, $GUI_DISABLE) $show_script = GuiCtrlCreateButton("Show Script", 10, 340, 380) GuiCtrlSetState($show_script, $GUI_DISABLE) GuiSetState() While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit Case $msg = $add_button_1 $read_vsay_list1 = GuiCtrlRead($vsay_list1) $read_key_list1 = GuiCtrlRead($key_list1) $read_text_input1 = GuiCtrlRead($text_input1) GuiCtrlSetState($add_button_2, $GUI_ENABLE) Case $msg = $add_button_2 $read_vsay_list2 = GuiCtrlRead($vsay_list2) $read_key_list2 = GuiCtrlRead($key_list2) $read_text_input2 = GuiCtrlRead($text_input2) GuiCtrlSetState($add_button_3, $GUI_ENABLE) Case $msg = $add_button_3 $read_vsay_list3 = GuiCtrlRead($vsay_list3) $read_key_list3 = GuiCtrlRead($key_list3) $read_text_input3 = GuiCtrlRead($text_input3) GuiCtrlSetState($add_button_4, $GUI_ENABLE) Case $msg = $add_button_4 $read_vsay_list4 = GuiCtrlRead($vsay_list4) $read_key_list4 = GuiCtrlRead($key_list4) $read_text_input4 = GuiCtrlRead($text_input4) GuiCtrlSetState($add_button_5, $GUI_ENABLE) Case $msg = $add_button_5 $read_vsay_list5 = GuiCtrlRead($vsay_list5) $read_key_list5 = GuiCtrlRead($key_list5) $read_text_input5 = GuiCtrlRead($text_input5) GuiCtrlSetState($show_script, $GUI_ENABLE) Case $msg = $show_script $script_box = GuiCtrlCreateEdit("bind " & $read_key_list1 & " vsay " & $read_vsay_list1 & " " & $read_text_input1 & @CRLF & "bind " & $read_key_list2 & " vsay " & $read_vsay_list2 & " " & $read_text_input2 & @CRLF & "bind " & $read_key_list3 & " vsay " & $read_vsay_list3 & " " & $read_text_input3 & @CRLF & "bind " & $read_key_list4 & " vsay " & $read_vsay_list4 & " " & $read_text_input4 & @CRLF & "bind " & $read_key_list5 & " vsay " & $read_vsay_list5 & " " & $read_text_input5, 10, 370, 380, 170) EndSelect WEnd This is the script ^^ Im only adding the GuiSetIcon() Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
aslani Posted September 21, 2007 Share Posted September 21, 2007 (edited) Case $msg = $show_script $vsay = _ArrayCreate(GUICtrlRead($vsay_list1),GUICtrlRead($key_list1),GUICtrlRead($vsay_list2),GUICtrlRead($key_list2),GUICtrlRead($vsay_list3),GUICtrlRead($key_list3),GUICtrlRead($vsay_list4),GUICtrlRead($key_list4),GUICtrlRead($vsay_list5),GUICtrlRead($key_list5)) $script_box = GuiCtrlCreateEdit("", 10, 370, 380, 170) GuiCtrlSetData(-1, "" & $vsay[0] & " = " & $vsay[1] & @CRLF & $vsay[2] & " = " & $vsay[3] & @CRLF & $vsay[4] & " = " & $vsay[5] & @CRLF & $vsay[6] & " = " & $vsay[7] & @CRLF & $vsay[8] & " = " & $vsay[9]) EDIT: Don't forget to include, #Include <Array.au3>, but I'm sure you know that already. Edited September 21, 2007 by aslani [font="Georgia"]Chances are, I'm wrong.[/font]HotKey trouble?Stringregexp GuideAutoIT Current Version 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