Jump to content

Rebind Keys


mve
 Share

Recommended Posts

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

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]

Link to comment
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


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

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

Link to comment
Share on other sites

oooooohhhhh ..... too slow

8)

Getting old :P


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

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

Link to comment
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]

Link to comment
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
 Share

  • Recently Browsing   0 members

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