Jump to content

Restart script?


Recommended Posts

another problem:

How can i get the script to run in front always?

And how can i get this to exit?

while 1

sleep(1)

mousemove(@DesktopWidth-0, 400)

WEnd

I want to exit it in another function.

I have 2 functions.

1 that starts on one combination of keys

and 1 that starts on another combination.

Link to comment
Share on other sites

what ??

when should the loop exit ?

in which conditions ??

anyway... another suggestion for the restarting: go take a look in the FAQ for a self-deleting script, change a bit of the batch (basically start instead of del XD) and use that to restart the script :D

cheers

Some Projects:[list][*]ZIP UDF using no external files[*]iPod Music Transfer [*]iTunes UDF - fully integrate iTunes with au3[*]iTunes info (taskbar player hover)[*]Instant Run - run scripts without saving them before :)[*]Get Tube - YouTube Downloader[*]Lyric Finder 2 - Find Lyrics to any of your song[*]DeskBox - A Desktop Extension Tool[/list]indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org

Link to comment
Share on other sites

  • 2 weeks later...

another problem:

How can i get the script to run in front always?

And how can i get this to exit?

while 1

sleep(1)

mousemove(@DesktopWidth-0, 400)

WEnd

I want to exit it in another function.

I have 2 functions.

1 that starts on one combination of keys

and 1 that starts on another combination.

I've got two questions:

1, why are you sleeping for one milisecond?

2, why are you substracting 0 pixels from the X coordinate?

If you mean set the GUI to always be in front of other windows, try this:

$gui = GUICreate('titlehere', 100, 200, Default, Default, Default, $WS_EX_TOPMOST)
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...