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:

  Reveal hidden contents

 

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:

  Reveal hidden contents

 

  • 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:

  Reveal hidden contents

 

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

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