Sign in to follow this  
Followers 0
UltraFine

help me to complete my program

11 posts in this topic

#1 ·  Posted (edited)

hi, this program is almost done but

Posted Image

*

i am using rasdial.exe command to disconnect from internet but i don't know it's command to connect.

how to connect to internet (using a DialUp connection)?

Edited by L0veUK

Share this post


Link to post
Share on other sites



Posted Image

how to connect to internet?

You can be more accurate?

Anyway you should read in help file about TCP functions.


When the words fail... music speaks

Share this post


Link to post
Share on other sites

You can be more accurate?

Anyway you should read in help file about TCP functions.

Thanks fro the quick reply.

there are many TCP functions and i don't know how to use them. also one more problem is that i want to use a PNG in this program instead of bmp but PNG files are not displayed.

Share this post


Link to post
Share on other sites

Thanks fro the quick reply.

there are many TCP functions and i don't know how to use them. also one more problem is that i want to use a PNG in this program instead of bmp but PNG files are not displayed.

What exactly suppose to do your script?

If you want to use PNG you should use GDI+.


When the words fail... music speaks

Share this post


Link to post
Share on other sites

What exactly suppose to do your script?

i am creating something just like the following program but more advance.

Posted Image

*

it's a default net connector which connects to internet and disconnect.

and now my problem is just to know, how to connect to internet usin a dialUp?

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Look at my AutoDial project.

It's in my signature but after server move it's not accessible now so here it's as attachment - see autodial_eng.txt inside ZIP:

Look at sources of rnahelpxp.exe - it's my Delphi helper app which is called from my AutoIt's AutoDial project to disconnect/connect/test connection.

There are used API functions from RASAPI32.DLL:

function RasEnumConnections;   external 'RASAPI32.DLL' name 'RasEnumConnectionsA';
function RasHangUp;         external 'RASAPI32.DLL' name 'RasHangUpA';
function RasGetConnectStatus;  external 'RASAPI32.DLL' name 'RasGetConnectStatusA';
function RasDial;             external 'RASAPI32.DLL' name 'RasDialA';
function RasGetErrorString; external 'RASAPI32.DLL' name 'RasGetErrorStringA';

EDIT: Also search for "autodial" or "RasDial" on this forum for more info

AD.ZIP

Edited by Zedna

Share this post


Link to post
Share on other sites

@ Zedna

thanks, i will try it and also search more. thanks once again.

Share this post


Link to post
Share on other sites

how do u disconnect from internet with rasdial.exe?

Share this post


Link to post
Share on other sites

@ Zedna

you are really great, thanks for the help once again.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0