Pulover Macro Creator: Unable to Activate Window

Advanced Macro Recorder/Editor.

Moderator: Pulover

ParisPulvinar
Posts: 26
Joined: 27 Mar 2017, 07:45

Pulover Macro Creator: Unable to Activate Window

27 Mar 2017, 07:53

I'm using Pulover Macro Creator (PMC) and I am unable to activate one window when it has been minimized. It works when the window is not minimized. I have tried WinActivate, WinRestore, and WinMaximize. I have tried to get PMC to left click on the icon on the taskbar for the window but PMC is not able to recognize the icon and only selects the entire taskbar. I also tried using the image recognition tool to select the icon image but PMC also did not recognize the icon image. I noticed that when I minimize the window the title of the window is different. I wonder if the window has different identifiers when it is minimized but do not know how to get the identifiers when it is minimized.
User avatar
boiler
Posts: 1850
Joined: 21 Dec 2014, 02:44

Re: Pulover Macro Creator: Unable to Activate Window

27 Mar 2017, 10:32

Run this script (replacing "YourWindowTitleHere" with the title of your window) when your window is visible, then minimize it, and it should show you the title after it becomes minimized. Your other option is to get the ID (Hwnd) of the window before it's minimized since it should remain the same after it's minimized, so you can still refer to as that like this script does. I don't know enough about PMC to tell you exactly how you do that in there, but I would think you can.

Code: [Select all] [Download] GeSHi © Codebox Plus

WinGet, ID, ID, YourWindowTitleHere
Loop
{
WinGetTitle, WinTitle, ahk_id %ID%
ToolTip, Window title:`n %WinTitle%`n(Press Esc to exit)
Sleep, 100
}
return

Esc::ExitApp
ParisPulvinar
Posts: 26
Joined: 27 Mar 2017, 07:45

Re: Pulover Macro Creator: Unable to Activate Window

29 Mar 2017, 21:21

I tried using the Title and the ID with the window minimized but I still can't restore the window. Any ideas?
User avatar
boiler
Posts: 1850
Joined: 21 Dec 2014, 02:44

Re: Pulover Macro Creator: Unable to Activate Window

29 Mar 2017, 22:09

When it's minimized, do you use the title that it changes to after it's minimized? Can you give some specifics of the window and your script?

Return to “Pulovers Macro Creator”

Who is online

Users browsing this forum: No registered users and 1 guest