Jump to content
Sign in to follow this  

Problem controlling a XnView slideshow

Recommended Posts


Hey all, I am trying to create a program that kicks off and then controls an XnView slideshow. However, I am having some issues that are baffling me.

Firstly, I kick off the slideshow with a simple run command:


Then, I do some other stuff in another window, and want to come back to the slideshow window and move to the next slide by pressing the right arrow:

$winactivatething = WinActivate("C:\test\slide1.gif","")
If $winactivatething = 0 Then
    MsgBox(0, "Can't activate image display window. AAARGH!", )

;send right arrow for next screen
Send ("{RIGHT}")

I know that the window title is "C:\test\slide1.gif" from Autoit window Info, but it does not work: the WinActivate seems to fail, generating the error message box.

Any ideas what I am missing here?

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.