Get your own customer support community
 

How to set window title when document (MDI) is not maximized

Hi @all,

Here's a little AHK script that sets the window title in Adobe Acrobat 7 when working with multiple and/or not maximized windows, in order that Slife can recognize the subwindows title accordingly.

It would be great if this idea could be picked up by the development team and made standard in all programs that show the same behaviour (i.e. not displaying the documents title when the document (MDI window) is not maximized.

Cheers David.P

;###########################
;###########################
SetTitleMatchMode, 2
DetectHiddenText, Off
#Persistent
#SingleInstance force
SetTimer AcrobatTitle, 3333 ;repeat every ~3 seconds
Return

;###########################
; Set Acrobat Title if Multiple Acrobat MDI Subwindows Present
;###########################

AcrobatTitle:
IfWinActive, Adobe Acrobat, .pdf
{
WinGetText, AcrobatWindowText, Acrobat Professional ;Get visible text from Acrobat's window
StringLen, StringLength, AcrobatWindowText ;Strip everything but the documents title from the text obtained
StringGetPos, RightCut, AcrobatWindowText, .pdf
StringTrimRight, AcrobatWindowTextTrimmedRight, AcrobatWindowText, StringLength-RightCut
StringGetPos, LeftCut, AcrobatWindowTextTrimmedRight, AVToolBarView, R
StringTrimLeft, AcrobatDocumentTitle, AcrobatWindowTextTrimmedRight, LeftCut+15
WinSetTitle, Adobe Acrobat Professional - %AcrobatDocumentTitle% ;Set Acrobat's titlebar text accordingly
}
Return
;###########################
;###########################
 
happy I’m excited
Inappropriate?
2 people like this idea

User_default_medium