Jump to content

Recommended Posts

Posted

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^^

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
Posted

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;)

Posted

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.

Posted

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

  • 2 weeks later...
Posted

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)

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...