Private Declare Function OpenIcon Lib "user32" (ByVal hWnd As Long) As Long Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long Private Declare Function SetForegroundWindow Lib "user32" (ByVal hWnd As Long) As Long Dim hWnd As Long hWnd = FindWindow(vbNullString, "C:\newfolder\RFDRIVERSIMULATION.EXE") OpenIcon (hWnd) SetForegroundWindow (hWnd) ' SendKeys etc
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)