Daniel Patrick Larson 28.Feb.12 01:16 PM a Web browser Notes Client6.5.5Windows XP
Hello,
I'm trying to set the print margins with an Action button using the "user32.dll"
using keyboard events method Jo Simons posted in the Forum on 30.Mar.09.
I'm having problems setting an entry like 0.25"
The period (.) and the double quote (") won't enter.
I get a result like 025
Any help would be appreciated.
code:
keybd_event &h11,0,0,0 ' Ctrl key down
keybd_event &h50,0,0,0 ' P key down
keybd_event &h11,0,2,0 ' Ctrl key up
keybd_event &h50,0,2,0 ' P key up
' tab to page setup
keybd_event &h10,0,0,0 ' Shift key down
keybd_event &h09,0,0,0 ' Tab key down
keybd_event &h10,0,2,0 ' Shift key up
keybd_event &h09,0,2,0 ' Tab key up
' tab to page setup
keybd_event &h27,0,0,0 ' Right arrow key down
keybd_event &h27,0,2,0 ' Right arrow key up
keybd_event &h09,0,0,0 ' Tab key down
keybd_event &h09,0,2,0 ' Tab key up
'above header = 0
keybd_event &h30,0,0,0 ' 0 down
keybd_event &h2e,0,0,0 ' period ( . ) down //not entering
keybd_event &h32,0,0,0 ' 2 down
keybd_event &h35,0,0,0 ' 5 down
keybd_event &h5c22,0,0,0 ' double quotes (") down // not entering