Jump to content
Sign in to follow this  
Guest Sypheron

Calling a KiX script file in AutoIT

Recommended Posts

Guest Sypheron

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!

Share this post


Link to post
Share on other sites
Guest Sypheron

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

I tried that and it's not working either

Share this post


Link to post
Share on other sites
SlimShady

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

Share this post


Link to post
Share on other sites
Guest Sypheron

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.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.