AutoHotkey V2 Beta 4 on Windows 11
I am trying to locate the three zoom controls in Outlook as circled in red below, I am half blind and cannot easily read the emails or locate the zoom controls. The goal is to set the Reading Pane to a zoom level of 130%
Is there a better way to locate these controls than relative position?
Using relative positioning works some of the time but is not reliable.
;Move the Outlook cursor to the zoom control, reset it 100% and magnify the reading pane 130%.
WinGetPos &X, &Y, &WinWidth, &WinHeight, "A" ;Active Window
MouseClick "Left", WinWidth - 265, WinHeight - 41, 3 ;Set 100% zoom level - Center the slilder
MouseClick "Left", WinWidth - 154, WinHeight - 41, 3 ;Set 130% zoom level - Click the plus sign three times
I always know the size and position of the window but that does not consistently help.
WinMove ((WRight - WinWidth)/2), ((WBottom - WinHeight)/2)
Thanks for your help! CraigM
I found a away to use VBA (which comes with Outlook) in Outlook to increase the Preview Pane zoom settings permanently. It takes 30 -45 minutes to implement if you are not familiar with VBA for Applications like me.
Software: Windows 11, Microsoft Office Professional Plus.
The Redemption plugin is not needed. No additional software is needed.
You need to enable the Developer tools on the Outlook ribbon to access VBA. Right click on the ribbon, then "Customize Ribbon", and place a check next to "Developer tools"...then click Ok. On the new Developer tab in Outlook, click Visual Basic and you are off to the races!
The Microsoft solution has a misspelling in it, you need to read the comments to guide you through the set up.
Outlook 2010 reading pane option - want to permanently adjust the zoom setting.
I used the original script (there are several versions by different people) and fixed the misspelling of Quite to Quit...without the e.
The Microsoft Word 16.0 Object Library has to be enable in the Tools - References in the VBA editor.
Then close and restart Outlook. I manually set the zoom level of the Preview Pane with the slider at the bottom right corner of Outlook. Then I restarted Outlook again and the same zoom level (130%) appeared in the Preview Pane. It still works after a complete shut down.
I then went into Outlook's Trust Center Settings Macro Settings to ensure "Notifications for all macros" was set (File - Options - Trust Center - Trust Center Settings - Macros). This causes Outlook to warn you about unsigned macros when it starts up.
Then I digitally signed the macro by using Microsoft's preinstalled SelfCert.exe to create a Digital Certificate. It is almost too simple to do. Follow the link below then under "Get a digital certificate" (near the top) there is a drop down for "Use a self-signed certificate". Use this option and follow the simple directions.
Digitally sign your macro project
Then back in Outlook VBA in the Tools menu I went into the Digital Signatures section, under "Choose" you click "More Choices" and scroll to and select your newly minted digital certificate.
I then went back into Outlook's Trust Center under "Macros" and selected Notifications for digitally signed macros, all other macros disabled.
Now I am no longer warned about the macro when Outlook starts and the Preview pane is zoomed to 130%.
To be clear, I did not edit this line in the macro, I left it alone.
wdDoc.Windows(1).Panes(1).View.Zoom.Percentage = 140
Good hunting, I hope this helps.
CraigM
The Outlook object model doesn't provide anything for that out of the box. As a possible workaround you may try using Microsoft Active Accessibility to find out the zoom level. Microsoft Active Accessibility is a Component Object Model (COM)-based technology that improves the way accessibility aids work with applications running on Microsoft Windows. It provides dynamic-link libraries that are incorporated into the operating system as well as a COM interface and API elements that provide reliable methods for exposing information about UI elements.
Note, you can use the Word object model to get and set the current zoom level:
Related
I support several Visual Studio 2012 MFC applications, and all of them are exhibiting the same bad behavior on Windows 10 only: resizing a docked pane (via mouse) leaves artifacts, i.e. garbage on the screen. The garbage looks like a series of lines that correspond to the intermediate positions of the pane edge being dragged. I can reproduce this behavior with a stock VS 2012 application, which proves that it's got nothing to do with my code. Here are simple instructions for replicating the bug.
In the VS 2012 New Project Wizard, select MFC Application and press OK. Accept the defaults for all options EXCEPT ONE: On the very last page (Generated Classes), change the Base class from CView to CScrollView. Then press Finish.
Now make the following edit. Find the line "// TODO: calculate the total size of this view" in OnInitialUpdate, in the view .cpp file. Change the size from 100 to 2000. The only purpose of this change is to ensure that the view has scrollbars.
Now run the resulting app under Windows 10. Try resizing the docked panes. Do you see the artifacts? They generally appear when the scroll view is getting BIGGER. Why is this happening? Would migrating to VS 2017 solve it? Or is Windows 10 now incompatible with MFC? Ever since I migrated to the "new" MFC (BCGSoft) features, I've been worried that their code is too complex and would break in some future release of Windows. It sure looks as if I was right to fear this.
In my MFC app, I'm attempting to make a window that resembles the Windows 7 Open File dialog, but it browses a virtual/fake file system. It doesn't need to be pixel-perfect, but I'd like parity with the native OS dialog where possible.
Probably the most challenging part is the address bar the runs along the top of an Open dialog. The address bar control is also atop all Windows Explorer windows. It shows the folder names that make up your path. It shows and hides buttons when moused over (including an attractive fade animation), changes the active directory when names are clicked, and shows submenus when the triangles between names are clicked. This doesn't seem to correspond to any MFC control (or group of controls). Spy++ shows it as an "AddressDisplay Control" but I can't find much documentation beyond that.
Is there a way to access a control like this, or to mimic it, in MFC? Also, I am not browsing the real file system, so I have to be able to tell the control what to display--I can't just point it at C:\ and let the system do the rest.
Here's a picture of the control in question.
Unfortunately, I think this is one of those controls that Microsoft has decided not to expose to developers through the Feature Pack. The Feature Pack was developed from the BCG control library. And, that library contains the control you want. However, it's not free. The only other alternative is to code it yourself.
I noticed the following feature of the "buddy list" window of pidgin on windows: If you drag the window not far from the top right corner of the desktop, the following things happen:
The appearance of the border slightly changes:
Before:
After:
It docks on the right of the desktop
And here is the most interesting: it reserves the space on the desktop. All other maximized windows are reduced by the width of pigin window. All other windows behave as if the width of the desktop was shorter by the width of the pidgin window
Q: What is the name of the feature implemented by the last point ?
You create custom toolbars that the desktop observes when it calculates the working area with the SHAppBarMessage() api function. Check the MSDN Library page for documentation, it also googles really well to find sample code.
its called docking. Microsoft one-note has the same feature.
Is it possible to quickly hide what's on a particular monitor in Visual Studio? Similar to Norton Commander where you could easily hide left or right panel, I want to quickly hide all panels on one of the monitors to see behind them. Is it possible, maybe with a plugin?
Yes, you can.
For that, you need Visual Studio Professional and Productivity Power Tools extension. (You can install it with VS2010 Extension Manager)
PPT allows Floating Tab Wells: You can dock floating document windows on a separate monitor just like tool windows. There’s also an option now which allows you to open documents as floating by default.
Every Tab group has a minimize button. You can minimize the main window without minimize the tab floating panel, and vice-versa.
In my case, I have my main window at left and floating tab at right. If I want to see behind my right monitor, I just minimize the tab group only. With that I see the code at main window and whatever has behind the tab at right side.
For more information: http://blogs.msdn.com/b/visualstudio/archive/2010/06/10/document-well-2010-plus.aspx
Hope this helps.
Many mice and keyboards have "zoom" buttons on them. These almost always generate Ctrl+Mouse Wheel messages to the applications, so they are easily accounted for by us programmers.
But my current Logitech mouse has an additional feature. The zoom wheel indeed sends Ctrl+Mouse Wheel messages when scrolled (or, actually, tilted), but when I depress the zoom wheel, most programs restore the zoom level to the default, i.e. 100 %. What kind of message does the mouse send to the application in this case? I cannot find a suitable virtual key code for it.
I should probably say that I have tried to capture this event. In my Delphi application, I wrote handlers for the KeyDown, MouseDown, and MouseWheel events, but non of them are triggered by this mysterious button.
Applications that support this button:
Google Chrome 5.0.375.127
Microsoft Word 2010
Applications that seem not to support this button:
Microsoft WordPad in Windows 7
Microsoft Paint in Windows 7
There is no dedicated shortcut key-stroke or Windows message. Odds are pretty good that the mouse helper has specific awareness of the process that has the focus. And generates the specific command that this program needs to reset the zoom, possibly a WM_COMMAND message. Use a tool like Microsoft's Spy++ to see what messages are generated, if any.
I have a Logitech M570 and downloaded 'set point'.
Not all mice / trackballs have this feature, dead giveaway is having a 'forward / back' button on your mouse or trackball. If you can get 'set point', there are programmable button / wheel options.
find your mouse or trackball on their product page, then, > support > (your mouse), > downloads
If your device can use 'set point', see download button window on the left, insure your Windows version.
Select 'set point'
at the bottom of the window, hit download, go through wizard steps. Download may be fast or take a while.
If it looks like it successfully downloaded, > control panel > mouse. You will see 'mouse properties', look for set point tab.
Try programming 'ctrl' on your 'depress' mouse wheel or 'tilt' button.
I'm a writer, I love my M570 wireless trackball!