KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Post Key command made simple
PRODUCT: 4D | VERSION: | PLATFORM: Mac & Win
Published On: October 11, 2002

6.7.x/6.8.x

The command 'Post key' allows you to simulate the pressing of a key and modifier. You can look up the ASCII code in the documentation, or you can use the command ASCII to return the ASCII code of the character. Either way will work. The following is an example of POST KEY that simulates pressing CTRL+m on Windows or Command+m on Macintosh.

POST KEY(109;Command key mask) `using the ASCII code
POST KEY(Ascii("m");Command key mask ) `using ASCII command to look up the ASCII code