what about importing AutoIt as an object ? i dont know how to do it with VB but i think this should help (its easy with autoit )
Code:
Function fillQRM()
'Dim oShell
Dim oAutoIt
'Set oShell = WScript.CreateObject("WScript.Shell")
Set oAutoIt = CreateObject("AutoItX3.Control")
'oShell.Run "P:\QRM\QRM.exe", 1, False
Shell "P:\QRM\QRM.exe", vbNormalFocus
oAutoIt.Sleep 400
oAutoIt.WinActivate "QRM Authentification", ""
'oAutoIt.ControlClick "QRM Authentification", "[CLASS:Edit; INSTANCE:1]", "left"
oAutoIt.ControlCommand "QRM Authentification", "", "[CLASS:Edit; INSTANCE:1]", "EditPaste", "xxxxxxxx"
oAutoIt.ControlCommand "QRM Authentification", "", "[CLASS:Edit; INSTANCE:2]", "EditPaste", "secret"
oAutoIt.ControlClick "QRM Authentification", "OK", "[CLASS:Button; INSTANCE:1]", "left"
oAutoIt.WinActivate "SQL message Details", ""
oAutoIt.ControlClick "SQL message Details", "OK", "[CLASS:Button; INSTANCE:1]", "left"
oAutoIt.Sleep 400
oAutoIt.WinActivate "SQL message Details", ""
oAutoIt.ControlClick "SQL message Details", "OK", "[CLASS:Button; INSTANCE:2]", "left"
oAutoIt.Sleep 400
oAutoIt.WinActivate "SQL message Details", ""
oAutoIt.ControlClick "SQL message Details", "OK", "[CLASS:Button; INSTANCE:1]", "left"
oAutoIt.Sleep 400
'oAutoIt.ControlClick "SQL message Details", "OK", "[CLASS:Button; INSTANCE:2]", "left"
'oAutoIt.ControlClick "SQL message Details", "OK", "[CLASS:Button; INSTANCE:1]", "left"
Stop
'oAutoIt.GUICtrlSetData 1001, "test"
'oAutoIt.Send "xxxxx{TAB}"
'oAutoIt.Send "secret{ENTER}"
End Function
something im working on...