Page 1 of 1 1
Topic Options
#43628 - 2003-08-01 09:43 PM OS or KiXtart version??
tr6boy Offline
Starting to like KiXtart

Registered: 2001-10-24
Posts: 131
I'm having trouble getting the Proxy server UDF (by radimus) to work on a Win9x machine. Is that to be expected, or might it be that I need a minimum KiXtart version to make it work? Just wasn't sure where to start with it.

The error I get is "Script Error : Unknown Command" when the script tries to call the function in the UDF. Thanks!

Top
#43629 - 2003-08-01 10:01 PM Re: OS or KiXtart version??
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
I don't see any header info on the UDF so I can not readily tell what dependancies exist.

If you would tell what version of KiXtart you are using and on what line (include reported text) the script errors we might be able to better answer your question.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#43630 - 2003-08-01 10:24 PM Re: OS or KiXtart version??
tr6boy Offline
Starting to like KiXtart

Registered: 2001-10-24
Posts: 131
Thanks Howard - I'll try to give better info from now on. My KiXtart version is 4.20.

Maybe the best question to ask before we go too far is can I reliably use KiXtart to set proxy settings regardless of OS (limited to Windows 95, 98, 2000 and XP)? Or do some of the older OS have problems that would prevent that?

Here's the script I'm using first off:

code:
 
$myUDFdir = "\\mydc\netlogon"
call "$myUDFdir\proxysettings.udf"

;setproxy(0,,1) ;remove per user settings
;setproxy(0,,0) ;remove per machine settings
setproxy(1,"isatest:8080",1) ;set per user settings

proxysettings.udf is the name of the file that is essentially Radimus' UDF, except I added my browser exceptions.

The script fails as soon as Kix32 starts to execute the code above. It reads from the UDF, and says "Script Error : Unknown Command" while trying to execute
code:
 
function setproxy($type, optional $Proxy, optional $PerUser)

How would I found out about any possible dependencies?

Hope I provided enough - I appreciate your help more than you know!
Thanks

Top
#43631 - 2003-08-01 10:32 PM Re: OS or KiXtart version??
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
This is what I use for Win9x and higher.


Function SetAutoProxy ($Proxy)
; This function sets the corporate autoproxy for the client
dim $Proxy, $key, $rc_write, $RC1, $RC2, $RC3, $RC4
$key = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings"
$RC1=WriteValue($key,"ProxyEnable","0","REG_DWORD")
$RC2=WriteValue($key,"AutoConfigURL",$Proxy,"REG_SZ")
$RC3=WriteValue($key,"ProxyServer","","REG_SZ")
$RC4=WriteValue($key,"ProxyOverride","","REG_SZ")
if ($RC1+$RC2+$RC3+$RC4)>0
$ErrorState=1
WriteLog("Error setting AutoProxy registry settings. 0=success (RC1=$RC1, RC2=$RC2, RC3=$RC3, RC4=$RC4)")
endif
$file = "c:\Program Files\Plus!\Microsoft Internet\CUSTOM\install.ins"
If Exist($file)=1
$rc_write=WriteProfileString($file,"URL","AutoConfigURL","http://proxy.tycoelectronics.com/auto.proxy")
$rc_write=WriteProfileString($file,"URL","AutoConfigJSURL","")
$rc_write=WriteProfileString($file,"Proxy","HTTP_Proxy_Server","")
$rc_write=WriteProfileString($file,"Proxy","FTP_Proxy_Server","")
$rc_write=WriteProfileString($file,"Proxy","Secure_Proxy_Server","")
$rc_write=WriteProfileString($file,"Proxy","Gopher_Proxy_Server","")
$rc_write=WriteProfileString($file,"Proxy","Socks_Proxy_Server","")
$rc_write=WriteProfileString($file,"Proxy","Proxy_Enable","0")
Endif
; Correction for Caching SSLpages
$RC1=WriteValue($key,"DisableCachingOfSSLPages","0","REG_DWORD")
Endfunction
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#43632 - 2003-08-01 10:33 PM Re: OS or KiXtart version??
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
It sounds like the script cannot find the SetProcy function. Insert a DEBUG ON before the first SetProcy() call or at the beginning of the script and step trhough it.

[ 01. August 2003, 22:34: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#43633 - 2003-08-01 10:45 PM Re: OS or KiXtart version??
tr6boy Offline
Starting to like KiXtart

Registered: 2001-10-24
Posts: 131
Thanks guys - I'll do a little debugging and see if I can tell what's up. Have a great weekend
Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 1047 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.201 seconds in which 0.025 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org