deef99 Posted May 25, 2010 Posted May 25, 2010 We have the following: #include <IE.au3> dim $mvdn dim $mani $mvdn = $CMDLINE[1] $mani = $CMDLINE[2] _IECreate ("http://drs.front.com/orderentry/ipagent_answer.aspx?vdn="&$mvdn&"&ani="&$mani,0,1,0,1) Sleep(6000) Run("C:\avtimer\talktimer.exe") --------------------- The $mvdn has spaces in it, and even with double quotes is not getting picked up correctly. Is there another way to do a request query string? The command line for the above reads: test.exe %v %m Normally, this line is executed by itself: http://drs.front.com/orderentry/ipagent_answer.aspx?vdn=%v&ani=%m We have having to start another app, so we are trying to combine the two into an Auto It executable. Any ideas? We are stumped at this point!
Affe Posted May 25, 2010 Posted May 25, 2010 (edited) We have the following: #include <IE.au3> dim $mvdn dim $mani $mvdn = $CMDLINE[1] $mani = $CMDLINE[2] _IECreate ("http://drs.front.com/orderentry/ipagent_answer.aspx?vdn="&$mvdn&"&ani="&$mani,0,1,0,1) Sleep(6000) Run("C:\avtimer\talktimer.exe") --------------------- The $mvdn has spaces in it, and even with double quotes is not getting picked up correctly. Is there another way to do a request query string? The command line for the above reads: test.exe %v %m Normally, this line is executed by itself: http://drs.front.com/orderentry/ipagent_answer.aspx?vdn=%v&ani=%m We have having to start another app, so we are trying to combine the two into an Auto It executable. Any ideas? We are stumped at this point! Have you tried looking at the $CMDLINE array? I'm thinking that your variables are being split up in the array. To test this theory, change to the following: #include <Array.au3> ;Added for testing #include <IE.au3> _ArrayDisplay($CMDLINE) ;Added for testing Exit ;Exit after displaying the array for testing dim $mvdn dim $mani $mvdn = $CMDLINE[1] $mani = $CMDLINE[2] _IECreate ("http://drs.front.com/orderentry/ipagent_answer.aspx?vdn="&$mvdn&"&ani="&$mani,0,1,0,1) Sleep(6000) Run("C:\avtimer\talktimer.exe") If they are indeed being split up, then you simply need to concatenate them: dim $mvdn dim $mani $mvdn = Str($CMDLINE[1] & " " & $CMDLINE[2]) $mani = $CMDLINE[3] Edited May 25, 2010 by Affe [center][/center]
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