Jump to content

problem with compiled program


kasab
 Share

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...