Page 1 of 1 1
Topic Options
#129620 - 2004-11-16 05:03 PM Running a VBS script (AutoIT) in KiXtart
Anonymous
Unregistered


I have a question about running a VBS script designed in AutoIT, to import it to KiXtart. A friend of mine made a script with AutoIT that blocks the input devices, hava KiX install a program and after that unblock the input devices again.

He wants something like the following:

Run blockinput.vbs
(here comes the install)
Run unblockinput.vbs

What kind of KiX code do we need to use for this?
Run? Shell?

Top
#129621 - 2004-11-16 05:14 PM Re: Running a VBS script (AutoIT) in KiXtart
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
I would suggest you simply convert the vbs code for blocking into Kixtart code, and dispense with vbs altogether ... if you post the vbs code, we can help to convert.
Top
#129622 - 2004-11-16 05:14 PM Re: Running a VBS script (AutoIT) in KiXtart
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
You should be able to fully convert the vbs script to KiX. If you want you can post it to the COM forum for help.
Top
#129623 - 2004-11-16 05:15 PM Re: Running a VBS script (AutoIT) in KiXtart
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
Damn, Shawn's wife was right!
Top
#129624 - 2004-11-17 03:43 AM Re: Running a VBS script (AutoIT) in KiXtart
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
You could even use the VBScript-2-KiXtart UDF to automatically convert the script ;-)
_________________________
There are two types of vessels, submarines and targets.

Top
#129625 - 2004-11-17 03:53 AM Re: Running a VBS script (AutoIT) in KiXtart
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
But he won't learn anything about KiXtart & COM if he does that.
Top
#129626 - 2004-11-17 08:33 AM Re: Running a VBS script (AutoIT) in KiXtart
Anonymous
Unregistered


Quote:

But he won't learn anything about KiXtart & COM if he does that.




Don't worry, I've got a 292 paged AutoIT manual and a 124 paged KiXtart manual I still have to read through . Although we read the main parts about the strings we need to use already.
We will be trying to finish the vbs code today and I might post it here later! Thank you for the help provided already!

Top
#129627 - 2004-11-17 02:03 PM Re: Running a VBS script (AutoIT) in KiXtart
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
So I guess that means you won't be converting it to Kixtart ? This vbscript can't be anymore than four of five lines of code, ja ?

-Shawn

Top
#129628 - 2004-11-17 03:07 PM Re: Running a VBS script (AutoIT) in KiXtart
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
We've covered AutoIt and BlockInput on this board before. You can find an example if you do a search. Shawn's correct, it would only be a couple of lines to add the BlockInput function directly into your main script without the need to call an outside script.
Top
#129629 - 2004-11-18 09:31 AM Re: Running a VBS script (AutoIT) in KiXtart
Anonymous
Unregistered


Quote:

So I guess that means you won't be converting it to Kixtart ? This vbscript can't be anymore than four of five lines of code, ja ?

-Shawn




I did not say that, I'm trying to finish the AutoIT code to convert it to KiX later on

Top
#129630 - 2004-11-18 09:38 AM Re: Running a VBS script (AutoIT) in KiXtart
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
that should be no problem if you use AutoIT 3x ... Syntax looks suspiciously similar
_________________________



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 507 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.057 seconds in which 0.023 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