Skip to content

Instantly share code, notes, and snippets.

@JRGGRoberto
Last active July 20, 2016 13:02
Show Gist options
  • Save JRGGRoberto/184d83f26c165d4ba4f135efc5cf9939 to your computer and use it in GitHub Desktop.
Save JRGGRoberto/184d83f26c165d4ba4f135efc5cf9939 to your computer and use it in GitHub Desktop.
Script simples para escrever tabuada
#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