Last active
July 20, 2016 13:02
-
-
Save JRGGRoberto/184d83f26c165d4ba4f135efc5cf9939 to your computer and use it in GitHub Desktop.
Script simples para escrever tabuada
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <MsgBoxConstants.au3> | |
AutoMac() | |
Func AutoMac() | |
MsgBox($MB_SYSTEMMODAL, "Automação", "Selecione o edit onde receberá o preenchimento automático", 10) | |
For $var = 1 to 2 | |
Send("Tabuada de multiplicação de " & $var) | |
Send("{Enter}") | |
For $var2 = 1 to 10 | |
Send(" " & $var & " * ") | |
If $var2 < 10 Then | |
Send(" ") | |
EndIf | |
Send($var2 & " = ") | |
If StringLen($var * $var2) <= 1 Then | |
Send(" ") | |
EndIf | |
Send($var * $var2) | |
Send ("{ENTER}") | |
Next | |
Send ("{ENTER}") | |
Next | |
MsgBox($MB_SYSTEMMODAL, "Automação", "Fim!", 10) | |
EndFunc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment