I would like to hook into an Office application just before the print properties dialog is opened (the dialog where you choose the paper, printer, etc.).
Which Windows API opens this dialog?
Here are some links which document this
http://support.microsoft.com/kb/167345
http://msdn.microsoft.com/en-us/library/dd183576%28VS.85%29.aspx
and this SO question:
How to show printer properties/preferences dialog and save changes?
Related
To access and control a window, dialog or popup with Autohotkey the title of that specific window is needed. For some windows the title can be read directly if its visible, but some windows hide it. The window class and the exe (ahk_class and ahk_exe) aren't visible at all. How to gather this information reliable?
Use the Window Spy tool, which is installed together with AHK, it can be started various ways:
Right click the tray icon of a running AHK script and select Window Spy
Start the AU3_Spy.exe in the AHK installation folder
Use the Windows search to search for Window Spy
You will get a window called Active Window Info with various infos about your current active (topmost) window. The first box is the one you need.
Example
The box gives title, class and .exe to detect the target window of which every line can be used to identify the window. Now you should activate the window you want to address and copy the information.
Hint: You can (un-)freeze the display with Win + A
I am testing a chat client at a web service. I thought the best way to do this was to open the website in one internet explorer window, log in, open the chat. Then open a new IE window(in private mode so that the log in details will be forgotten) go the the page and then log in with another user and open the chat, and then start chatting with the other user in the other browser window.
The problem is when I have done everything in the first window and I open a new window, all actions are triggered in the first window even though the second window is selected. Is there any way to select which browser window to use? Or are there better ways to test this functionality without opening two internet explorer windows?
Solved: I solved this by opening a new window in private mode. When I wanted to do actions in that window I defined the browser window as:
BrowserWindow privateWindow = new BrowserWindow();
privateWindow.SearchProperties.Contains("[InPrivate]");
You need to find some characteristic of the two IE windows that is different and ensure that it is included in the search criteria used to find the two windows. However modern browsers are complex, the distinction between windows and tabs it not always clear; window titles can change depending on which tab is selected.
Specific windows are selected by setting the properties of the UITestControl objects (and of derived objects). In the UI Map editor the properties panel has fields for the "Windows Title" and the "Search Criteria". For some controls there is also a "Filter Properties" field. The same fields are available if hand coding rather than recording tests.
I'm developing a windows phone app and I want to pop up a dialog when a button is clicked.That dialog will be custom and contain some information. In android it is simple, could I do it in windows phone?
You can make use of popup control create a UI element of your need and add as child to the popup window and make the isopen property to true to show the dialog. For more information look here http://msdn.microsoft.com/en-us/library/system.windows.controls.primitives.popup%28v=vs.95%29.aspx
Does anyone know where I can find a list of available applescript commands/properties for Microsoft Outlook 2011?
I am trying to copy subject of the opened message into the clipboard and save the message as PDF to my desktop with subject as the file name.
Thanks.
All applications that are apple-scriptable have a "dictionary" of terms as part of the application itself. To access a dictionary open AppleScript Editor, under the File menu choose "open dictionary", and then choose the application.
A second way would be to drag/drop the application onto the AppleScript Editor icon in the dock or applications folder.
A third way... under the Window menu in AppleScript Editor choose "Library". That window is a quick-access tool to access the dictionaries of various applications. You can click the "+" button to add applications not in that list. Double-click an application in the list to access its dictionary.
A 4th way... if AppleScript Editor and the application you are interested in are both in the dock, you can command-drag the application's dock icon onto the AppleScript Editor's dock icon.
When trying to open Outlook 2007 on Windows Server 2003, I get this error message:
“A dialogue box is open. Close it and try it again.”
I try and open Outlook in safe mode by using outlook /safe (in the Run command) and it works fine after it says configuring outlook accounts "Please enter your full name and initials below" (the full name and intials fields are already prefilled) and I click the OK button on the same and I answer the RSS Feeds subscription as either Yes or No.
Once I try closing and reopening Outlook, again I see the same error message as “A dialogue box is open. Close it and try it again.”
This does not let me open any new window to send emails. How can I fix whatever is causing this error?
It could possibly be due to an add-in that is acting up. Try to determine which add-in it is by disabling them one by one until it is identified. To disable an add-in, go to the Tools menu, click Trust Center, and then click Add-ins. A list of add-ins are listed. For each Type of add-in you see, choose them in the Manage listbox at the bottem and click Go. Uncheck the add-in to disable it.
Try using Task Manager to end any other Outlook processes, then try opening it again. Your problem could be due to a non-responsive Outlook process, or a background one.
Good luck!
Do you happen to use a virtual window manager (like virtuawin or bbbLean)? If so, you may not see the modal dialog box as it is in another virtual window and Outlook will not accept any input. It happens to me often and at first I was frustrated that Outlook 'hangs' frequently and is not a robust app. For me it was dialog box that said something like "Do you want to auto-archive the folder?".
The dialog box may also be hidden behind the main window. You can try using Alt-TAB to cycle through you windows and you should see the dialog box.
This was caused by a windows update on windows 2003 server.
I did a system restore to an earlier point and it worked fine. Thanks for the support.