Jump to content

Recommended Posts

Posted (edited)

First off, hey guys! I'm new to the forums, and fairly new to AutoIt. I have only been using it for a few weeks, but I must say it is a great program, and easy to use. So, now to business.

First problem, the "Stop" button in my program is not working. I was searching the forums and saw someone say that for the "Stop" button to work during a loop, it must be outside the main loop? I understand this, but am not exactly sure how to do it. I will post a piece of my bot here, so you guys can give me some hints, and further explain it to me. This is the thread I was talking about:

Second problem, I was wondering if it was possible to put a picture in my bot's GUI? For example, having a picture of a car as the background of my bot, rather than a solid color? Or if I could just put a picture on top of the background somehow? Thanks!

Part of my script from problem one:

GUINelson()

Func GUINelson()
    Local $btnLoop, $btnClose, $msg
    GUICreate("JustRestarter", 250, 100, -1, -1, -1)
    GUISetBkColor(0x000000)

    $btnLoop = GUICtrlCreateButton("Run", 10, 10, 115, 75)
    $btnClose = GUICtrlCreateButton("Stop", 125, 10, 115, 75)
    GUISetState()

    While 1
        $msg = GUIGetMsg()
        Select
            Case $msg = $GUI_EVENT_CLOSE
                ExitLoop
            Case $msg = $btnLoop
                Call("Loop")
            Case $msg = $btnClose
                Call("_Terminate")
        EndSelect
    WEnd
EndFunc   ;==>GUINelson
Edited by LittleNels
Posted

I want to Help you, but unfortunately you are talking about creating a program which clearly is breaking the Forum Rules >> http://www.autoitscript.com/forum/forum-10/announcement-12-game-bots-and-automation/

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted (edited)

Ah, sorry, i'll remove it right away. Could you help me with the GUI part still? :)

Uhm, it won't let me edit it to remove it?

Edited by LittleNels

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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