mve Posted December 18, 2006 Share Posted December 18, 2006 Greetings. I got a small question, is it possible to Rebind the keys. Like if i would press "0" on Numpad, that it would be "F1" And the "1" on Numpad to be "F2". I guess its not hard to make so i will keep my hopes up that one of you will help me up to make this script. With Kind Regards, - mve Link to comment Share on other sites More sharing options...
herewasplato Posted December 18, 2006 Share Posted December 18, 2006 (edited) HotKeySet("{NUMPAD0}", "F1") HotKeySet("{NUMPAD1}", "F2") HotKeySet("{NUMPAD2}", "F3") HotKeySet("{NUMPAD3}", "F4") While 1 Sleep(1000) WEnd Func F1() Send("{F1}") EndFunc ;==>F1 Func F2() Send("{F2}") EndFunc ;==>F2 Func F3() Send("{F3}") EndFunc ;==>F3 Func F4() Send("{F4}") EndFunc ;==>F4 Edited December 18, 2006 by herewasplato [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
mve Posted December 18, 2006 Author Share Posted December 18, 2006 I have binded Numpad 0 to "F5" and what it does, is that it writes "F5" instead of using the "F5-Key". Link to comment Share on other sites More sharing options...
BigDod Posted December 18, 2006 Share Posted December 18, 2006 Try HotKeySet("{NUMPAD0}", "F1") HotKeySet("{NUMPAD1}", "F2") HotKeySet("{NUMPAD2}", "F3") HotKeySet("{NUMPAD3}", "F4") While 1 Sleep(1000) WEnd Func F1() Send("{F1}") EndFunc ;==>F1 Func F2() Send("{F2}") EndFunc ;==>F2 Func F3() Send("{F3}") EndFunc ;==>F3 Func F4() Send("{F4}") EndFunc ;==>F4 Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
herewasplato Posted December 18, 2006 Share Posted December 18, 2006 In my haste to convert a ConsoleWrite line to a Send line - I failed to wrap the Fx in {} [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
Valuater Posted December 18, 2006 Share Posted December 18, 2006 (edited) try this.... HotKeySet("{NUMPAD0}", "F1") HotKeySet("{NUMPAD1}", "F2") HotKeySet("{NUMPAD2}", "F3") HotKeySet("{NUMPAD3}", "F4") While 1 Sleep(1000) WEnd Func F1() Send("{F1}") EndFunc ;==>F1 Func F2() Send("{F2}") EndFunc ;==>F2 Func F3() Send("{F3}") EndFunc ;==>F3 Func F4() Send("{F4}") EndFunc ;==>F4 oooooohhhhh ..... too slow 8) Edited December 18, 2006 by Valuater Link to comment Share on other sites More sharing options...
herewasplato Posted December 18, 2006 Share Posted December 18, 2006 The OP got lots of help on this one... :-)---Most Senile Poster strikes again :-) [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
BigDod Posted December 18, 2006 Share Posted December 18, 2006 oooooohhhhh ..... too slow 8)Getting old Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
herewasplato Posted December 18, 2006 Share Posted December 18, 2006 Not to hijack this thread... but I sure had trouble with the editor on this one. Going back in to edit a post after using [autoit] tags in the first post sure can mess things up. [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
Valuater Posted December 18, 2006 Share Posted December 18, 2006 Not to hijack this thread... but I sure had trouble with the editor on this one. Going back in to edit a post after using [autoit] tags in the first post sure can mess things up. You know.... on a couple of posts with the autoit tags... all of the slashes "\" were removed that was hard to fix! I still don't know why it did that 8) Link to comment Share on other sites More sharing options...
herewasplato Posted December 18, 2006 Share Posted December 18, 2006 Yep, I had to make 4 edits to my original post in this thread just to add the {} to the code. I ended up posting "nothing" and then editing that via a copy/paste from Notepad. Oh well, some things about the new editor are nice... some things not... [size="1"][font="Arial"].[u].[/u][/font][/size] 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