AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How do i ge ahk to Connect ie a dail up connection..?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
TheLeO



Joined: 11 Jun 2005
Posts: 160
Location: England ish

PostPosted: Thu Feb 14, 2008 11:06 am    Post subject: How do i ge ahk to Connect ie a dail up connection..? Reply with quote

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... Crying or Very sad

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... Smile
_________________
And i say: where there is a problem , there is a solution.(well some where that is.)
::
I Have Spoken
::
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
SKAN



Joined: 26 Dec 2005
Posts: 5880

PostPosted: Thu Feb 14, 2008 11:16 am    Post subject: Reply with quote

You may try NirCmd.exe, a small command-line tool, like:

Code:
Run, nircmd.exe rasdial "My Internet"


Smile
Back to top
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 5880

PostPosted: Thu Feb 14, 2008 11:20 am    Post subject: Reply with quote

Also check this out: http://www.visualautomation.com/comprod/secure6/dialup_t.htm
Back to top
View user's profile Send private message
TheLeO



Joined: 11 Jun 2005
Posts: 160
Location: England ish

PostPosted: Thu Feb 14, 2008 6:45 pm    Post subject: Reply with quote

Worked great ... Very Happy at least for the first couple of tries.... Confused
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... Neutral 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
View user's profile Send private message Visit poster's website MSN Messenger
BoBoĻ
Guest





PostPosted: Thu Feb 14, 2008 8:02 pm    Post subject: Reply with quote

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 Cool
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
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group