Harabo Posted June 10, 2009 Posted June 10, 2009 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^^
KaFu Posted June 10, 2009 Posted June 10, 2009 You did it with HotKeySet()? Calling the same key without a function will delete the Hotkey, e.g. HotKeySet("{Esc}") OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2025-May-18) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16)
Inverted Posted June 10, 2009 Posted June 10, 2009 (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 June 10, 2009 by Inverted
Harabo Posted June 10, 2009 Author Posted June 10, 2009 KaFu said: 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;)
Harabo Posted June 10, 2009 Author Posted June 10, 2009 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.
torels Posted June 10, 2009 Posted June 10, 2009 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 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
koekje Posted June 20, 2009 Posted June 20, 2009 Harabo said: 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)
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now