monte Posted February 3, 2006 Share Posted February 3, 2006 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. Link to comment Share on other sites More sharing options...
Valuater Posted February 3, 2006 Share Posted February 3, 2006 show us what is in $myVariable if you want help,... Otherwise, ??you could pay someone?? 8) Link to comment Share on other sites More sharing options...
monte Posted February 3, 2006 Author Share Posted February 3, 2006 I apologise. Here is my variable: $myVariable='@ComSpec & " /c Start http://domino.keybank.com/ens/emcid%20refe...D/aServer", "", @SW_HIDE' Link to comment Share on other sites More sharing options...
Valuater Posted February 3, 2006 Share Posted February 3, 2006 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) Link to comment Share on other sites More sharing options...
MHz Posted February 3, 2006 Share Posted February 3, 2006 @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) Link to comment Share on other sites More sharing options...
monte Posted February 3, 2006 Author Share Posted February 3, 2006 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! Link to comment Share on other sites More sharing options...
monte Posted February 3, 2006 Author Share Posted February 3, 2006 MHz, my variable is just a string of characters. However, valuater has solved my problem. Thank you for replying. Link to comment Share on other sites More sharing options...
Valuater Posted February 3, 2006 Share Posted February 3, 2006 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) Link to comment Share on other sites More sharing options...
monte Posted February 3, 2006 Author Share Posted February 3, 2006 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. Link to comment Share on other sites More sharing options...
neogia Posted February 3, 2006 Share Posted February 3, 2006 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 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