## Recommended Posts

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

##### Share on other sites

```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]

##### Share on other sites

Why not just this:

```If \$element = 10 OR 20 OR 30 Then
Send("{F3}")
Sleep(50)
\$col = 215
EndIf```

##### Share on other sites

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]

##### Share on other sites

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

## Create an account

Register a new account

×

• Wiki

• Back

• #### Beta

• Git
• FAQ
• Our Picks
×
• Create New...