Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WSH and KEYBOARD
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
WSH and KEYBOARD
Miscellaneous
Thread ID:
00470480
Message ID:
00470480
Views:
71
Problem with WSH (and keypressed event in VFP)

ALL VFP versions including VFP7
--------------------------
1) oScript = creat("WSCript.Shell")
(now activate another VFP application)
(Then in first VFP application run next sentence)
oScript.appactivate(Another VFP application)
oScript.sendkeys({LEFT})
-- PROBLEM
{LEFT}, {UP}, {DEL} etc. to another VFP application does't do anything (BUT TO word, Calculator etc. it's working).

-----------------------------

2) Create form, add some txtBoxes
Thisform.Keypreview = .T.
--
Next event is form's keypress event
--
LPARAMETERS nKeyCode, nShiftAltCtrl
--
everything is OK but if next is form's keypress event:
--
LPARAMETERS nKeyCode, nShiftAltCtrl
DODEFAULT(nKeyCode, nShiftAltCtrl
)
-- PROBLEM
Try to press left or right cursor in middle of some txtbox. Cursor doesn't move to next letter but to next field BUG BUG !!

------------

I'm trying to do touch screen keyboard with VFP (OK it's working´if ForgroundWindow is NOT VFP application but if it is NO WAY) = BUG , BUG

Is there a work around (OCX or what ever)?

Arto
Next
Reply
Map
View

Click here to load this message in the networking platform