Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Programming the Function keys

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Computer Talk
View previous topic :: View next topic  
Author Message
Phox
I post too much
Reputation: 110

Joined: 11 Nov 2008
Posts: 2034

PostPosted: Mon Aug 31, 2009 11:46 am    Post subject: Programming the Function keys Reply with quote

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
View user's profile Send private message
~Pineapple!
Grandmaster Cheater Supreme
Reputation: 2

Joined: 27 Dec 2008
Posts: 1810
Location: The Local Library :3

PostPosted: Mon Aug 31, 2009 11:49 am    Post subject: Reply with quote

What language?
_________________
Killor <3
My Fast Flash SWF Downloader

Hey, Hitler, want Butt Sechs?
Back to top
View user's profile Send private message
powerfear
Expert Cheater
Reputation: 0

Joined: 09 Apr 2008
Posts: 102

PostPosted: Mon Aug 31, 2009 11:49 am    Post subject: Reply with quote

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
View user's profile Send private message
Phox
I post too much
Reputation: 110

Joined: 11 Nov 2008
Posts: 2034

PostPosted: Mon Aug 31, 2009 1:55 pm    Post subject: Reply with quote

Call me a noob, but what do I do with that code?
Back to top
View user's profile Send private message
Karakawe
I post too much
Reputation: 3

Joined: 17 Apr 2007
Posts: 3899

PostPosted: Mon Aug 31, 2009 3:03 pm    Post subject: Reply with quote

Phox wrote:
Call me a noob, but what do I do with that code?

powerfear wrote:
AutoIT

Documentation
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Mon Aug 31, 2009 5:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Mon Aug 31, 2009 7:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Tue Sep 01, 2009 9:54 am    Post subject: Reply with quote

yet i bet i can write the new interrupt handler in under 30 lines Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Computer Talk All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites