Sign in to follow this  
Followers 0
ZanaxNL

Problem: Checkbox failure : (

7 posts in this topic

#1 ·  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

Share this post


Link to post
Share on other sites



#include <GUIConstantsEx.au3>

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

Share this post


Link to post
Share on other sites

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 ;)

Share this post


Link to post
Share on other sites

i want:

When checkbox is checked it will also spam "3". So help me please (A)

Share this post


Link to post
Share on other sites

#5 ·  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.  

Share this post


Link to post
Share on other sites

Ok thanks. im pretty new on autoit : D

: D

Share this post


Link to post
Share on other sites

Got it : D. really strange but did it in a other line and done : D

thanks anyways CLOSED

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  
Followers 0