Jump to content

Recommended Posts

Posted

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
Posted

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Posted

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
Posted

Artanis,

Is this a game that you have written in AutoIt?

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

  • Moderators
Posted

Artanis,

Then alas discussion of automating the game is not permitted. Sorry about that - thread locked

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...