jgg 0 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... Share this post Link to post Share on other sites
w_sp8er 0 Posted March 23, 2004 Can you add your code? It would help in decyphering your problem. Share this post Link to post Share on other sites
jgg 0 Posted March 23, 2004 The code looks so here: $I = 1 While $I < 2 WinWaitActive ( 'Ange lösen' ) Send ( 'tore#{ENTER}' ) Sleep ( 3000 ) Wend Share this post Link to post Share on other sites
jgg 0 Posted March 24, 2004 Can you see what is wrong w sp8er? I have a comment line in the beginning too.. Share this post Link to post Share on other sites
jpm 101 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 Share this post Link to post Share on other sites
jgg 0 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... Share this post Link to post Share on other sites
Jos 2,213 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. Share this post Link to post Share on other sites