keypress every second?

TheShiz

Diamond Member
Oct 9, 1999
3,846
0
0
is there a way to make a program think you are pressing a key over and over again every second? maybe a program that would do this? I tried google and couldn't find anything.

Tim
 

TheShiz

Diamond Member
Oct 9, 1999
3,846
0
0
well, in morrowind your skills increase if you sit there jumping over and over again, or if you sit there walking into a wall forever. The wall one is easy, all you have to do is put a weight on the forward key, the jumping one is more tricky, i tried chainging the typematic rate and the keypress rate in win2k but that didn't work. trying to get it to work I wondered if someone made a program that can do this.

Tim
 

NikPreviousAcct

No Lifer
Aug 15, 2000
52,763
1
0
heh - you want to cheat... and you're asking for a program to do it for you? You can't have your cake and eat it too...

nik
 

TheShiz

Diamond Member
Oct 9, 1999
3,846
0
0
I don't really care, i don't even play the game, one of my roommates was telling me how stupid it is that when you keep jumping your skill increases, it just made me wonder if it can be done. It seems you can write code to do such a thing. I just think it all is pretty funny.
 

Descartes

Lifer
Oct 10, 1999
13,968
2
0
Absolutely, quite simple really. Are you a programmer?

You'd need to call CreateTimer() to get your WM_TIMER message every second (1000ms to CreateTimer()). You'll need to GetWindow() to get the handle to the appropriate window that will receive the keypress message. Then, you simply SendMessage() to the window in question with a WM_KEYDOWN message and a WPARAM containing the ascii code of the key you want.

I'll probably write up an example later this evening for fun. I'll post back when I do...
 

TheShiz

Diamond Member
Oct 9, 1999
3,846
0
0
anyone? I'm not a big RPG fan, the only one RPG I ever beat was Chrono Trigger, and that was I don't even know how long ago.

Tim
 

NikPreviousAcct

No Lifer
Aug 15, 2000
52,763
1
0
Originally posted by: TheShiz
anyone? I'm not a big RPG fan, the only one RPG I ever beat was Chrono Trigger, and that was I don't even know how long ago. Tim

Look just above your post, numbnuts.

nik
 

TheShiz

Diamond Member
Oct 9, 1999
3,846
0
0
I took a year of programming in Visual Basic, and a little C++ and java. We didn't do anything like this though, an example would be cool.

Tim