Sign in to follow this  
Followers 0
deef99

Request Query String in Auto IT

3 posts in this topic

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!

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by Affe

[center][/center]

Share this post


Link to post
Share on other sites

DUH!!!! Ok...thank you so much!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0