Page 1 of 1 1
Topic Options
#148932 - 2005-09-30 06:39 PM VBS to Kix Conversion
LMS Offline
Lurker

Registered: 2005-09-30
Posts: 3
I run a fairly basic Kix script at logon. I have been ask to integrate a .vbs into my Kix script but I would much rather just run it as Kix. How can I convert this into the Kix format. I am running Kix v4.5 and run the scripts through the Group Policy on a Windows 2003 domain.

(.vbs script)
ON ERROR RESUME NEXT

Set settings = CreateObject("EmailChecker.Settings")
Do While (Not settings.getRandomQuestionPopup)
Loop
Set settings = Nothing

Thanks
LMS

Top
#148933 - 2005-09-30 06:43 PM Re: VBS to Kix Conversion
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
$settings = CreateObject("EmailChecker.Settings")
Do While (Not $settings.getRandomQuestionPopup)
Loop
$settings = ''
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#148934 - 2005-09-30 06:48 PM Re: VBS to Kix Conversion
maciep Offline
Korg Regular
*****

Registered: 2002-06-14
Posts: 947
Loc: Pittsburgh
well i don't think you need the "Do" on the "While" loop

Code:

$settings = CreateObject("EmailChecker.Settings")
While Not $settings.getRandomQuestionPopup
Loop
$settings = ''


Top
#148935 - 2005-09-30 06:49 PM Re: VBS to Kix Conversion
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
Oops. Close...

Code:

$settings = CreateObject("EmailChecker.Settings")
While Not $settings.getRandomQuestionPopup
Sleep 0.1 ; Added just to make sure that the CPU doesn't peg at 100%
Loop
$settings = ''



Edited by Chris S. (2005-09-30 06:50 PM)

Top
#148936 - 2005-09-30 06:54 PM Re: VBS to Kix Conversion
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
My bad.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#148937 - 2005-09-30 07:01 PM Re: VBS to Kix Conversion
LMS Offline
Lurker

Registered: 2005-09-30
Posts: 3
Thanks. What about the ON ERROR RESUME NEXT. This is the 1st line in the vbs.

LMS

Top
#148938 - 2005-09-30 07:08 PM Re: VBS to Kix Conversion
maciep Offline
Korg Regular
*****

Registered: 2002-06-14
Posts: 947
Loc: Pittsburgh
that just tells vbscript to continue running the script even if it encounters an error (a recoverable error). there's really no need/way to translate it.
Top
#148939 - 2005-09-30 07:59 PM Re: VBS to Kix Conversion
LMS Offline
Lurker

Registered: 2005-09-30
Posts: 3
Thanks. It worked like a charm
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
0 registered and 1046 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.042 seconds in which 0.013 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