Sign in to follow this  
Followers 0
monte

run($myVariable &) Problem

10 posts in this topic

Hello. Something isn't quite right with my syntax below.

run($myVariable &)

fails with: error in regular expression

$myVariable is a string containing the variable of the run(). ie @ComSpec &....the rest of the url.

So, run($myVariable &) should read run(@ComSpec &....the rest of the url)

Please help, thank you.

Share this post


Link to post
Share on other sites



show us what is in $myVariable

if you want help,...

Otherwise, ??you could pay someone??

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

1

if you notice you post above, the "link" is underlined... that means normally one can click that link and open that HTML page, however your posted link does not work

2

the easiest way is to use

$myVariable = " MY-CORRECT-LINK.COM"

Run( @ComSpec & $myVariable, "", @SW_HIDE)

3

to use your $myVariable only... then you need to do this

Dim $myVariable[5]

$myVariable[1] = @ComSpec 
$myVariable[2] = " /c Start http://domino.keybank.com/ens/emcid%20refe...D/aServer"
$myVariable[3] = ""
$myVariable[4] = @SW_HIDE


Run($myVariable[1] & $myVariable[2], $myVariable[3], $myVariable[4])

BUT, as i said YOUR LINK IS DEAD

so, for testing

Dim $myVariable[5]

$myVariable[1] = @ComSpec 
$myVariable[2] = " /c Start http://www.autoit3.com"
$myVariable[3] = ""
$myVariable[4] = @SW_HIDE


Run($myVariable[1] & $myVariable[2], $myVariable[3], $myVariable[4])

this works

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

@monte

A variable cannot hold multiple parameters as one value.

$myVariable = @ComSpec & " /c Start http://domino.keybank.com/ens/emcid%20reference.nsf/ByEMCID/aServer"
Run($myVariable, "", @SW_HIDE)

Share this post


Link to post
Share on other sites

valuater, you're AWESOME! actually on my intranet the link does work and you're above code works flawlessly! Thanks so much! By the way, you're in california??? past you're bedtime isn't it? (I'm from san juanquin county - stockton area). I miss it!

Share this post


Link to post
Share on other sites

MHz, my variable is just a string of characters. However, valuater has solved my problem. Thank you for replying.

Share this post


Link to post
Share on other sites

thanks, glad it worked for you

i can make thinks work ( usually ) with my hobbiest approach

but... MHz, has a "True" understanding, so remember what he said!

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

MHz, true, a variable cannot hold multiple paramaters. I misspoke. I guess I don't understand the symantecs of the run(), nor the autoit compiler. I apologise...and again, thank you.

Share this post


Link to post
Share on other sites

BUT, as i said YOUR LINK IS DEAD

Actually, as opposed to the link being incorrect, I find that it is the hyperlink parsing mechanism for the autoitscript forums to be the culprit of your incautious accusations. If you look at the underlined hyperlink, it reads:

http://domino.keybank.com/ens/emcid%20refe...D/aServer"

That double-quotes character at the end of the link is fudging up the whole thing. As with all shortcuts, those that are created imprecisely can be less helpful than if they didn't exist altogether. Your exposé should therefore read:

"BUT, as i said YOUR LINK PARSER IS DEAD"


[u]My UDFs[/u]Coroutine Multithreading UDF LibraryStringRegExp GuideRandom EncryptorArrayToDisplayString"The Brain, expecting disaster, fails to find the obvious solution." -- neogia

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