Sign in to follow this  
Followers 0
mve

Rebind Keys

11 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by herewasplato

[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

I have binded Numpad 0 to "F5" and what it does, is that it writes "F5" instead of using the "F5-Key".

Share this post


Link to post
Share on other sites

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


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

#6 ·  Posted (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 by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites

The OP got lots of help on this one... :-)

---Most Senile Poster strikes again :-)


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

oooooohhhhh ..... too slow

8)

Getting old :P


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

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)


NEWHeader1.png

Share this post


Link to post
Share on other sites

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]

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