Jump to content

Recommended Posts

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
Posted

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.

Posted

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+.

Posted

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?

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

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
×
×
  • Create New...