Sign in to follow this  
Followers 0
jgg

Compile Script

7 posts in this topic

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



Can you add your code? It would help in decyphering your problem.

Share this post


Link to post
Share on other sites

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

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

#5 ·  Posted (edited)

The code looks so here:

$I = 1

While $I < 2

  WinWaitActive ( 'Ange lösen' )

  Send ( 'tore#{ENTER}' )

  Sleep ( 3000 )

Wend

Difficult to see what's wrong with what you write

I 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. :whistle:

I always start my script with FileChangeDir(@Scriptdir).

Edited by jpm

Share this post


Link to post
Share on other sites

$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

  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}' )

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
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
Sign in to follow this  
Followers 0