Raspppoe Question

yogi

no fate but what we make
[OP]
Regulars
Aug 26, 2005
267
0
Is it possible to write a script which can access the results of raspppoe and click the button "query available services" via this script, and access the results that it sends back?I dont know low level coding...so maybe someone here knows? Please reply!:)
 

yogi

no fate but what we make
[OP]
Regulars
Aug 26, 2005
267
0
QUOTE(amogh_gulwady @ Jul 28 2006, 05:00 PM) [snapback]56921[/snapback]
Use RASPPPOE dude... :p
[/b]

I already am using it, I mean to automate it.
 


seshu

Listener
Regulars
Mar 31, 2006
1,254
7
^ Automate it ? I could not understand why one needs this automation .

anyway , you have to start RASPPPOE and send the code of Q to
click the button . RASPPPOE gives the "query available services" .
if required RASPPPOE can be closed after a few seconds by sending
the code of E .
It is possible to do this thru c++ / Pascal / etc .

But I donot know if the output can be sent to a text file ...
 

yogi

no fate but what we make
[OP]
Regulars
Aug 26, 2005
267
0
I need the automation because the isp does not offer services unless queried. This is the technique they use to disconnect users every few hours, and not let automated software reconnect. I dont need the output to a text file but I do need the results ie. if query failed or succeeded. And depending on results, I can do other steps. I dont know c++ or pascal very well, so if you can write the code, then tell me. I know java but it does not have good interface for native windows 32 apps.
 

seshu

Listener
Regulars
Mar 31, 2006
1,254
7
@ Yogi , I'd sent a personal message .
perhaps you didnt get its notification .

I need to know your Operating System and
if you have visual c / turbo c++ compiler .

I will try to give the required code .[/b]

And also where is RASPPPOE.exe located on your system ?
give the complete path .
 


yogi

no fate but what we make
[OP]
Regulars
Aug 26, 2005
267
0
Operating system is Widows 2000 professional.I dont have any c++ compiler installed, so please provide info about that also. And the path to raspppoe is C:\WINNT\system32\RASPPPOE.exeActually you should make all these parameters if you can...I mean path to raspppoe, how many times the program should use raspppoe, etc. Thanks for helping!!!:)
 

seshu

Listener
Regulars
Mar 31, 2006
1,254
7
^ I found that the code in turbo c++ is not detecting raspppoe .
strange ! I donot have a visual C compiler .

anyway I used AutoIt ; made a simple script and compiled it .
it is working as a stand alone program .

site : http://www.autoitscript.com
download AutoIt (aprox 2MB) :
http://www.autoitscript.com/cgi-bin/getfil...it-v3-setup.exe

the required simple code : (autoraspppoe.au3)
note : the code is case sensitive .

Code:
run("c:\winnt\system32\raspppoe.exe")WinWaitActive("RASPPPOE - Dial-Up Connection Setup")send("!Q")
you can customize it as per your requirements . it is a simple task .
 

yogi

no fate but what we make
[OP]
Regulars
Aug 26, 2005
267
0
ok great! thanks for that. I am busy with some things, so will try it soon & put the results here...!
 

yogi

no fate but what we make
[OP]
Regulars
Aug 26, 2005
267
0
This is a great tool! I never knew about it....now I can automate a lot of things that I wanted to ;) If I have questions, will ask you! Thanks for telling about this :)
 

Similar threads