Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Modem Selection on Startup

Status
Not open for further replies.

MyFlight

Technical User
Feb 4, 2002
193
How can I ensure that my modem is selected automatically when I startup ProComm Plus?? When I start ProComm it comes up with Direct Connect selected. If I run 2 sessions of ProComm, when I start the second it comes up as Direct Connect as well. Since i almost never use direct connect, I want to change this so that it always selcts a certian modem on startup, and the second session always uses the second modem. EXAMPLE

1st Session of ProComm selects my Sportser 14400
2nd Session of ProComm selects my Sportser 56K Data Fax

Any Ideas?? (this is for both versions 4.5 and 4.8)
Thanks
 
You can use the set modem connection command to do this. Since you want a different modem per Procomm instance, I'd recommend creating two desktop shortcuts that launch Procomm and an associated script file (a different one for each shortcut so that the "correct" modem is selected). Your script would look like this:

proc main
set modem connection "connection_name"
endproc

where connection_name would be replaced by the name of your modem as it appears on Procomm's Quick Select Line at the bottom of the Procomm window.

You probably already have a Procomm shortcut on your desktop (at least with version4.8) to launch the application. All you need to do to make that shortcut launch a particular script on startup is to to go to the Target field (on Win98, may be called something slightly different on other Windows platforms), add a space to the end, then the name of your script including the .wax extension.
aspect@aspectscripting.com
 
Since everyone has a different connections is there a way to activate COm Port 1 for the first session?? Using the Connection Name I think i would first have to search for all available Connections and then DISCOUNT the Direct connects?? NO
 
I don't believe there's an easy way to tell Procomm to use the modem on COM1, since Procomm considers the connection as a whole rather than a particular modem on a particular com port. What you can do is use set modem connection 10, which should make Procomm use the first modem on the system. I'm at work now and my machine doesn't have a modem so I can't test this, but that is what the help file states at least (I'm pasting the discussion below). I have a couple ideas for determing if a modem is on Com1 or not, but will not be able to test that until I get home.

modem connection index | string | CURRENT | FIRST

Specifies the active data modem connection. Either a zero-based index, or the name of a data modem connection in the Current Modem/Connection list in Setup, System, Modem Connection may be used. This command will fail if an attempt is made to set a Connection Directory entry to "direct connect-none", "direct connect-Telnet", or a modem/connection that has incnctlist set to OFF. This command will also fail if you specify a modem/connection that has incnctlist set to OFF. fetch returns the contents of the Current Modem/Connection field in a string.

Please note that the index value for TAPI connections begins at 10, even though TAPI connections may be displayed at the top of the Current Modem/Connection list. Other connections have zero-based indexes. For example, "direct connect-none" is always index 0, followed in order by the other connections in the list.
The CURRENT and FIRST keywords are valid only for a specified Connection Directory entry. The FIRST keyword is valid only when accessing a Fax entry.
aspect@aspectscripting.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top