Jump to content

Recommended Posts

Posted (edited)

**********CLOSED*********

NEED NO HELP ANYMORE

THANKS ANYWAY

Hi all.

I'm bussy with a checkbox, but i can't make it to a funcion.

If GUICtrlRead ($Checkbox1 = $GUI_CHECKED Then Send ("{3}") )

Can someone help me with this scirpt title?

i get this error:

(==> Error parsing function call.:)

If GUICtrlRead ($Checkbox1 = $GUI_CHECKED Then Send ("{3}") )

If GUICtrlRead ($Checkbox1 = $GUI_CHECKED ^ ERROR

Can someone fix the scirpt so it works. so when checkbox is checked it will send "3"

and when it is not checked it will do nothing.

Thanks a lot : D

Zanax

;)

Edited by ZanaxNL
Posted

I already has that.

i got this maybe, someone knows to fix it : (?

Func TogglePause()

$UnPaused = NOT $UnPaused

While $UnPaused

ToolTip("Bot Active",0,0)

Send ("{TAB}")

If GUICtrlRead($Checkbox1) = $GUI_CHECKED Then Send ("{3}")

Sleep (500)

Send ("{1}")

If GUICtrlRead ($Checkbox1 = $GUI_CHECKED Then Send ("{3}") )

Sleep (1500)

Sleep(100 + Random(1, 300))

WEnd

EndFunc

And thos parameters

Global $UnPaused

HotKeySet("{Home}", "TogglePause")

HotKeySet("{End}", "Terminate")

#include <ButtonConstants.au3>

#include <GUIConstantsEx.au3>

#include <StaticConstants.au3>

#include <WindowsConstants.au3>

Can someone really help with this small problem what did i do wrong : (

If GUICtrlRead($Checkbox1) = $GUI_CHECKED Then Send ("{3}")

Fix this : D thanks evrybody who helps

ZanaxNL ;)

Posted (edited)

Func TogglePause()
    $UnPaused = NOT $UnPaused
    While $UnPaused
        ToolTip("Bot Active",0,0)
        Send ("{TAB}")
        If GUICtrlRead($Checkbox1) = $GUI_CHECKED Then Send ("{3}")
        Sleep (500)
        Send ("{1}")
        If GUICtrlRead ($Checkbox1) = $GUI_CHECKED Then Send ("{3}");<<< Fixed this <<<<<<
        Sleep (1500)
        Sleep(100 + Random(1, 300))
    WEnd
EndFunc

Its alot easier for us to read your code if you put in AutoIt tags. [ AutoIt][ /AutoIt] just delete the beginning spaces

Edited by Realm

My Contributions: Unix Timestamp: Calculate Unix time, or seconds since Epoch, accounting for your local timezone and daylight savings time. RegEdit Jumper: A Small & Simple interface based on Yashied's Reg Jumper Function, for searching Hives in your registry. 

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...