Sign in to follow this  
Followers 0
Harabo

Restart script?

7 posts in this topic

Helo.

I have maked a script that has bind many keys on my keyboard, and i want to unbind them. How do i do that?

a solution can be that i restart my script. But how?

Tnx for all help^^

Share this post


Link to post
Share on other sites



Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

I'm not sure I understand.

You mean , you've used HotKeySet ? You can erase those hotkeys, no need to restart the script.

EDIT: Kafu beat me to the punch.

Edited by Inverted

Share this post


Link to post
Share on other sites

You did it with HotKeySet()? Calling the same key without a function will delete the Hotkey, e.g. HotKeySet("{Esc}")

Ok, tnx. I will try that;)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

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)

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