Jump to content

Calling a KiX script file in AutoIT


Recommended Posts

Guest Sypheron
Posted

I'm trying to call a KiX script file to run in AutoIT, but every try results in an error message.

Here's a piece of the code:

Blockinput (1)

Run("kix32.exe lotusnotes.kix", "", @SW_MAXIMIZE)

Blockinput (0)

Sleep (3000)

Msgbox (48, "Installatie is voltooid!", "De installatie is succesvol voltooid!")

It's an automated installation script for Lotus Notes, but when I try to use this file, it gives the following error in a DOS box:

Error: Failed to find/open script!

It continues to execute the AutoIT script though, and pops up the message box in the end.

Any ideas would be more than welcome!

Thank you in advance!

Guest Sypheron
Posted

You mean something like: "C:\install\kix32.exe lotusnotes.kix" ?

I tried that and it's not working either

Posted (edited)

If the AutoIt script is in the same folder as lotusnotes.kix use this:

Blockinput (1)
Run("C:\install\kix32.exe lotusnotes.kix", @ScriptDir, @SW_MAXIMIZE) 
Blockinput (0)
Sleep (3000)
Msgbox (48, "Installatie is voltooid!", "De installatie is succesvol voltooid!")
Edited by SlimShady
Guest Sypheron
Posted

Thank you, working perfectly fine!

But now there's a new problem.

Is there any way I can still give KiX script rights to use input devices? Because I only want to block the keyboard and mouse for the user, but not for the KiX script.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...