kasab Posted December 5, 2021 Share Posted December 5, 2021 hello i am new with autoit and i found it great but i have a problem with it after compiling the code to exe file the exe program works fine and keep working till shutting down the pc , the problem appears in the next day when i trying to run the exe again a msg appeared that the program stopped working once i running it so i need to recompile a new copy then it works fine till the shutdown i tried another pc with another version of windows ( but both are win 7 ) and the problem also happened what is the solution for this issue thx in advanced here is the code #include <AutoItConstants.au3> #include <file.au3> while 1 Sleep(1000) $file = FileOpen("full.txt", 0) While 1 $line = FileReadLine($file) If @error = -1 Then ExitLoop If $Line = 1 Then $Line = 0 $file = FileOpen ( "full.txt", 2 ) FileWrite ( $file, $Line ) ; Double click at the x, y position of 0, 500. MouseClick($MOUSE_CLICK_LEFT, 0, 500, 2) EndIf WEnd FileClose($file) WEnd Link to comment Share on other sites More sharing options...
Developers Jos Posted December 5, 2021 Developers Share Posted December 5, 2021 What is the exact Error you get when you start it again? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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