Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Compile AutoHotkey using Visual C++ 2005 Express Edition


  • Please log in to reply
90 replies to this topic
nrnoble
  • Members
  • 6 posts
  • Last active: Jul 17 2015 10:56 AM
  • Joined: 30 May 2009
The reason I am interested in the source is to understand how AHK creates and sends KeyUp & KeyDown events.

I have been writing some Test automation using C# using this API

[DllImport("user32.dll")]
    static extern void keybd_event(byte bVk, byte bScan, uint dwFlags, int dwExtraInfo);

Which works really well with standard Windows applications, but some game engines I've tried don't reconize the events create by the API keybd_event. However, AHK is able to generate KeyUp, KeyDown events that get reconized by all applications and game engines I have tried, thus I want to better understand how AHK is creating Key events.