Jump to content

Recommended Posts

Posted

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!

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]

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...