Artanis Posted January 29, 2022 Posted January 29, 2022 Hey there, im really new to Autoit so dont blame me please, if my Question is not the smartest. I wrote a skript, in which I open a GUI. Everything works fine, beside the fact, that i want the Skript to Continue, after deleting the GUI. The GUI gets deleted by the second Button and its also working fine, but the Skript doesnt continue then and i need to know why. MouseClick("left", 683, 436, 1) ;Error OK sleep(Random(500,1000)) $hGUI = GUICreate("Wie gehts weiter", 200, 200) GUICtrlCreateLabel("Asteroiden suchen", 100, 15, 100, 20) GUICtrlCreateLabel("Inis weiter farmen", 100, 55, 100, 20) $hButton_1 = GUICtrlCreateButton("Ast", 10, 10, 80, 30) $hButton_2 = GUICtrlCreateButton("Inis", 10, 50, 80, 30) GUISetState() While 1 Switch GUIGetMsg() Case $hButton_1 Filler Case $hButton_2 GUIDelete($hGUI) EndSwitch WEnd MouseMove(900, 300, 1) ;Positionieren über Spionage sleep(Random(10,50)) MouseClick("left", $X_Pos, 391, 1) ;pos 4 Plunder sleep(Random($sleep3,$sleep4)) So the skript is not doing anything after Deleting the GUI. Any ideas how to fix it? Greetings
Moderators Melba23 Posted January 29, 2022 Moderators Posted January 29, 2022 Artanis, Welcome to the AutoIt forums. From the look of that script this is for a game (Asteroiden suchen, pos 4 Plunder). If so, could I point you at the forum rules which expressly forbid discussion of game automation. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Artanis Posted January 29, 2022 Author Posted January 29, 2022 Thank you Well sure, rules are important and i will try to respect them. Does the rule said something of forbbiden Discussions about my own game?
Moderators Melba23 Posted January 29, 2022 Moderators Posted January 29, 2022 Artanis, Is this a game that you have written in AutoIt? M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Artanis Posted January 29, 2022 Author Posted January 29, 2022 No, its something im working on with a few friends of mine.
Moderators Melba23 Posted January 29, 2022 Moderators Posted January 29, 2022 Artanis, Then alas discussion of automating the game is not permitted. Sorry about that - thread locked M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Recommended Posts