Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Problem with FindWindow

If you have a question or need help, this is the place to be.
Post Reply
SuperManni72
Posts: 2
Joined: Mon Sep 24, 2012 8:53 am

Problem with FindWindow

Post by SuperManni72 »

Hello,

i am using EG 0.4.1.r1582 on Windows 7 Ultimate 64bit SP1 (german version). When i try to add the action "Find Window", the following log-entries will appear and no action was added:

Code: Select all

Traceback (most recent call last) (1582):
  File "C:\Program Files (x86)\EventGhost\eg\Classes\TaskletDialog.py", line 59, in ProcessingTask
    self.Configure(*args, **kwargs)
  File "C:\Program Files (x86)\EventGhost\eg\Classes\ConfigDialog.py", line 165, in Configure
    treeItem.Configure(*args)
  File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionItem.py", line 101, in Configure
    return self.executable.Configure(*args)
  File "C:\Program Files (x86)\EventGhost\plugins\Window\FindWindow.py", line 269, in Configure
    self.tree = eg.WindowTree(panel, includeInvisible=includeInvisible)
  File "C:\Program Files (x86)\EventGhost\eg\Classes\WindowTree.py", line 80, in __init__
    self.AppendPrograms()
  File "C:\Program Files (x86)\EventGhost\eg\Classes\WindowTree.py", line 129, in AppendPrograms
    self.pids[pid].append(hwnd)
KeyError: 4128L
How to solve this ? I need the FindWindows.
The problem occur always (also on fresh reboot) and yes, i have startet EG with admin-rights.

Thanks and Regards,
SuperManni
eatmeimadanish
Experienced User
Posts: 118
Joined: Thu Oct 01, 2009 5:11 pm

Re: Problem with FindWindow

Post by eatmeimadanish »

So a couple things, one I never run EG from program files directory. Way to annoying in windows. Just use a folder in the root of c (C:\Apps\Evengthost) and make sure you have full rights to it. Second, I see this error when it can not find the PID for the window ID, this is usually blocked by DAE or UAC. My suggestion is to turn that off. You can do this via regedit through the following registry subkey:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
In the details pane, locate the EnableLUA key (REG_DWORD type). On the Edit menu, click Modify. In the Value data box, type 0 (zero), and then click OK.
Reboot.
Post Reply