2DWorlds Forums
AutoIt stuff - Printable Version

+- 2DWorlds Forums (http://2dworlds.buildism.net/forum)
+-- Forum: Off Topic (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=5)
+--- Forum: Programming (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=30)
+--- Thread: AutoIt stuff (/showthread.php?tid=9079)



AutoIt stuff - RA2lover - 03-31-2012

post your AutoIt creations here.

i'll start with this program, made in about 30 minutes(yay for looking for documentation every time Confusedcared: ) to type text into boxes where you can't paste things directly(most notably, my school's online essay system, even though i don't use it anymore)

Code:
Opt("SendKeyDownDelay",1)
Opt("SendKeyDelay",1)
$File=FileOpen("String.txt")
If $File == -1 Then
MsgBox(0,"Error","String.txt not found")
Else
MsgBox(0,"TypePaster","Select the window then click OK here")
Send(FileRead($File),1)
MsgBox(0,"TypePaster","Paste Successful!")
EndIf