sosimple Posted November 16, 2006 Share Posted November 16, 2006 Hi I want to sent this to the modem, throw the web interface : http://192.168.01/dsl_auto.htm&todo=auto_pvcHow can I do it with auto it?I can do it as a .bat file with this:"C:\Program Files\Mozilla Firefox\Firefox.exe" "http://192.168.01/dsl_auto.htm&todo=auto_pvc"saving it as file.bat, and runing it, it works, but i want to do it with autoit.I tried with this code:#include <Process.au3>$rc = _RunDos("start "http://192.168.01/dsl_auto.htm&todo=auto_pvc")bat it is not working, in the last line ,it canot see the "&todo=auto_pvc" , it works as if i had writen:$rc = _RunDos("start "http://192.168.01/dsl_auto.htm")Any ideas/help? Thanks Link to comment Share on other sites More sharing options...
Uten Posted November 16, 2006 Share Posted November 16, 2006 Why not include the firefox part to make it comparable? This works on my system. Don't know why you have added the exstra " _RunDOS("@start http://www.google.com") Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
herewasplato Posted November 16, 2006 Share Posted November 16, 2006 (edited) ...This works on my system. Don't know why you have added the exstra " _RunDOS("@start http://www.google.com")oÝ÷ Ûú®¢×¶§ØZ¶Ø^9( Þ±ëÞ¯+ax~׫¶ªº¢Z+ QtÓM,¥©ì·)^oÝ÷ Ù.Â)e²Ø¥¶azÈy»z÷«ÊØbµêíꮢ֦¦«¨·¥·¦Ë"ë¢kayDK!Ê.Ùè¶Zjצ-¶éí춬Ë.y»ØZ±Ê&zê[yú+z'È~)ݶ©¢Ël#eÇÂíé,(®F«¢éݲaz»!j÷®±çl¢È¦¦Wv+B¢é]_wmêh²ÛajÒ!iا)ݶ¼+ºÚ"µÍÚ[ÛYH ÒQK]LÉÝÂÒQPÜX]J ][ÝÚËÝÝÝËÚ]Ú[ÛÛKÙÜ[ËÜÚÝÜÜÝÜNL M [ÜÜÝÛÝ[MI][ÝÊoÝ÷ ØGb·d^ªè«zËay·j÷«²*'jëh×6ShellExecute("http://www.sitepoint.com/forums/showpost.php?p=906654&postcount=61") Edited November 16, 2006 by herewasplato [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
/dev/null Posted November 16, 2006 Share Posted November 16, 2006 how about this one http://tinyurl.com/y29vsy At least it will solve the problem ....CheersKurt __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
herewasplato Posted November 16, 2006 Share Posted November 16, 2006 how about this one http://tinyurl.com/y29vsy At least it will solve the problem ....CheersKurt...but not if the modem/router that you are attempting to setup is not getting to the NET :-) [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
/dev/null Posted November 16, 2006 Share Posted November 16, 2006 (edited) ...but not if the modem/router that you are attempting to setup is not getting to the NET :-)well, then: BAD LUCK BTW: The answer to the problem is in the first post. Why use start if Firefox works... ???CheersKurt Edited November 16, 2006 by /dev/null __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
herewasplato Posted November 16, 2006 Share Posted November 16, 2006 ...but using tinyurl is a creative solution that I don't think that I've seen posted for the "special characters" issue and _RunDOS. ShellExecute is a nice addition, but it does not always come to mind when I see posts like this - maybe someday it will. [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
Uten Posted November 16, 2006 Share Posted November 16, 2006 ...but using tinyurl is a creative solution that I don't think that I've seen posted for the "special characters" issue and _RunDOS.ShellExecute is a nice addition, but it does not always come to mind when I see posts like this - maybe someday it will.Probably because ShellExecute is a resent add to the function (native) list.Personally I have never liked the _RunDOS udf over Run( ...) and RunWait( ... ). Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
Uten Posted November 16, 2006 Share Posted November 16, 2006 Adding a link to a 192.168.x.x address is not supposed to work outside your lan. Even if you use tinyurl Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
herewasplato Posted November 16, 2006 Share Posted November 16, 2006 Adding a link to a 192.168.x.x address is not supposed to work outside your lan. Even if you use tinyurl I would think that it would - but cannot test right now. Tiny is just redirecting you to a local address within you lan.However, the OP has a typo 192.168.0.1...which Kurt pasted to the "tiny link" :-) [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
Uten Posted November 16, 2006 Share Posted November 16, 2006 I was a bit fast on that on actually. Agree with herwasplato that you could make a redirect to the inside of your lan as long as yuo are surfing from the same lan. On the other hand, It does not make much sense as a link in a forum. Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
/dev/null Posted November 16, 2006 Share Posted November 16, 2006 I would think that it would - but cannot test right now. Tiny is just redirecting you to a local address within you lan.However, the OP has a typo 192.168.0.1...which Kurt pasted to the "tiny link" :-)Hey, come on THAT was the link he wanted to access. So, if it does not work, it's not my fault. Tinyurl did what I expected it to do CheersKurt __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
AzKay Posted November 16, 2006 Share Posted November 16, 2006 Hey, come on THAT was the link he wanted to access. So, if it does not work, it's not my fault. Tinyurl did what I expected it to do CheersKurtIt actually should work. If HE trys it. If I put in my router/modems ip in tinyurl, Works fine. # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
herewasplato Posted November 16, 2006 Share Posted November 16, 2006 This one worked for me:http://tinyurl.com/5rbvwhich redirects tohttp://192.168.0.1/...as long as you not VPNed into another network...@Kurt,Could not resist :-)@sosimple,See what you started :-)Welcome to the forums... [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
sosimple Posted November 16, 2006 Author Share Posted November 16, 2006 I think that the OS ignores everything after the "&" Here is a test script for you to try Uten:#include <Process.au3> ;had to use $URL to make the code post well $URL = "http://www.sitepoint.com/forums/showpost.php?p=906654&postcount=61" _RunDOS("@start " & $URL)oÝ÷ Ù.Â)e²Ø¥¶azÈy»z÷«ÊØbµêíꮢ֦¦«¨·¥·¦Ë"ë¢kayDK!Ê.Ùè¶Zjצ-¶éí춬Ë.y»ØZ±Ê&zê[yú+z'È~)ݶ©¢Ël#eÇÂíé,(®F«¢éݲaz»!j÷®±çl¢È¦¦Wv+B¢é]_wmêh²ÛajÒ!iا)ݶ¼+ºÚ"µÍÚ[ÛYH ÒQK]LÉÝÂÒQPÜX]J ][ÝÚËÝÝÝËÚ]Ú[ÛÛKÙÜ[ËÜÚÝÜÜÝÜNL M [ÜÜÝÛÝ[MI][ÝÊoÝ÷ ØGb·d^ªè«zËay·j÷«²*'jëh×6ShellExecute("http://www.sitepoint.com/forums/showpost.php?p=906654&postcount=61") Thanks man. Both of the last 2 solutions really work, tha last one with the beta version is the one i wanted, because it works and with mozila , not only internet explorer. And sory for the exstra " whitch come buy mistake... Link to comment Share on other sites More sharing options...
herewasplato Posted November 16, 2006 Share Posted November 16, 2006 Thanks man...Anytime...@Dale,My first post suggesting IE.au3http://www.autoitscript.com/forum/index.ph...st&p=268692...and it only took a year or so :-)Thanks for all of your efforts on that great addition to AutoIt. [size="1"][font="Arial"].[u].[/u][/font][/size] 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