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:
Run("C:\test\slides.exe")
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!", )
Exit
EndIf
;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?
Problem controlling a XnView slideshow
Ask for help and post your question on how to use XnView Classic.
Moderator: xnview
Return to “Classic - General Support”
Jump to
- General
- ↳ Info & Forum
- ↳ XnView - FAQ
- ↳ Miscellaneous
- XnView MP
- ↳ MP - Announcements
- ↳ MP - General Support
- ↳ MP - Bug reports
- ↳ New
- ↳ Reproduced - TODO
- ↳ Fixed in next version
- ↳ Retest
- ↳ Postponed
- ↳ Closed/Resolved
- ↳ MP - Suggestions
- ↳ MP - General [Français]
- XnView Classic
- ↳ Classic - General Support
- ↳ Classic - Bug Reports
- ↳ Classic - Suggestions
- ↳ Classic - General [Français]
- XnView Family
- ↳ XnConvert
- ↳ XnResize
- ↳ XnRetro, XnSketch, ...
- ↳ NConvert
- ↳ XnView Shell Extension
- ↳ Android & iOS: XnPhotoFx, XnRetro, XnSketch, ...
- ↳ XnView Pocket
- ↳ GFL SDK
- Contribution
- ↳ Customization
- ↳ Documentation
- ↳ XnView MP - Translation
- ↳ XnView Classic - Translation
- ↳ Testing - Closed/Solved
- ↳ 1.96 Testing - Feedback
- Archive
- ↳ XnView Un*x
- ↳ XnView Mac OS X
- ↳ Classic - Resolved Bugs & Requests
- ↳ MP - Resolved Bugs & Requests
- ↳ MP – Beta Testing
- ↳ New