| || |
calling autoit script from qtp
Set oAutoIt = CreateObject("AutoItX3.Control")
will call the below autoit scrip if it needed NO params - I want to know how to call a script that needs 2 params like this one does -
Call ("traytipme, "This is a title", "This is a message")
Func traytipme($param1, $param2)
TrayTip($param1 & @CRLF , $param2, 5, 1)
I keep reading the question and parsing it in my brain. I cannot understand the question so far.
Are you trying to send parameters to the oAutoIt method or to QTP?
So you just need to know how to add params to a .run call? Should just be a comma separated list with each param in quotes if I recall.
oAutoIt.Run "C:\PWCOnlineQTP\traytip.exe","This is a title","This is a message"
yep nouse thats all i needed