autow Posted November 30, 2010 Share Posted November 30, 2010 (edited) I´ve made a little script to copy and glue the lines of a file (teclas.txt) using FileReadLine (),but the script is crazy he doesn´t copy and glue the correct text...he is attached bot.au3 Thanks all Edited November 30, 2010 by autow Link to comment Share on other sites More sharing options...
iamtheky Posted November 30, 2010 Share Posted November 30, 2010 (edited) have no idea whats going on, but in general, use a for loop instead of the do until send the actual key you set, not ("hotkeyset") @scriptdir does not include the trailing backslash should be closer: #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_outfile=bot.exe #AutoIt3Wrapper_Compression=0 #AutoIt3Wrapper_UseUpx=n #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** HotKeySet ("1","sair") Func sair() Exit EndFunc $file = @ScriptDir & '\teclas.txt' WinActivate ('(Untitled) * SciTE') For $line = 1 to 99 $lineread = FileReadLine ($file,$line) Send ('1') Send ("'") Send ($lineread) Send ("'") Send ('{Enter}') next Edited November 30, 2010 by iamtheky ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now