Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WSH and KEYBOARD
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
WSH and KEYBOARD
Divers
Thread ID:
00470480
Message ID:
00470480
Vues:
69
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform