Jump to content
Moopler Closing Read more... ×
Moopler
  • 0
Sign in to follow this  
Tnbb

Question hp,mp key address help!

Question

Hi, i'm want to make Auto Potion assembly. So I want to know the address of CTRL, SHIFT, HOME, INSERT CWvsContext__OnKey, CWndMan ___ ms_pInstance hp, mp How can I get help? 

Share this post


Link to post

3 answers to this question

Recommended Posts

  • 2

It is not addresses, keys you press have a predefined value so the function knows exactly what key you press.

You can see here exactly how it works and how you find the values for your desired key.

http://www.gamersoul.com/forums/archive/index.php/t-273556.html

 

TL;DR

Get keycode here: https://msdn.microsoft.com/en-us/library/aa299374(v=vs.60).aspx

Take the CTRL keycode 1D:

- Shift it left by 16 bits and convert it to a 32bit integer for a keypress:
001D0000

- OR it with 80000000 if you want it to be a "key up" command.
801D0000


- OR it with 00000030 if you want it to be a "key down" command.
001D0030

 

Edited by DAVHEED
  • Like 1

Share this post


Link to post

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
Sign in to follow this  
×