View previous topic :: View next topic |
Author |
Message |
Phox I post too much
Reputation: 110
Joined: 11 Nov 2008 Posts: 2034
|
Posted: Mon Aug 31, 2009 11:46 am Post subject: Programming the Function keys |
|
|
How do you program the function keys? What I'd specifically like to do would be to make it so when I press F1, my computer would "hold" the alt key and "type" the number 255 on the numpad. If Someone gives me a simple tut on exactly what to do and I am able to get it to work, I will +rep them.
(Oh yes btw, I have googled extensively with no prevail)
|
|
Back to top |
|
 |
~Pineapple! Grandmaster Cheater Supreme
Reputation: 2
Joined: 27 Dec 2008 Posts: 1810 Location: The Local Library :3
|
Posted: Mon Aug 31, 2009 11:49 am Post subject: |
|
|
What language?
_________________
|
|
Back to top |
|
 |
powerfear Expert Cheater
Reputation: 0
Joined: 09 Apr 2008 Posts: 102
|
Posted: Mon Aug 31, 2009 11:49 am Post subject: |
|
|
as far as i know it depend of the keyboard, some gamer keyboard have that option where you can choose what it do when you press a specific key, but majority of keyboard don't, if you can you probably have a software that came with keyboard to do it... i don't think any software can do this with any keyboard since keyboard need an hardware that is able to memorize specific function...
edit: there few way with software like by setting hotkey or by recording key input and then doign a specific function but it won't work as good as it would with a keyboard made for that. A simple AutoIT script would do the job, i made one for you
HotKeySet("{F1}","test")
While 1=1
sleep(1)
WEnd
Func test()
Send("{ALTDOWN}"&"{NUMPAD2}"&"{NUMPAD5}"&"{NUMPAD5}"&"{ALTUP}")
EndFunc
edit: fixed a lil error on code and here the compiled .exe
http://www.2shared.com/file/7501544/63f43489/test.html
Last edited by powerfear on Mon Aug 31, 2009 5:02 pm; edited 1 time in total |
|
Back to top |
|
 |
Phox I post too much
Reputation: 110
Joined: 11 Nov 2008 Posts: 2034
|
Posted: Mon Aug 31, 2009 1:55 pm Post subject: |
|
|
Call me a noob, but what do I do with that code?
|
|
Back to top |
|
 |
Karakawe I post too much
Reputation: 3
Joined: 17 Apr 2007 Posts: 3899
|
Posted: Mon Aug 31, 2009 3:03 pm Post subject: |
|
|
Phox wrote: | Call me a noob, but what do I do with that code? |
Documentation
|
|
Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Mon Aug 31, 2009 5:02 pm Post subject: |
|
|
either set a global hotkey which can be done in .net or hook the keyboard interrupt and handle that but that needs to be done in kernelmode << requires ring0 driver development
or have a usermode application always running in the background which polls the key with GetAsyncKeyState and handles that event accordingly
|
|
Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Mon Aug 31, 2009 7:15 pm Post subject: |
|
|
Slugsnack wrote: | or hook the keyboard interrupt and handle that but that needs to be done in kernelmode << requires ring0 driver development |
this is lunacy, truly the epitome of "making a mountain out of a molehill".
|
|
Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Tue Sep 01, 2009 9:54 am Post subject: |
|
|
yet i bet i can write the new interrupt handler in under 30 lines
|
|
Back to top |
|
 |
|