Keyboard Events

When using code that works in Version 6.0.5 to clear selected records in a view after processing in an action button, it no longer clears the selection tick(s) but starts searching for a ‘d’.

The code is:

Declare Sub keybd_event Lib “user32.dll” (Byval bVk As Integer, Byval bScan As Integer, Byval dwFlags As Integer,Byval dwExtraInfo As Integer)

keybd_event 18,0,0,0 ’ Alt key down

keybd_event 69,0,0,0 ’ E key down

keybd_event 69,0,2,0 ’ E key up

keybd_event 18,0,2,0 ’ Alt key up

keybd_event 68,0,0,0 ’ D key down

keybd_event 68,0,2,0 ’ D key up

Anyone any idea how to get around this as a lot of our systems use this and we are about to migrate to version 8.5.1.

Thanks,

Chris.

Subject: Change the action button to call an agent.

If that alone doesn’t fix it, make the agent a formula agent that calls the LotusScript agent, then uses @Command to deselect all.

Using OS-specific calls is an absolute last resort.

Subject: Thanks Andre

that gave me an idea to use the NotesUIView DeselectAll functionality. Works fine now. Again thank you.