aslani Posted December 12, 2007 Share Posted December 12, 2007 Here's what I have; If $element = 10 Then Send("{F3}") Sleep(50) $col = 215 EndIf If $element = 20 Then Send("{F3}") Sleep(50) $col = 215 EndIf If $element = 30 Then Send("{F3}") Sleep(50) $col = 215 EndIfoÝ÷ ØwöË÷±¦V§jÚ+Êð«HÁ©íÛhvn¶Ø^¦ºé¥ë0éôߧ¥zg§µìyçlßÜ!ÈHßÙ¨nX j׶+y«^jz-êìzÛhiÊ&Zµî4ãÛaz~tçÖ§vÊ(LZrÙr¢|!jÛaËax¡ë"²+mʬz÷«ÊØbë¢f§jºÚÉé^éío'¥zg§¶ËZ®Ø§ú踧{"¶¥zg§·D¨zW¦z{uÒ+wµ×br¬¶¦k¦ºl¨¹Æ§zn¶)èêZàn¶)íéÞÆÚZæµêáÛbw¶»-)ÞÂâíu¡óÚíS+"³^ëaxÓéÜ¢g¬{(¶¶¬r¸©·¥z-z{^é^éí×X§=¨Ø¸§{ZÚ¶«Û!¢é]²Ö«¶)Ïj¶.)ÞØKÞ¯*Zæµêí+!jËazƦzǪâ Ú0¶ßÛ(ºÚ¶°k(¬¶«y©òÁ¬¢f¤zØb²«¶æÊÇ+f¢·}øéíêÞßÛ-ì!¢Wºw-â*.çÖ®¶sdgVæ2ôFDÓ## b33c¶6öÂÒ vä7FfFRgV÷C²gV÷C²fײb33c·vçFFÆR WFôE6WD÷FöâgV÷Cµ6VæD¶WFVÆgV÷C²Â 6VæBgV÷C¶Ò##´VçFW'ÒgV÷C² 6ÆVW 6VæBb33c¶ÖÕô7Föâ 6VæBgV÷C·µF'ÒgV÷C² 6ÆVW öFFVçG'b33c¶uöV6õöçVÒ 6VæBgV÷C·´VçFW'ÒgV÷C² 6ÆVWS 6VæBgV÷C·µF'ÒgV÷C² 6ÆVWS b33c·'6åö'&Ò7G&æu&VtWb33c¶uöV6õ÷'6åóÂgV÷C²ç³ÃSWÒb3#¶"b3#²ãògV÷C²Â2 f÷"b33c·'6åöçGBÒFòT&÷VæBb33c·'6åö'&Ó 6VæBgV÷C²gV÷C²fײb33c·'6åö'&²b33c·'6åöçGEÒfײgV÷C·µF'×µF'ÒgV÷C² 6ÆVWS æW@ 6VæBgV÷C·´cgÒgV÷C² 6ÆVW f÷"b33c¶VÆVÖVçBÒFòT&÷VæBb33c·çVÖ&W"Ó öÖ÷fTÖ÷W6R#RÂb33c¶6ö 6VæBb33c·çVÖ&W%²b33c¶VÆVÖVçEÒ öÖ÷fTÖ÷W6RCBÂb33c¶6ö 6VæBb33c¶öÆG&We²b33c¶VÆVÖVçEÒfײgV÷C·µF'ÒgV÷C² öÖ÷fTÖ÷W6RS#Âb33c¶6ö 6VæBb33c¶æWw&We²b33c¶VÆVÖVçEÒfײgV÷C·µF'ÒgV÷C² b33c¶6öÂÒb33c¶6ö²p 6ÆVWS bb33c¶VÆVÖVçBÒFVà 6VæBgV÷C·´c7ÒgV÷C² 6ÆVWS b33c¶6öÂÒ#P VæD` bb33c¶VÆVÖVçBÒ#FVà 6VæBgV÷C·´c7ÒgV÷C² 6ÆVWS b33c¶6öÂÒ#P VæD` bb33c¶VÆVÖVçBÒ3FVà 6VæBgV÷C·´c7ÒgV÷C² 6ÆVWS b33c¶6öÂÒ#P VæD` bb33c¶VÆVÖVçBÒCFVà 6VæBgV÷C·´c7ÒgV÷C² 6ÆVWS b33c¶6öÂÒ#P VæD` bb33c¶VÆVÖVçBÒSFVà 6VæBgV÷C·´c7ÒgV÷C² 6ÆVWS b33c¶6öÂÒ#P VæD` æW@¤VæDgVæ Thanks. [font="Georgia"]Chances are, I'm wrong.[/font]HotKey trouble?Stringregexp GuideAutoIT Current Version Link to comment Share on other sites More sharing options...
Skruge Posted December 12, 2007 Share Posted December 12, 2007 How about a modulus comparison? If Mod($element, 10) = 0 And $element > 0 Then Send("{F3}") Sleep(50) $col = 215 EndIf [font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font] Link to comment Share on other sites More sharing options...
JustinReno Posted December 12, 2007 Share Posted December 12, 2007 Why not just this: If $element = 10 OR 20 OR 30 Then Send("{F3}") Sleep(50) $col = 215 EndIf Link to comment Share on other sites More sharing options...
Skruge Posted December 12, 2007 Share Posted December 12, 2007 Why not just this: If $element = 10 OR 20 OR 30 Then Send("{F3}") Sleep(50) $col = 215 EndIf But along those lines, you're better off with Switch()... Case If I understand the OP's request, the goal is to add support for higher numbers, which these lines do not accomplish. [font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font] Link to comment Share on other sites More sharing options...
aslani Posted December 12, 2007 Author Share Posted December 12, 2007 How about a modulus comparison? If Mod($element, 10) = 0 And $element > 0 Then Send("{F3}") Sleep(50) $col = 215 EndIf Oh wow. Mod() is now officially in my AutoIT vocabulary. Thanks. [font="Georgia"]Chances are, I'm wrong.[/font]HotKey trouble?Stringregexp GuideAutoIT Current Version 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