jgg Posted March 23, 2004 Posted March 23, 2004 I have a script which works fine when i execute it from explorer and select run - then the test.au3 runs ok. When i choose compile script and an exe-file is created - ex test.exe it goes fine. When i run the test.exe the script doesn't start, the only things that happens is that a window come up on the screen similiar to the window watcher-window. Anyone knowing what's wrong? Thanks...
w_sp8er Posted March 23, 2004 Posted March 23, 2004 Can you add your code? It would help in decyphering your problem.
jgg Posted March 23, 2004 Author Posted March 23, 2004 The code looks so here: $I = 1 While $I < 2 WinWaitActive ( 'Ange lösen' ) Send ( 'tore#{ENTER}' ) Sleep ( 3000 ) Wend
jgg Posted March 24, 2004 Author Posted March 24, 2004 Can you see what is wrong w sp8er? I have a comment line in the beginning too..
jpm Posted March 24, 2004 Posted March 24, 2004 (edited) The code looks so here:$I = 1 While $I < 2 WinWaitActive ( 'Ange lösen' ) Send ( 'tore#{ENTER}' ) Sleep ( 3000 )WendDifficult to see what's wrong with what you writeI don't kow why $i is never increment but perhaps you want to change that later.For me the pb can come from the fact that starting with explorer on .au3 does have the same working dir as executing the .exe. I always start my script with FileChangeDir(@Scriptdir). Edited March 24, 2004 by jpm
jgg Posted March 24, 2004 Author Posted March 24, 2004 $i is never increment because it is an infinite loop - if i log off and on the application which has password-promt it will then write the password again. I shall test FileChangeDir(@Scriptdir). Thanks...
Developers Jos Posted March 24, 2004 Developers Posted March 24, 2004 Send ( 'tore#{ENTER}' )what is it you want to send here ? "tore" & WINDOWSKEY & {ENTER}:Send ( 'tore#{ENTER}' ) or "tore#" & {ENTER} : Send ( 'tore#',1) Send('{ENTER}' ) 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.
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