flat assembler
Message board for the users of flat assembler.

Index > Windows > Stupid question: Mouse-Click and Keyboard-Event

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20623
Location: In your JS exploiting you and your system
revolution 06 Jun 2008, 03:41
SPTH:

Depending on the program, keybd_event won't work in all cases.

It is common for game programs to use functions like GetAsyncKeyState and GetKeyboardState. These two functions completely bypass anything you might try to do with SendMessage and keybd_event.

Also you are calling keybd_event without properly setting all the parameters. Set the scan code to the correct value and follow it up with another call to send the release key.
Post 06 Jun 2008, 03:41
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2

< Last Thread | Next Thread >
Forum Rules:
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 can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.