Jump to content
Sign in to follow this  
jgg

Compile Script

Recommended Posts

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

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

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

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

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...