ZanaxNL Posted August 24, 2010 Share Posted August 24, 2010 (edited) **********CLOSED********* NEED NO HELP ANYMORETHANKS ANYWAYHi 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 ^ ERRORCan 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 : DZanax Edited August 24, 2010 by ZanaxNL Link to comment Share on other sites More sharing options...
ZwinnyRolnik Posted August 24, 2010 Share Posted August 24, 2010 #include <GUIConstantsEx.au3> If GUICtrlRead($Checkbox1) = $GUI_CHECKED Then Send ("{3}") Link to comment Share on other sites More sharing options...
ZanaxNL Posted August 24, 2010 Author Share Posted August 24, 2010 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)) WEndEndFuncAnd thos parametersGlobal $UnPausedHotKeySet("{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 helpsZanaxNL Link to comment Share on other sites More sharing options...
ZanaxNL Posted August 24, 2010 Author Share Posted August 24, 2010 i want: When checkbox is checked it will also spam "3". So help me please (A) Link to comment Share on other sites More sharing options...
Realm Posted August 24, 2010 Share Posted August 24, 2010 (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 August 24, 2010 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. Link to comment Share on other sites More sharing options...
ZanaxNL Posted August 24, 2010 Author Share Posted August 24, 2010 Ok thanks. im pretty new on autoit : D : D Link to comment Share on other sites More sharing options...
ZanaxNL Posted August 24, 2010 Author Share Posted August 24, 2010 Got it : D. really strange but did it in a other line and done : D thanks anyways CLOSED Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now