Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run application from VFP and execute keyboard buffer
Message
 
To
25/11/2005 04:06:59
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01072020
Message ID:
01072028
Views:
18
>Maybe I was not so clear. Sorry for my english.
>For example I need to run TotalCommander, move mose pointer on position (200,50) in TotalCommander window and press left button in that position, than quit from my VFP application but TotalCommander need remain open.
>Thank's
>Andrei
LOCAL oWSH AS WScript.Shell
DECLARE INTEGER Sleep IN WIN32API INTEGER
oWSH = CreateObject([WScript.Shell])
oWSH.Run([c:\totalcmd\totalcmd.EXE])  && Run Total Commander
Sleep(1000)                           && Wait until application runned
oWSH.AppActivate("Totalcmd")          && Activate Window of Total Commander
oWSH.SendKeys([^\],100)               && Send Ctrl+\ just to make sure you are in root
About Mouse don't know (yet :o)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform