 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
TheLeO
Joined: 11 Jun 2005 Posts: 160 Location: England ish
|
Posted: Thu Feb 14, 2008 11:06 am Post subject: How do i ge ahk to Connect ie a dail up connection..? |
|
|
I moved from england to russia,,, long story,,,
I dunow any other prog language then ahk ....
well, things here are some what unproffessional....
i've got internet, but it's not like your get your own line, ie adsl, its like whole bunch of pc's are connected to a win 2003 server, (guys come by and pull a cable to your flat)....
the net cable goes right into the pc, they configure a VPN and voala, i have internet...
the thing is, It disconects every 20 minutes or so,, russia, what do you expect...
and i have to go to the desctop click the short cut to connect to the vpn,,
i then get taht dail connectoin window, i have to click connect... it dails, varifies username and pass, and i've got internet .....agian......
I wana get it to connect by hot key...
I need to find a way to open that connect window, then i can send an "enter" which presses the connect button...
i dunow how to "run" a connection.i.e MDtelecom/.. the shortcut properties say that the target is.
{BA126AD7-2166-11D1-B1D0-00805FC1270E}, Network Connections
I tried tor run, the above, no luck,,,,
I tried to get the shortcut target by
FileGetShortcut, MDtelecom.lnk, OutTarget, OutDir,
but the parameters come out blank....
tick box "re-dail connection if line is dropped" doesn't seem to work for some reason, it just looses connection and doesn't recconect......
help would be much apprechiated...  _________________ And i say: where there is a problem , there is a solution.(well some where that is.)
::
I Have Spoken
:: |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 5880
|
Posted: Thu Feb 14, 2008 11:16 am Post subject: |
|
|
You may try NirCmd.exe, a small command-line tool, like:
| Code: | | Run, nircmd.exe rasdial "My Internet" |
 |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 5880
|
|
| Back to top |
|
 |
TheLeO
Joined: 11 Jun 2005 Posts: 160 Location: England ish
|
Posted: Thu Feb 14, 2008 6:45 pm Post subject: |
|
|
Worked great ... at least for the first couple of tries....
ie. i used
f1::Run, nircmd.exe rasdial "MDtelecom"
f2::run, nircmd.exe rashangup "MDtelecom"
BUT!!!!!
some times it fails to dail the connection..
so i usualy cancle it, and retry later,,,
with the lil app, it hangs, and i can't cancle it (as there is no dialoge) so i have to restart the pc... not so time saving......
mmmmmm,,,,,,,,,,,,,,,,,,,,,,,, any ideas boys??? _________________ And i say: where there is a problem , there is a solution.(well some where that is.)
::
I Have Spoken
:: |
|
| Back to top |
|
 |
BoBoĻ Guest
|
Posted: Thu Feb 14, 2008 8:02 pm Post subject: |
|
|
RASDIAL.EXE (RAS Command-Line Dialer). A client-side user interface.
RASPHONE.EXE (RAS Phone). The Dial-Up Networking Phonebook application. Both comming with your OS. Have a try ...& good luck
| Code: | RunWait, %comspec% /c rasdial /? > MyRasDial.txt,, Hide
Run, Notepad MyRasDial.txt
RunWait, %comspec% /c rasphone /? > MyRasPhone.txt,, Hide
Run, Notepad MyRasPhone.txt |
|
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|