Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Send Key Strokes to an APP not VFP
Message
From
31/01/2001 04:19:54
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Send Key Strokes to an APP not VFP
Miscellaneous
Thread ID:
00470543
Message ID:
00470543
Views:
95
I was wondering how I could send some keys to another windows application from a VFP application

In this example Test App is the title of the application and it is not a VFP app.

So far I tried...
tcWindow="Test App"
DECLARE INTEGER FindWindow IN Win32API STRING, STRING
DECLARE INTEGER SetForegroundWindow IN "User32.dll" INTEGER
HWND = FindWindow(0,tcWindow)
=SetForegroundWindow(HWND)
INKEY(3)

KEYBOARD("1")
This merely activates the program but the keys go into the vfp app.

Maybe there is some API call's I can use?

Thanks
Next
Reply
Map
View

Click here to load this message in the networking platform