murdock Posted October 14, 2007 Share Posted October 14, 2007 Im just wondering if there are any little tricks to make this checkbox stuff I have going on a little more efficient: Heres how I compare what the checkboxes mean, at the bottom of this snippet is how I compare whether to procede: expandcollapse popupFunc Pixels() If $cbstr Then $str_check = PixelSearch(107, 305, 117, 310, 0xD3D01E, 30) If Not @error And $cbstr Then $str = 1 EndIf EndIf If $cbint Then $int_check = PixelSearch(107, 327, 117, 334, 0xD5E143, 30) If Not @error Then $int = 1 EndIf EndIf If $cbdex Then $dex_check = PixelSearch( 107, 349, 117, 353, 0xB4CA25, 30) If Not @error Then $dex = 1 EndIf EndIf If $cbcon Then $con_check = PixelSearch( 107, 371, 117, 377, 0xD7DB47, 30) If Not @error Then $con = 1 EndIf EndIf If $cbwis Then $wis_check = PixelSearch( 107, 392, 117, 399, 0xB3C522, 30) If Not @error Then $wis = 1 EndIf EndIf If $cbcha Then $cha_check = PixelSearch( 107, 412, 117, 420, 0xD0BF1E, 30) If Not @error Then $cha = 1 EndIf EndIf Sleep(100) $total = $str + $int + $dex + $con + $wis + $cha Sleep(100) If $total = $cbtotal Then Box()oÝ÷ Øw«zÈhÀ^µêæw°'!rº1zÌç!yÉu«¢+Ø$% ÍÀÌØíµÍôÀÌØí ÕÑѽ¹|Äà($$%%U% ÑɱI ÀÌØí ¡½á|ÄÀ¤ôÀÌØíU%} ! -Q¡¸ÀÌØíÍÑÈôÄ($$%%U% ÑɱI ÀÌØí ¡½á|ÄĤôÀÌØíU%} ! -Q¡¸ÀÌØí¥¹ÐôÄ($$%%U% ÑɱI ÀÌØí ¡½á|ÄȤôÀÌØíU%} ! -Q¡¸ÀÌØíàôÄ($$%%U% ÑɱI ÀÌØí ¡½á|Ä̤ôÀÌØíU%} ! -Q¡¸ÀÌØí½¸ôÄ($$%%U% ÑɱI ÀÌØí ¡½á|ÄФôÀÌØíU%} ! -Q¡¸ÀÌØíÝ¥ÌôÄ($$%%U% ÑɱI ÀÌØí ¡½á|ÄÔ¤ôÀÌØíU%} ! -Q¡¸ÀÌØí¡ôÄ($$$ÀÌØíѽѰôÀÌØíÍÑȬÀÌØí¥¹Ð¬ÀÌØíà¬ÀÌØí½¸¬ÀÌØíݥ̬ÀÌØí¡ I only ask about efficiency because sometimes I notice that it skips past Box() sometimes, and I assume the pixel search is what is consuming time. Link to comment Share on other sites More sharing options...
murdock Posted October 14, 2007 Author Share Posted October 14, 2007 Please, anyone know anything? Link to comment Share on other sites More sharing options...
BrettF Posted October 14, 2007 Share Posted October 14, 2007 For it to skip, must only mean one thing, that the value isn't = to the other. For us to test the full functionality, it is needed that we have a full script to test with... =) Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
murdock Posted October 15, 2007 Author Share Posted October 15, 2007 Well I was actually just interested in how other people use the checkboxes 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