Jump to content
Sign in to follow this  
riceking

Close Please

Recommended Posts

riceking

Hello AutoIt members :blink: I'm fairly new to GUI and I'd like some help on my bot. Here is what the GUI looks like using Koda

Posted Image

The Code Koda created with it

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=c:\users\administrator\desktop\koda\forms\form1.kxf
$Form1_1 = GUICreate("TwikiE's PyPQ Bonus Botter v.87", 268, 191, 325, 245)
$Label1 = GUICtrlCreateLabel("Mode", 184, 8, 31, 17)
$Radio1 = GUICtrlCreateRadio("Easy", 144, 24, 113, 17)
$Radio2 = GUICtrlCreateRadio("Normal", 144, 48, 113, 17)
$Radio3 = GUICtrlCreateRadio("Hard", 144, 72, 113, 17)
$Radio4 = GUICtrlCreateRadio("Hell", 144, 96, 113, 17)
$Label2 = GUICtrlCreateLabel("Lag", 56, 8, 22, 17)
$Button1 = GUICtrlCreateButton("Start!", 88, 160, 75, 25)
$Delay = GUICtrlCreateInput("Delay", 8, 24, 121, 21)
$Label3 = GUICtrlCreateLabel("Times", 48, 72, 32, 17)
$Number = GUICtrlCreateInput("Number", 8, 88, 121, 21)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd

I'll give you guys a brief description, each radio under Mode is a different script, and under Lag is the delay. I want the user to input a value for Lag and apply that as that number to all sleep times throughtout the script, would I store it in a variable, how would I do so. Also I'd like the user to choose a mode and press start when they are done, start would start the script of course. I've already made my script for all the Modes, how would I put it the GUI Script, also how do I put the Lag value to all sleep values in the script. And last but not least how do I make it all work at once upon pressing start ;)

And Times is how many loops it should go through

If it is possible, can I change the icon in that picture, the icon on the top left of the GUI?

Script for Easy

sleep(1000)
Send ("{right down}")
sleep(6000)
Send ("{right up}")
sleep(100)
Send ("{SPACE}")
sleep(750)
Send ("{down}")
sleep(300)
Send ("{down}")
sleep(300)
Send ("{down}")
sleep(300)
Send ("{space}")
sleep(750)
Send ("{space}")
sleep(5000)
Send ("{right down}")
sleep(600)
Send ("{right up}")
sleep(400)
Send ("{down down}")
sleep(300)
send("{ALT}"
sleep(300)
Send ("{down up}")
sleep(100)
Send ("{left down}")
sleep(100)
Send ("{left up}")
sleep(100)
Send("^")
sleep(100)
Send("^")
sleep(100)
Send("^")
sleep(100)
Send("^")
sleep(100)
Send("^")

The Normal, Hard, and Hell are very similar.

Thanks

Rice

I think I figured it out.

Edited by riceking

\

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×