Jump to content
Sign in to follow this  
riceking

Help Please: What's wrong with my script

Recommended Posts

riceking

While 1
    $msg = GUIGetMsg()
    $S = Number(GUICtrlRead($Delay))

    Select
        Case $msg = $GUI_EVENT_CLOSE
            Exit
        Case $msg = $About
            MsgBox(0, "PyPQ Bonus Botter v.87", "You should use the following hacks with this program. 1) No KB. 2) Tubi. This bot was created by 1) TwikiE 2)RiceKing 3)Cryzies they all are me. Do not leech. You must start outside PyPQ, doesn't matter where as long as you're outside.")
        Case $msg = $Start
            If GUICtrlRead($Ruby) = 1 Then
                For $X = 1 To Number(GUICtrlRead($RepNumber))
                    BotR()
                Next
            EndIf
            If GUICtrlRead($Saphire) = 1 Then
                For $X = 1 To Number(GUICtrlRead($Repetition))
                    BotS()
                Next
            EndIf
            If GUICtrlRead($Emerald) = 1 Then
                For $X = 1 To Number(GUICtrlRead($Repetition))
                    BotE()
                Next
            EndIf
            If GUICtrlRead($Topaz) = 1 Then
                For $X = 1 To Number(GUICtrlRead($Repetition))
                    BotT()
                Next
            EndIf
    EndSelect

WEnd
Func BotR()
SendKeepActive("Game1")
Sleep(1000)






EndFunc   ;==>BotR
Func BotS()
SendKeepActive("Game1")
Sleep(1000)








EndFunc   ;==>BotS
Func BotE()
SendKeepActive("Game1")
Sleep(1000)









EndFunc   ;==>BotE
Func BotT()
SendKeepActive("Game1")
Sleep(1000)









EndFunc   ;==>BotT

It's not completely finished, but when I press start it doesn't find the active window or give me errors.

Figured it out again, switched SendActiveWindow to WinWaitActive

Edited by riceking

\

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.