crest Posted October 4, 2006 Share Posted October 4, 2006 (edited) Hi, i want to make my script to automatically connect me to the internet. To do this, i have to execute/run a Broadband-connection, which is found in "network environment\ network connections" Since i dont know how to open that one without using lame mouseclicks, i thought i could just make a shortcut to that file and then execute it. Prob is, that this shortcut-file does not have a file extension (at least its not visible) ive tried this: Run ("Versatel DDSL", "E:\FSY\Symbotleiste\sl1") which does not work, since "run" seems to require some file-extension Autoit says it cant find the file, yet im sure that ive made no typos How can i solve this prob? Hope you guys can help me if you need more infos, feel free to let me know Edited October 4, 2006 by crest Link to comment Share on other sites More sharing options...
FuryCell Posted October 4, 2006 Share Posted October 4, 2006 (edited) Shortcuts have the extension .lnk although it is often not visible. Edited October 5, 2006 by SolidSnake HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code. Link to comment Share on other sites More sharing options...
crest Posted October 5, 2006 Author Share Posted October 5, 2006 thanks for your fast replies lnk kinda worked, yet i get another error-message: "Error: Unable to execute the external program" Any suggestions? Another way would be to activate/run the internetconnection directly from the network connections directory. Is there any way to do this? @Dethredic, since im not using ie that wont help Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted October 5, 2006 Moderators Share Posted October 5, 2006 ohh ya u need betaYou need at least the official release 3.2.1 not necessarily beta to run _IE* functions. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
FuryCell Posted October 5, 2006 Share Posted October 5, 2006 What about using run and @comspec? Run(@ComSpec&' /c "C:\Documents and Settings\All Users\Start Menu\Programs\Accessories\Calculator.lnk"',"",@SW_HIDE) HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code. Link to comment Share on other sites More sharing options...
crest Posted October 5, 2006 Author Share Posted October 5, 2006 What about using run and @comspec? Run(@ComSpec&' /c "C:\Documents and Settings\All Users\Start Menu\Programs\Accessories\Calculator.lnk"',"",@SW_HIDE) well using that i can at least run the script without any errors. Doesnt work tho xD The InternetConnection-Window wont open actually nothing happens well i still cant believe, that its that hard to activate a network-connection Link to comment Share on other sites More sharing options...
dabus Posted October 5, 2006 Share Posted October 5, 2006 I could swear you can use rasdial to establish connections... Link to comment Share on other sites More sharing options...
Xenobiologist Posted October 5, 2006 Share Posted October 5, 2006 Hi, normally the router is that configured that he dials automatically when you are sending a request. Shortcut: $lnkShortcutLocation = @DesktopCommonDir & '\Mozilla Firefox.lnk' If FileExists($lnkShortcutLocation) Then Run(@ComSpec & ' /c "' & $lnkShortcutLocation & '"', '', @SW_HIDE) Else MsgBox(16, "error", "File does not exist", 3) EndIf What do you have to do manually to start a connection? So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times 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