WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Control Manager
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Setting Network Control Panel Identification Tab in Windows95

Keywords:     netcpl.cpl

Question:

I'm trying to run the network control panel and select the Identification tab but every time I run the script which I basically took right out of the help file it gives me the following error: Specified parent windows doesn't exist. cSetTabItem(systabwnd,2)

I searched your on line help but only found references to Windows NT not Windows 95.

I copied the example straight out of the Helpfile and just changed what control panel I called, the Title and the tabtitle variables. I keep getting the same results and there doesn't seem to be anything I am doing wrong. I am trying to automate the setup of Windows 95 computers so I need to fill in the Identification tab. Thanks for your help.

Answer:

This *slightly* modified script worked for me. Basically on my system I see SysTabControl, not SysTabControl32.

I ran the window analysis script on it and peeked at it. I suspect the example came from a NT system or something.

AddExtender("wwctl34I.dll")
Run("rundll32.exe", "shell32.dll,Control_RunDLL netcpl.cpl")
title="Network"
multiwnd=DllHwnd(title)
tabtitle="Identification"

systabwnd=cWndByClass(multiwnd,"SysTabControl")
cSetTabItem(systabwnd,2)

; confirm correct tab
nethwnd=cWndBySeq(multiwnd,1)
thistitle=cWndInfo(nethwnd,0)
if thistitle!=tabtitle
Message("Error","Incorrect tab title")
exit
endif

Article ID:   W12518
Filename:   Setting Network Control Panel in Win95.txt
File Created: 2017:07:28:13:58:27
Last Updated: 2001:03:02:14:38:46