void HookKey(int key, string function)
// Put this in system.vc and it will actually compile and run... void AutoExec() { // Hooks the up key to the function HookKey(SCAN_UP, "UpKeyHook"); // Stay in the program loop until escape is pressed while (!b3) { UpdateControls(); } Exit("Well, if you will take another lover..."); } // If up arrow is pressed void UpKeyHook() { // Display a little message box MessageBox("One up key has been pressed."); }
There are no talkbacks on this documentation page yet. Post the first?
Doc Nav |
Your docs |