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 


Key IDs table

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Frouk
Master Cheater
Reputation: 5

Joined: 22 Jun 2021
Posts: 489
Location: mov dword ptr [Ukraine]

PostPosted: Sat Aug 07, 2021 12:55 am    Post subject: Key IDs table Reply with quote

Here's lua table, maybe someone will needed
Code:
local keyID = {
LeftButton = VK_LBUTTON,
RightButton = VK_RBUTTON,
XButton1 = VK_XBUTTON1,
XButton2 = VK_XBUTTON2,
Cancel = VK_CANCEL,
MButton = VK_MBUTTON,
Back = VK_BACK,
Tab = VK_TAB,
Clear = VK_CLEAR,
Return = VK_RETURN,
Shift = VK_SHIFT,
Control = VK_CONTROL,
Menu = VK_MENU,
Pause = VK_PAUSE,
Capital = VK_CAPITAL,
Escape = VK_ESCAPE,
Space = VK_SPACE,
Prior = VK_PRIOR,
Next = VK_NEXT,
End = VK_END,
Home = VK_HOME,
Left = VK_LEFT,
Up = VK_UP,
Right = VK_RIGHT,
Down = VK_DOWN,
Select = VK_SELECT,
Print = VK_PRINT,
Execute = VK_EXECUTE,
Snapshot = VK_SNAPSHOT,
Insert = VK_INSERT,
Delete = VK_DELETE,
Help = VK_HELP,
Number0 = VK_0,
Number1 = VK_1,
Number2 = VK_2,
Number3 = VK_3,
Number4 = VK_4,
Number5 = VK_5,
Number6 = VK_6,
Number7 = VK_7,
Number8 = VK_8,
Number9 = VK_9,
A = VK_A,
B = VK_B,
C = VK_C,
D = VK_D,
E = VK_E,
F = VK_F,
G = VK_G,
H = VK_H,
I = VK_I,
J = VK_J,
K = VK_K,
L = VK_L,
M = VK_M,
N = VK_N,
O = VK_O,
P = VK_P,
Q = VK_Q,
R = VK_R,
S = VK_S,
T = VK_T,
U = VK_U,
V = VK_V,
W = VK_W,
X = VK_X,
Y = VK_Y,
Z = VK_Z,
LWin = VK_LWIN,
RWin = VK_RWIN,
Apps = VK_APPS,
Numpad0 = VK_NUMPAD0,
Numpad1 = VK_NUMPAD1,
Numpad2 = VK_NUMPAD2,
Numpad3 = VK_NUMPAD3,
Numpad4 = VK_NUMPAD4,
Numpad5 = VK_NUMPAD5,
Numpad6 = VK_NUMPAD6,
Numpad7 = VK_NUMPAD7,
Numpad8 = VK_NUMPAD8,
Numpad9 = VK_NUMPAD9,
Multiply = VK_MULTIPLY,
Add = VK_ADD,
Separator = VK_SEPARATOR,
Subtrack = VK_SUBTRACK,
Decimal = VK_DECIMAL,
Divide = VK_DIVIDE,
F1 = VK_F1,
F2 = VK_F2,
F3 = VK_F3,
F4 = VK_F4,
F5 = VK_F5,
F6 = VK_F6,
F7 = VK_F7,
F8 = VK_F8,
F9 = VK_F9,
F10 = VK_F10,
F11 = VK_F11,
F12 = VK_F12,
F13 = VK_F13,
F14 = VK_F14,
F15 = VK_F15,
F16 = VK_F16,
F17 = VK_F17,
F18 = VK_F18,
F19 = VK_F19,
F20 = VK_F20,
F21 = VK_F21,
F22 = VK_F22,
F23 = VK_F23,
F24 = VK_F24,
Numlock = VK_NUMLOCK,
Scroll = VK_SCROLL,
LShift = VK_LSHIFT,
LControl = VK_LCONTROL,
LMenu = VK_LMENU,
RShift = VK_RSHIFT,
RControl = VK_RCONTROL,
RMenu = VK_RMENU
}
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1055
Location: 0x90

PostPosted: Sat Aug 07, 2021 3:19 am    Post subject: Reply with quote

I can see its use but there are pre-defined constants available. If you press Ctrl+Spacebar in the Lua Engine window and scroll to the bottom you will see them.
Back to top
View user's profile Send private message
Frouk
Master Cheater
Reputation: 5

Joined: 22 Jun 2021
Posts: 489
Location: mov dword ptr [Ukraine]

PostPosted: Sat Aug 07, 2021 3:43 am    Post subject: Reply with quote

I maded function to get keys that are holded https://forum.cheatengine.org/viewtopic.php?t=618080
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting 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 can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites