Skip to content

Instantly share code, notes, and snippets.

@JRGGRoberto
Created January 6, 2016 17:57
Show Gist options
  • Save JRGGRoberto/d80c75cda3590f67fc07 to your computer and use it in GitHub Desktop.
Save JRGGRoberto/d80c75cda3590f67fc07 to your computer and use it in GitHub Desktop.
Automação Windows - autoitscript
#include <MsgBoxConstants.au3>
AutoMac()
Func AutoMac()
MsgBox($MB_SYSTEMMODAL, "Automação", "Selecione o edit onde receberá o preenchimento automático", 10)
For $var = 40 to 100
Sleep(21)
If $var < 10 Then
Send("supra00" & $var)
ElseIf $var < 100 Then
Send("supra0" & $var )
Else
Send("supra" & $var )
EndIf
Sleep(51)
Send ("{CTRLDOWN}")
Send ("{A}")
Send ("{CTRLUP}")
;Send ("{ENTER}")
Sleep(601)
Next
EndFunc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment