top Posted April 13, 2006 Posted April 13, 2006 i wanna compile the code its possible to include random.txt in the exe? #include <file.au3> $file = "random.txt" FileOpen($file, 0) $linecount = _FileCountLines($file) Opt("WinTitleMatchMode", 4) HotKeySet("{ENTER}", "ff") HotKeySet("{ESC}","_Terminate") Run("notepad.exe") While 1 Sleep(300) WEnd FileClose($file) Func _Terminate() Exit EndFunc Func ff() HotKeySet("{ENTER}") $bb = WinGetHandle("classname=Notepad") $num = Random(1, $linecount, 1) $line = FileReadLine($file, $num) ControlSetText("Untitled -", "", "Edit1", $line) Send("{ENTER}") HotKeySet("{ENTER}", "ff") EndFunc ;==>ff
BigDod Posted April 13, 2006 Posted April 13, 2006 Use FileInstall, you will find it in the help file. Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother
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