Always navigate to 3rd Tab (Details) in Photo Viewer

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
reverberation
Posts: 314
Joined: 13 Dec 2015, 20:48

Always navigate to 3rd Tab (Details) in Photo Viewer

28 Oct 2017, 00:49

Please see the screenshot and my code below for reference. I want to have a quick view on photo details. However with my code and because windows photo viewer saves where it last left off, using tabs to get there doesn't work. How can i improve it to make it always go to Details tab?

Image

Code: Select all

#If WinActive("ahk_class Photo_Lightweight_Viewer") ;Windows Photo Viewer Shortcuts
\:: ;view EXIF of photo
Send !{Enter}
Sleep 250
Send ^{tab 2}
Send {Down}
return 
User avatar
Xtra
Posts: 2750
Joined: 02 Oct 2015, 12:15

Re: Always navigate to 3rd Tab (Details) in Photo Viewer

28 Oct 2017, 02:41

Code: Select all

#NoEnv
#SingleInstance Force
SetTitleMatchMode, 2

#If WinActive("ahk_class Photo_Lightweight_Viewer") ;Windows Photo Viewer Shortcuts
\::    ; view EXIF of photo
	Send !{Enter}
	WinWait, Properties
    SendMessage, 0x1330, 2,, SysTabControl321, Properties
return
HTH
reverberation
Posts: 314
Joined: 13 Dec 2015, 20:48

Re: Always navigate to 3rd Tab (Details) in Photo Viewer

24 Nov 2017, 02:23

Hi there, with your code, it still displays "General" tab instead of Details tab. any idea why?
User avatar
Xtra
Posts: 2750
Joined: 02 Oct 2015, 12:15

Re: Always navigate to 3rd Tab (Details) in Photo Viewer

24 Nov 2017, 14:21

Works here could try adding a sleep between winwait and sendmessage.
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: Always navigate to 3rd Tab (Details) in Photo Viewer

24 Nov 2017, 16:10

Does AHK have to be run as admin?
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: ccqcl, Descolada, inseption86, mikeyww and 381 guests