Jabberwock Posted July 1, 2006 Share Posted July 1, 2006 anyone know of a way for a user to set a hotkey? like ventrilo for examplewww.team-nex.net/hotkey.gif Link to comment Share on other sites More sharing options...
Xenobiologist Posted July 1, 2006 Share Posted July 1, 2006 Hi, you mean : $var = InputBox("","Hotkey : ", 1) HotKeySet($var, "test") While 1 sleep(100) WEnd Func test() MsgBox(0,"Info", "Did it") EndFunc So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
Jabberwock Posted July 2, 2006 Author Share Posted July 2, 2006 No, i guess you've never used ventrilo As in, You press a key, and it recongnizes it. Link to comment Share on other sites More sharing options...
Xenobiologist Posted July 3, 2006 Share Posted July 3, 2006 No, i guess you've never used ventriloAs in, You press a key, and it recongnizes it.HI,you are right. I've never used it. You could write the hotkeys into an file (*.ini) Does that help?So long,Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
Paulie Posted July 3, 2006 Share Posted July 3, 2006 This has NOTHING to do with autoit from what i percieve (Chat Forum??!!), but in response Check the Use Push-To-Talk Hotkey fill the hotkey field with desired hotkey Push add Accept Thats in the "Setup" tab which is clickable once you get on a server Link to comment Share on other sites More sharing options...
ending Posted July 3, 2006 Share Posted July 3, 2006 This has NOTHING to do with autoit from what i percieve (Chat Forum??!!), but in responseCheck the Use Push-To-Talk Hotkeyfill the hotkey field with desired hotkeyPush addAcceptThats in the "Setup" tab which is clickable once you get on a serverHe used Vent for an example. He wants to code a user hotkey setup like this.My only idea is to make a function that has a massive amount of HotKeySets. One for each key and it waits for a key to be pressed then returns what key it is. So when you press the "Set Hotkey" button on your app, it calls this function and waits for a key.This is the only way I can think of to create a make-shift key listener. Link to comment Share on other sites More sharing options...
Xenobiologist Posted July 3, 2006 Share Posted July 3, 2006 Hi, that is near to be a keylogger. Isn't it possible to let the user type in the desired hotkey? Then you do not have to wait for pressing any/the key. Just a thought. So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
ending Posted July 3, 2006 Share Posted July 3, 2006 (edited) Well yes it's a key logger. Thats the whole point of manually setting a hotkey like that, because you have to log what key you pressed to assign the hotkey. It is just a bad way of creating a keyboard listener. Edited July 3, 2006 by ending Link to comment Share on other sites More sharing options...
Xenobiologist Posted July 3, 2006 Share Posted July 3, 2006 Well yes it's a key logger. Thats the whole point of manually setting a hotkey like that, because you have to log what key you pressed to assign the hotkey. It is just a bad way of creating a keyboard listener.HI,I think then the soltion should be typing the hotkey or clicking it on a virtual keyboard. So long,Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
ending Posted July 3, 2006 Share Posted July 3, 2006 (edited) No offense or anything, but pressing it on a virtual keyboard is the most inefficient idea I've ever heard of for setting a hotkey. It's must faster to press a single key, or at least type the key like AutoIt labels (ex: {ESC}) than using the mouse. There is nothing wrong with making a simple key listener in order to set a hotkey. Simple as that. Edited July 3, 2006 by ending Link to comment Share on other sites More sharing options...
Jabberwock Posted July 6, 2006 Author Share Posted July 6, 2006 um, and how is the average user going to know evey available hotkey that he can use? it's just much easier to let THEM choose it.... Link to comment Share on other sites More sharing options...
Jabberwock Posted July 9, 2006 Author Share Posted July 9, 2006 For $c = 1 to 200 If _IsPressed( $c ) Then MsgBox( 0, "" , $c & " Key was pressed!" ) it seems to work well, just that it's all in numbers, anyway for it to be a keyname? mouse1 mouse2, a-z, kp_left etc. Link to comment Share on other sites More sharing options...
MHz Posted July 9, 2006 Share Posted July 9, 2006 Keylogging the whole keyboard is not supported by the AutoIt Forum as stated here. No member will consider helping with keylogging the whole keyboard. Even if you may seem to have good intentions, sorry.Other methods are available and even exist in Scripts 'n'Scraps for users to setup HotKeys via a program using just HotKeySet and an ini file. A user can add a HotKey by just adding into an input control to accompilsh this. Link to comment Share on other sites More sharing options...
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