[VB.NET] Detecting keypress

06/24/2011 05:17 Just.a.Guy#1
Hello coders. I need some help. I'm trying do develop a program that will change ammo on the game. And i want the script to start when the player press ctrl, and stop when the player press shift. In both cases, my program will be out of focus, and bc of that it won't register the keydown. I need a code that register the keydown even when the program is minimized.

Thanks.
06/24/2011 05:51 wurstbrot123#2
GetAsyncKeyState or RegisterHotkey
However, the first method will result in a
lot of false positives from Antivir.