Question SendKeys working on Windows 7 but not XP Pro

drew4663

Well-known member
Joined
May 3, 2007
Messages
62
Programming Experience
1-3
I have an application that I want to load using the scheduler in windows. I am also wanting the "enter" key pressed when the app loads. Because you cannot use a batch file I tried using a vb app. It works great on two different windows 7 machines but not at all on the xp machines. The xp machines load the app but don't follow through with the sendkey.


Sidenote - I had to repeat the sendkey function in order to get this to work because I am not sure how to use the sendkeys.sendwait function. I tried and it never worked.

VB.NET:
        Dim ProcID As Integer

        ProcID = Shell("C:\Program Files\Adobe\Flash Media Live Encoder 3.1\FlashMediaLiveEncoder.exe")

        AppActivate(ProcID)


        My.Computer.Keyboard.SendKeys("{Enter}")
        My.Computer.Keyboard.SendKeys("{Enter}")


Any suggestions?
 
Back
Top