KiXforms Forum Index KiXforms
The Forum for the KiXforms Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Quick Links 
Site News
Downloads
Documentation
Donations
Script Archive
Tracking Systems

Nightmare of KiXforms

 
Post new topic   Reply to topic    KiXforms Forum Index -> Starters Code Clinic
View previous topic :: View next topic  
Author Message
gmpatel001
KiXforms Novice
KiXforms Novice


Joined: 06 Oct 2010
Posts: 3

PostPosted: Mon Oct 18, 2010 9:50 pm    Post subject: Nightmare of KiXforms Reply with quote

hi guys,

I used kixform in our company's existing kixtart setup. i registered kixforms.dll successfully. I added my script to Group Policy. But i get error in very first line "Break On".

Following is my script:


Break On

$System = CreateObject("Kixtart.System")
$ClickText = "Number of button clicks: "

$Form = $System.Form()

$Form.Text = "Kixforms Demo"
$Form.Width = 600
$Form.Height = 230
$Form.FontName = "Verdana"
$Form.FontSize = 12


$Label1 = $Form.Controls.Add("Label")
$Label1.Left = 35
$Label1.Top = 10
$Label1.Width = 270
$Label1.Height = 30
$Label1.Text = $ClickText

$Button1 = $Form.Controls.Add("Button")
$Button1.Left = 35
$Button1.Top = 50
$Button1.Width = 230
$Button1.Height = 40
$Button1.Text = "OK"

$Button1.OnClick = "Button1_Click()"

$Form.Show

While $Form.Visible
$ = Execute($System.Application.DoEvents)
Loop

Exit 1

Function Button1_Click()
$Form.BackColor = $Form.RGB(RND(255),RND(255),RND(255))
EndFunction


============================================




Attached is the error.

Please help.



network.bmp
 Description:
 Filesize:  750.05 KB
 Viewed:  1335 Time(s)

network.bmp


Back to top
View user's profile Send private message
It Took My Prozac
KiXforms Supporter
KiXforms Supporter


Joined: 15 Feb 2005
Posts: 65

PostPosted: Fri Feb 11, 2011 11:42 am    Post subject: Wrong interpreter Reply with quote

It looks like you're trying to run a KiXtart script with the VBScript interpreter Confused You need to use kix32.exe or wkix32.exe and pass the script as the argument.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> Starters Code Clinic All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group