Appactivate, then return focus question

papasmurfuo9

Registered User.
Local time
Today, 06:55
Joined
May 28, 2014
Messages
69
Hi

please could someone assist

i need to open

Code:
Shell("C:\Program Files\Network Designers\Bin\Wscman.exe" & " Reflex.prw", vbnormalfocus)

then send two keys "m" and "f"

then return focus back to access

is this possible?

thanks
 
thought i had it with the below, but doesnt seem to work

any ideas?

thanks

Code:
Dim MyAppID, ReturnValue
MyAppID = Shell("C:\Program Files\Network Designers\bin\Wscman.exe" & " REFLEX.prw", vbNormalFocus)
DoEvents
AppActivate "Reflex", True
DoEvents
Sleep 10000

SendKeys "m", True
SendKeys "f", True
 
anyone any ideas on the above
thanks
 

Users who are viewing this thread

Back
Top Bottom