Mahesh123 Posted May 8, 2017 Share Posted May 8, 2017 (edited) HI Guys, Desperately looking for a solution here. I have the following script in UFT which is working fine. However I want to substitute this hard coded parameter by variables rpdate & LegalEntity . I have tried with lot of options here. but not able to call the autoit exe file. Dim rpdateDim LegalEntity LegalEntity = 36004367 rpdate = "28-02-2017"'Legal_entity_Id = "36000586" path = "H:\Sprint\Automation\Corepautomate.exe"Set oAutoIt = CreateObject("AutoItX3.Control") oAutoIt.Run("H:\Sprint\Automation\Corepautomate.exe 28-02-2017 36004367") The autoit script is which is also working fine. If $CmdLine[0] = 2 Then ; No need to use "Call" - just name the function and pass the parameters corep_reports($CmdLine[1], $CmdLine[2]) EndIf Func corep_reports($rpdate, $legalentity) ------------------------------ ------------------------- EndFunc Edited May 10, 2017 by Mahesh123 Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted May 8, 2017 Moderators Share Posted May 8, 2017 Moved to the correct forum "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Mahesh123 Posted May 8, 2017 Author Share Posted May 8, 2017 (edited) <pointless repost of original content deleted> @Mahesh123 please wait 24 hours before bumping your thread, and please don't simply quote everything you already said - it needlessly pads the thread. Edited May 9, 2017 by JLogan3o13 Link to comment Share on other sites More sharing options...
Mahesh123 Posted May 9, 2017 Author Share Posted May 9, 2017 @JLogan3o13 : Sorry. I was trying to edit some stuff in original post.. But could not find a way. That's why re-posted Link to comment Share on other sites More sharing options...
Mahesh123 Posted May 10, 2017 Author Share Posted May 10, 2017 (edited) Hi All, Anybody got a chance to look into this query Mahesh Edited May 10, 2017 by Mahesh123 Link to comment Share on other sites More sharing options...
Mahesh123 Posted May 13, 2017 Author Share Posted May 13, 2017 Any update?? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now