Phantom Documentation

[Help Home] [Phantom Home]
KeyDown

window.KeyDown(string sChar);

Applicable Classes: MainWin

Parameters:
string sChar- The key to press (see TypeKeys for the format of this parameter)
Return Value: None

Description:
This function is different from the TypeKeys function in that it only sends the message for a key press and not a key release.  This is useful for applications that only process a key down message.  The TypeKeys message sends a character message, which is different than a key down message.

The sChar parameter can only be one character.  Any additional characters are ignored.

See Also: MainWin Functions, KeyUp, TypeKeys, TypeKeys (generic)



Copyright 2000-2011 Phantom Automated Solutions