Log In    |    Knowledge Base    |    4D Home
Tech Tip: How do I use multiple key masks in the post key command?
PRODUCT: 4D | VERSION: 2004.2 | PLATFORM: Mac & Win
Published On: August 6, 2005
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

The post key command is very useful because it simulates a key combination as if it were pressed on your keyboard. It even allows the use of more than one key mask. The following syntax shows how to simulate the Shift+Command+"P" on a Mac machine.

POST KEY (Ascii("p");shift key mask+command key mask)

As shown above, simply adding shift key mask and command key mask constants will allow the simulation of a multiple key mask.