November 5th, 2004, 02:21 PM
Modem Dialing: win32ras.Dial
I need help getting my modem to dial with python, (as I cannot user the internet without it )
Seriously though I'm using the win32ras.Dial function and as I understand it it needs no initialization.
Here's the applicable code snipit
as I understand it it should connect to (9 to dial out ,, to pause) then 832XXXX, using the default windows modem, but it is not dialing.
fs, ret = win32ras.Dial(None, None, ('', '9,,832-XXXX', '', 'accountName', 'password', ''), None)
November 8th, 2004, 10:07 AM
For those who might be interrested:
function requires a dial up connection name to be provided to the function. This sets up which device / com etc to be used and all of that good stuff. The phone number and username / password can all be overrided, but it needs the initial path to the device.
Therefore the code would need to look like the following
win32ras.Dial(None, None, ('DialUpConnectionName', '9,,832-XXXX', '', 'accountName', 'password', ''), None)