Re: TaskMonitorPlus plugin - v0.0.4
Posted: Sat Sep 09, 2017 4:37 am
Small video... Same with new clean profile...
Code: Select all
print "GetWindowText() for PID: {}, Name: {}".format(self.pid, self.name)
if wx.GetProcessId() != self.pid:
self.cached_title = GetWindowText(hwnd)
else:
self.cached_title = ''
print "WindowText =", repr(self.cached_title)
Huh, that's weird. I've restarted EG many times in my testing and never hit that problem. But thanks for the fix! I'll whip up a new release in a few hours or so to include it.topix wrote:I've updated to TMP 0.4. I had the plugin deactivated and now wanted to activate it, but EG hangs. I did some testing and the result is: In WindowInfo() the call to cFunctions GetWindowText() hangs when it should get the text for it own PID. Here is a code snippet i used to replace/extend the call to GetWindowText in WindowInfo:[snip]
Code: Select all
ourName = '['+eg.APP_NAME+']'Code: Select all
ourName = '[' + eg.mainFrame.GetTitle() + ']Code: Select all
21:14:39: 0 MainThread: ----------------------------------------
21:14:39: 0 MainThread: EventGhost started
21:14:39: 0 MainThread: ----------------------------------------
21:14:39: 0 MainThread: EventGhost Version: 0.5.0-rc4
21:14:39: 0 MainThread: Machine type: AMD64
21:14:39: 0 MainThread: Processor: Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
21:14:39: 0 MainThread: Architecture: ('32bit', 'WindowsPE')
21:14:39: 0 MainThread: Python: 2.7.12 CPython ('default', 'Oct 31 2016 18:42:08') [MSC v.1500 32 bit (Intel)]
21:14:39: 0 MainThread: ----------------------------------------
21:14:40: 0 MainThread: PluginManager.ScanAllPlugins :0.8820862049714818
21:14:40: 0 MainThread: SendKeysParser.__init__()
21:14:40: 0 EventGhost.Pipe.Thread: Named Pipe: Creating security descriptor
21:14:40: 0 EventGhost.Pipe.Thread: Named Pipe: Creating pipe
21:14:40: 0 MainMessageReceiver: MainMessageReceiver.__MainLoop()
21:14:40: 0 MainMessageReceiver: MainMessageReceiver.Setup()
21:14:40: 0 MainThread: Document.ShowFrame()
21:14:40: 0 MainThread: Log.GetData()
21:14:40: 0 MainThread: Document.ShowFrame => None
21:14:40: 0 ActionThread: ActionThread.__MainLoop()
21:14:40: 0 EventThread: EventThread.__MainLoop()
---> Welcome to EventGhost <---
21:14:42: 0 EventThread: EventThread.StartSession(filename=u'P:\\Profiles\\EventGhost\\Rino-HT 4.0.xml')
21:14:42: 0 ActionThread: ActionThread.StartSession(filename=u'P:\\Profiles\\EventGhost\\Rino-HT 4.0.xml')
21:14:42: 0 Thread-1: SessionChangeNotifier.Register()
21:14:42: 0 MouseThread: MouseThread.run()
21:14:42: 0 ActionThread: Document.Load(filePath=u'P:\\Profiles\\EventGhost\\Rino-HT 4.0.xml')
21:14:42: 1 MainThread: OSDFrame.__init__(parent=None)
21:14:42: 0 ActionThread: StartLoad(cls=<class 'eg.Classes.TreeLink.TreeLink'>)
21:14:42: 0 MainMessageReceiver: PowerBroadcastNotifier.OnPowerBroadcast(hwnd=330544, uMsg=536L, wParam=32787L, lParam=5477760)
21:14:42: 0 MainMessageReceiver: PowerBroadcastNotifier.OnPowerBroadcast(hwnd=330544, uMsg=536L, wParam=32787L, lParam=5476992)
21:14:42: 0 MainMessageReceiver: PowerBroadcastNotifier.OnPowerBroadcast(hwnd=330544, uMsg=536L, wParam=32787L, lParam=5477152)
21:14:42: 0 MainMessageReceiver: PowerBroadcastNotifier.OnPowerBroadcast(hwnd=330544, uMsg=536L, wParam=32787L, lParam=5356896)
21:14:42: 0 ActionThread: Document.SetExpandState(expanded=set([0, 1, 4, 7, 128, 12, 143, 67, 22, 23, 132, 27, 34, 42, 46, 50, 437, 54, 58, 62, 194, 195, 196, 197, 455, 456, 457, 76, 80, 87, 217, 438, 105, 109, 113, 120, 124]))
21:14:42: 0 ActionThread: XML loaded in 0.182331 seconds.
21:14:42: 1 MainThread: TreeCtrl.OnItemCollapsingEvent(event=<wx.TreeEvent>)
Autostart
Run Application: nircmd.exe
Plugin: Microsoft MCE Remote (Vista+)
21:14:42: 0 ActionThread: MCE_Vista.__start__()
21:14:42: 0 Thread-5: MceMessageReceiver.__call__()
Plugin: Desktop Remote
MCE_Vista: Connected to MceIr pipe, started handling IR events
Plugin: SchedulGhost
Plugin: AudioEndpoint
Audio Endpoint plugin started.
Plugin: TrayTip
21:14:42: 0 ActionThread: ActionThread.StartSession => None
21:14:42: 1 MainThread: MainFrame.OnClose(dummyEvent=<wx.CloseEvent>)
21:14:42: 1 MainThread: MainFrame.Iconize(flag=True)
21:14:42: 1 MainThread: Document.HideFrame()
21:14:42: 1 MainThread: MainFrame.Destroy()
System.PowerProfile.Balanced
MceRemote.Connected
AudioEndpoint.Default.Render.Console.ðöð©ð¢ð░ð╝ð©ð║ð© (Display Audio) [u'{0.0.0.00000000}.{b077439b-ba23-4465-9a29-275021e3ac29}']
AudioEndpoint.Default.Render.Multimedia.ðöð©ð¢ð░ð╝ð©ð║ð© (Display Audio) [u'{0.0.0.00000000}.{b077439b-ba23-4465-9a29-275021e3ac29}']
AudioEndpoint.Default.Render.Communications.ðöð©ð¢ð░ð╝ð©ð║ð© (Display Audio) [u'{0.0.0.00000000}.{b077439b-ba23-4465-9a29-275021e3ac29}']
AudioEndpoint.Default.Capture.Console.ð£ð©ð║ÐÇð¥Ðäð¥ð¢ (Display Audio) [u'{0.0.1.00000000}.{f52b8d20-6bd8-4037-a213-2d6c0fb8605f}']
AudioEndpoint.Default.Capture.Multimedia.ð£ð©ð║ÐÇð¥Ðäð¥ð¢ (Display Audio) [u'{0.0.1.00000000}.{f52b8d20-6bd8-4037-a213-2d6c0fb8605f}']
AudioEndpoint.Default.Capture.Communications.ð£ð©ð║ÐÇð¥Ðäð¥ð¢ (Display Audio) [u'{0.0.1.00000000}.{f52b8d20-6bd8-4037-a213-2d6c0fb8605f}']
Main.OnInit
Initialization
Play Sound: P:\Profiles\EventGhost\Speech Off.wav
21:14:42: 1 MainThread: LogCtrl.Destroy()
21:14:42: 1 MainThread: TreeCtrl.Destroy()
21:14:42: 1 MainThread: StatusBar.Destroy()
21:14:42: 1 MainThread: StatusBar.__del__()
21:14:42: 1 MainThread: MainFrame.Destroy => True
21:14:42: 1 MainThread: Document.HideFrame => None
System.PowerSaving.Off
System.PowerSource.Line
21:14:42: 1 MainThread: LogCtrl.__del__()
System.Monitor.On
21:14:42: 1 MainThread: MainFrame.__del__()
21:14:46: 1 MainThread: Document.ShowFrame()
21:14:46: 1 MainThread: Log.GetData()
21:14:46: 1 MainThread: TreeCtrl.OnItemCollapsingEvent(event=<wx.TreeEvent>)
21:14:46: 1 MainThread: Document.ShowFrame => None
21:16:02: 0 EventGhost.Pipe.Thread: Named Pipe: Data received
21:16:02: 1 MainThread: Named Pipe: Command: eg.namedPipe.ping, Parameters: ()
21:16:02: 0 EventGhost.Pipe.Thread: Named Pipe: return data: pong
21:16:02: 0 EventGhost.Pipe.Thread: Named Pipe: Creating pipe
21:16:02: 0 EventGhost.Pipe.Thread: Named Pipe: Data received
21:16:02: 1 MainThread: Named Pipe: Command: eg.PluginInstall.Import, Parameters: (u'd:\\service\\temp\\taskmonitorplus-0.0.5.egplugin',)
21:16:02: 1 MainThread: PluginInstall.Import(filepath=u'd:\\service\\temp\\taskmonitorplus-0.0.5.egplugin')
21:16:12: 1 MainThread: PluginOverviewDialog.Destroy()
21:16:12: 1 MainThread: PluginInstall.Import => None
21:16:12: 0 EventGhost.Pipe.Thread: Named Pipe: return data: None
21:16:12: 0 EventGhost.Pipe.Thread: Named Pipe: Creating pipe
21:16:49: 2 MainThread: GetModalResult(cls=<class 'eg.Classes.AddPluginDialog.AddPluginDialog'>)
21:16:49: 3 MainThread: AddPluginDialog.Configure(parent=<eg.Classes.MainFrame.MainFrame; proxy of <Swig Object of type 'wxFrame *' at 0x3de50c0> >)
21:16:49: 3 MainThread: AddPluginDialog.__init__(style=536877120)
21:16:49: 3 MainThread: AddPluginDialog.__init__ => None
21:16:49: 3 MainThread: PluginManager.ScanAllPlugins :0.7206548556678172
21:16:49: 3 MainThread: AddPluginDialog.Affirmed()
21:17:01: 2 MainThread: AddPluginDialog.OnOK(event=<wx.CommandEvent>)
21:17:01: 2 MainThread: AddPluginDialog.DispatchEvent(event=<wx.CommandEvent>, eventId=5100)
21:17:01: 3 MainThread: AddPluginDialog.Affirmed => 5100
21:17:01: 3 MainThread: AddPluginDialog.SetResult()
21:17:01: 3 MainThread: AddPluginDialog.SetResult => None
21:17:01: 3 MainThread: AddPluginDialog.Affirmed()
21:17:01: 3 MainThread: AddPluginDialog.Affirmed => False
21:17:01: 3 MainThread: AddPluginDialog.Configure => None
21:17:01: 2 MainThread: AddPluginDialog.DispatchEvent => None
21:17:01: 2 MainThread: AddPluginDialog.OnOK => None
21:17:01: 2 MainThread: AddPluginDialog.Destroy()
21:17:01: 2 MainThread: GetModalResult => (<eg.Classes.PluginModuleInfo.PluginModuleInfo object at 0x04EC2770>,)
21:17:01: 2 MainThread: NewPlugin.Do(pluginInfo=<eg.Classes.PluginModuleInfo.PluginModuleInfo object at 0x04EC2770>)
21:17:01: 0 ActionThread: AutostartItem.AddChild(child=<eg.Classes.Document.PluginItem object at 0x051E5190>, pos=-1)
Plugin: Task Monitor Plus
21:17:01: 2 MainThread: Document.AppendUndoHandler(handler=<eg.Classes.UndoHandler.NewPlugin.NewPlugin object at 0x0A0C1EB0>)
21:17:01: 2 MainThread: NewPlugin.Do => <eg.Classes.Document.PluginItem object at 0x051E5190>
21:17:01: 1 MainThread: TreeCtrl.OnNodeAdded(['node', 'pos']=(<eg.Classes.Document.PluginItem object at 0x051E5190>, -1))
21:17:01: 1 MainThread: MainFrame.OnDialogDestroy(event=<wx.WindowDestroyEvent>)
21:17:48: 1 MainThread: MainFrame.DispatchCommand(command='OnCmdCopy')
21:18:05: 1 MainThread: Document.AppendUndoHandler(handler=<eg.Classes.UndoHandler.ToggleEnable.ToggleEnable object at 0x051D7C90>)
21:18:22: 1 MainThread: Document.AppendUndoHandler(handler=<eg.Classes.UndoHandler.ToggleEnable.ToggleEnable object at 0x025F4870>)
21:18:50: 1 MainThread: MainFrame.DispatchCommand(command='OnCmdCopy')Code: Select all
21:27:09: 0 MainThread: ----------------------------------------
21:27:09: 0 MainThread: EventGhost started
21:27:09: 0 MainThread: ----------------------------------------
21:27:09: 0 MainThread: EventGhost Version: 0.5.0-rc4
21:27:09: 0 MainThread: Machine type: AMD64
21:27:09: 0 MainThread: Processor: Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
21:27:09: 0 MainThread: Architecture: ('32bit', 'WindowsPE')
21:27:09: 0 MainThread: Python: 2.7.12 CPython ('default', 'Oct 31 2016 18:42:08') [MSC v.1500 32 bit (Intel)]
21:27:09: 0 MainThread: ----------------------------------------
21:27:10: 0 MainThread: PluginManager.ScanAllPlugins :0.9343987583821729
21:27:10: 0 MainThread: SendKeysParser.__init__()
21:27:10: 0 EventGhost.Pipe.Thread: Named Pipe: Creating security descriptor
21:27:10: 0 EventGhost.Pipe.Thread: Named Pipe: Creating pipe
21:27:10: 0 MainMessageReceiver: MainMessageReceiver.__MainLoop()
21:27:10: 0 MainMessageReceiver: MainMessageReceiver.Setup()
21:27:10: 0 MainThread: Document.ShowFrame()
21:27:10: 0 MainThread: Log.GetData()
21:27:10: 0 MainThread: Document.ShowFrame => None
21:27:10: 0 ActionThread: ActionThread.__MainLoop()
21:27:10: 0 EventThread: EventThread.__MainLoop()
---> Welcome to EventGhost <---
21:27:11: 0 EventThread: EventThread.StartSession(filename=u'P:\\Profiles\\EventGhost\\Rino-HT 4.0.xml')
21:27:11: 0 ActionThread: ActionThread.StartSession(filename=u'P:\\Profiles\\EventGhost\\Rino-HT 4.0.xml')
21:27:11: 0 MouseThread: MouseThread.run()
21:27:11: 0 ActionThread: Document.Load(filePath=u'P:\\Profiles\\EventGhost\\Rino-HT 4.0.xml')
21:27:11: 1 MainThread: OSDFrame.__init__(parent=None)
21:27:11: 0 Thread-2: SessionChangeNotifier.Register()
21:27:11: 0 ActionThread: StartLoad(cls=<class 'eg.Classes.TreeLink.TreeLink'>)
21:27:11: 0 MainMessageReceiver: PowerBroadcastNotifier.OnPowerBroadcast(hwnd=330672, uMsg=536L, wParam=32787L, lParam=5262640)
21:27:11: 0 MainMessageReceiver: PowerBroadcastNotifier.OnPowerBroadcast(hwnd=330672, uMsg=536L, wParam=32787L, lParam=5262992)
21:27:11: 0 MainMessageReceiver: PowerBroadcastNotifier.OnPowerBroadcast(hwnd=330672, uMsg=536L, wParam=32787L, lParam=5262800)
21:27:11: 0 MainMessageReceiver: PowerBroadcastNotifier.OnPowerBroadcast(hwnd=330672, uMsg=536L, wParam=32787L, lParam=5253120)
21:27:11: 0 ActionThread: Document.SetExpandState(expanded=set([0, 1, 4, 7, 128, 12, 143, 67, 22, 23, 132, 27, 34, 42, 46, 50, 437, 54, 58, 62, 194, 195, 196, 197, 455, 456, 457, 76, 80, 87, 217, 438, 105, 109, 113, 120, 124]))
21:27:11: 0 ActionThread: XML loaded in 0.189365 seconds.
21:27:11: 1 MainThread: TreeCtrl.OnItemCollapsingEvent(event=<wx.TreeEvent>)
Autostart
Run Application: nircmd.exe
Plugin: Microsoft MCE Remote (Vista+)
21:27:11: 0 ActionThread: MCE_Vista.__start__()
21:27:11: 0 Thread-5: MceMessageReceiver.__call__()
Plugin: Desktop Remote
MCE_Vista: Connected to MceIr pipe, started handling IR events
Plugin: SchedulGhost
Plugin: AudioEndpoint
Audio Endpoint plugin started.
Plugin: TrayTip
Plugin: Task Monitor Plus
21:27:11: 0 ActionThread: ActionThread.StartSession => None
21:27:11: 1 MainThread: MainFrame.OnClose(dummyEvent=<wx.CloseEvent>)
21:27:11: 1 MainThread: MainFrame.Iconize(flag=True)
21:27:11: 1 MainThread: Document.HideFrame()
21:27:11: 1 MainThread: MainFrame.Destroy()
21:27:11: 1 MainThread: LogCtrl.Destroy()
21:27:11: 1 MainThread: TreeCtrl.Destroy()
21:27:11: 1 MainThread: StatusBar.Destroy()
21:27:11: 1 MainThread: StatusBar.__del__()
21:27:11: 1 MainThread: MainFrame.Destroy => True
21:27:11: 1 MainThread: Document.HideFrame => None
System.PowerProfile.Balanced
MceRemote.Connected
AudioEndpoint.Default.Render.Console.ðöð©ð¢ð░ð╝ð©ð║ð© (Display Audio) [u'{0.0.0.00000000}.{b077439b-ba23-4465-9a29-275021e3ac29}']
AudioEndpoint.Default.Render.Multimedia.ðöð©ð¢ð░ð╝ð©ð║ð© (Display Audio) [u'{0.0.0.00000000}.{b077439b-ba23-4465-9a29-275021e3ac29}']
AudioEndpoint.Default.Render.Communications.ðöð©ð¢ð░ð╝ð©ð║ð© (Display Audio) [u'{0.0.0.00000000}.{b077439b-ba23-4465-9a29-275021e3ac29}']
AudioEndpoint.Default.Capture.Console.ð£ð©ð║ÐÇð¥Ðäð¥ð¢ (Display Audio) [u'{0.0.1.00000000}.{f52b8d20-6bd8-4037-a213-2d6c0fb8605f}']
AudioEndpoint.Default.Capture.Multimedia.ð£ð©ð║ÐÇð¥Ðäð¥ð¢ (Display Audio) [u'{0.0.1.00000000}.{f52b8d20-6bd8-4037-a213-2d6c0fb8605f}']
AudioEndpoint.Default.Capture.Communications.ð£ð©ð║ÐÇð¥Ðäð¥ð¢ (Display Audio) [u'{0.0.1.00000000}.{f52b8d20-6bd8-4037-a213-2d6c0fb8605f}']
Main.OnInit
Initialization
Play Sound: P:\Profiles\EventGhost\Speech Off.wav
21:27:12: 1 MainThread: LogCtrl.__del__()
System.PowerSaving.Off
System.PowerSource.Line
System.Monitor.On
21:27:12: 1 MainThread: MainFrame.__del__()
21:27:16: 1 MainThread: Document.ShowFrame()
21:27:16: 1 MainThread: Log.GetData()
21:27:16: 1 MainThread: TreeCtrl.OnItemCollapsingEvent(event=<wx.TreeEvent>)
21:27:16: 1 MainThread: Document.ShowFrame => NoneCode: Select all
19:58:05: 0 MainThread: ----------------------------------------
19:58:05: 0 MainThread: EventGhost started
19:58:05: 0 MainThread: ----------------------------------------
19:58:05: 0 MainThread: EventGhost Version: 0.5.0-rc4
19:58:05: 0 MainThread: Machine type: AMD64
19:58:05: 0 MainThread: Processor: Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
19:58:05: 0 MainThread: Architecture: ('32bit', 'WindowsPE')
19:58:05: 0 MainThread: Python: 2.7.12 CPython ('default', 'Oct 31 2016 18:42:08') [MSC v.1500 32 bit (Intel)]
19:58:05: 0 MainThread: ----------------------------------------
19:58:06: 0 MainThread: PluginManager.ScanAllPlugins :0.6171577331567075
19:58:06: 0 MainThread: SendKeysParser.__init__()
19:58:06: 0 EventGhost.Pipe.Thread: Named Pipe: Creating security descriptor
19:58:06: 0 EventGhost.Pipe.Thread: Named Pipe: Creating pipe
19:58:06: 0 MainMessageReceiver: MainMessageReceiver.__MainLoop()
19:58:06: 0 MainMessageReceiver: MainMessageReceiver.Setup()
19:58:06: 0 MainThread: Document.ShowFrame()
19:58:06: 0 MainThread: Log.GetData()
19:58:06: 0 MainThread: Document.ShowFrame => None
19:58:06: 0 ActionThread: ActionThread.__MainLoop()
19:58:06: 0 EventThread: EventThread.__MainLoop()
---> Welcome to EventGhost <---
19:58:09: 0 EventThread: EventThread.StartSession(filename=u'P:\\Profiles\\EventGhost\\test.egtree')
19:58:09: 0 ActionThread: ActionThread.StartSession(filename=u'P:\\Profiles\\EventGhost\\test.egtree')
19:58:09: 0 Thread-1: SessionChangeNotifier.Register()
19:58:09: 0 ActionThread: Document.Load(filePath=u'P:\\Profiles\\EventGhost\\test.egtree')
19:58:09: 0 MouseThread: MouseThread.run()
19:58:09: 1 MainThread: OSDFrame.__init__(parent=None)
19:58:09: 0 ActionThread: StartLoad(cls=<class 'eg.Classes.TreeLink.TreeLink'>)
19:58:09: 0 ActionThread: Document.SetExpandState(expanded=set([0, 1]))
19:58:09: 0 MainMessageReceiver: PowerBroadcastNotifier.OnPowerBroadcast(hwnd=800722362, uMsg=536L, wParam=32787L, lParam=5889608)
19:58:09: 0 ActionThread: XML loaded in 0.038696 seconds.
19:58:09: 0 MainMessageReceiver: PowerBroadcastNotifier.OnPowerBroadcast(hwnd=800722362, uMsg=536L, wParam=32787L, lParam=5889576)
19:58:09: 0 MainMessageReceiver: PowerBroadcastNotifier.OnPowerBroadcast(hwnd=800722362, uMsg=536L, wParam=32787L, lParam=5889864)
19:58:09: 0 MainMessageReceiver: PowerBroadcastNotifier.OnPowerBroadcast(hwnd=800722362, uMsg=536L, wParam=32787L, lParam=5830120)
19:58:09: 1 MainThread: TreeCtrl.OnItemCollapsingEvent(event=<wx.TreeEvent>)
Autostart
Plugin: Task Monitor Plus
19:58:09: 0 ActionThread: ActionThread.StartSession => None
System.PowerProfile.Balanced
Main.OnInit
System.PowerSaving.Off
System.PowerSource.Line
System.Monitor.On
19:58:29: 0 MainMessageReceiver: MyWndProc unknown wParam:: 0x0010
19:58:29: 0 MainMessageReceiver: MyWndProc unknown wParam:: 0x0010
19:58:29: 0 MainMessageReceiver: MyWndProc unknown wParam:: 0x0010
19:58:29: 0 MainMessageReceiver: MyWndProc unknown wParam:: 0x0010
TaskMonitorPlus.NewWindow.explorer <title=u'\u041f\u0440\u043e\u0432\u043e\u0434\u043d\u0438\u043a', window_class=u'CabinetWClass',...>
TaskMonitorPlus.Activated.explorer <title=u'\u041f\u0440\u043e\u0432\u043e\u0434\u043d\u0438\u043a', window_class=u'CabinetWClass',...>
19:58:29: 0 MainMessageReceiver: MyWndProc unknown wParam:: 0x0010
19:58:31: 0 MainMessageReceiver: MyWndProc unknown wParam:: 0x0010
19:58:31: 0 MainMessageReceiver: MyWndProc unknown wParam:: 0x0010
19:58:31: 0 MainMessageReceiver: MyWndProc unknown wParam:: 0x0010
19:58:31: 0 MainMessageReceiver: MyWndProc unknown wParam:: 0x0010
19:58:31: 0 MainMessageReceiver: MyWndProc unknown wParam:: 0x0010
19:58:31: 0 MainMessageReceiver: MyWndProc unknown wParam:: 0x0010
19:58:31: 0 MainMessageReceiver: MyWndProc unknown wParam:: 0x0010
TaskMonitorPlus.TitleChanged.explorer <title=u'\u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f', window_class=u'CabinetWClass',...>
19:58:33: 0 MainMessageReceiver: MyWndProc unknown wParam:: 0x0010
19:58:33: 0 MainMessageReceiver: MyWndProc unknown wParam:: 0x0010
19:58:33: 0 MainMessageReceiver: MyWndProc unknown wParam:: 0x0010
TaskMonitorPlus.TitleChanged.explorer <title=u'Viber', window_class=u'CabinetWClass',...>
TaskMonitorPlus.Deactivated.explorer <title=u'Viber', window_class=u'CabinetWClass',...>
TaskMonitorPlus.ClosedWindow.explorer <title=u'Viber', window_class=u'CabinetWClass',...>
19:58:35: 0 MainMessageReceiver: MyWndProc unknown wParam:: 0x0010
19:58:35: 0 MainMessageReceiver: MyWndProc unknown wParam:: 0x0010
TaskMonitorPlus.Activated.EventGhost <title='[EventGhost]', window_class=u'wxWindowNR',...>
19:58:35: 0 MainMessageReceiver: MyWndProc unknown wParam:: 0x0010
19:58:35: 0 MainMessageReceiver: MyWndProc unknown wParam:: 0x0010
19:58:35: 0 MainMessageReceiver: MyWndProc unknown wParam:: 0x0010
19:58:35: 0 MainMessageReceiver: MyWndProc unknown wParam:: 0x0010
System.Idle
System.UnIdleI use "NirCMD\nircmd.exe win close ititle "EventGhost"" because I hasn't found a way that guarantee to starting EG hidden (from time to time, it stayed on a desktop)win [action] [find] [window to find] [Additional Parameters]
For child windows:
win child [find] [top window to find] [action] [find] [child window to find] [Additional Parameters]
This command allows you to close, hide, show, maximize, and minimize the specified window.
The parameters:
[action]: The action you want to do on the specified window:
child: Allows you to make an action on child window of the specified top-level window.
close: Closes the specified windows.
hide: Hides the specified windows.
show: Shows again the specified windows. (after hiding it with 'hide' command)
hideshow: Hides the specified windows and then shows it again. You can use this action to repaint the content of a window.
togglehide: Toggles the specified windows between visible and hidden state.
activate: Bring the specified window to the front.
flash: Flashes the specified window. the values in [Additional Parameters] specifies the number of flashes (the default is 5) and the number of milliseconds of every flash.
max: Maximizes the specified windows.
min: Minimizes the specified windows.
normal: Restores the specified windows to normal state, after minimizing or maximizing them.
togglemin: Toggles the specified windows between minimized and normal state.
togglemax: Toggles the specified windows between maximized and normal state.
trans: Make the specified windows transparent. the value in [Additional Parameters] is a number between 0 and 255 that specifies the transparency level. 0 = completely transparent. 255 = completely opaque.
setsize: Set the size of the specified windows. the values in [Additional Parameters] specifies the desired window size - x, y, width, height.
move: move/resize the window. the values in [Additional Parameters] specifies the number of pixels to move/change: x, y, width, height.
center: Center the specified windows.
settopmost:Set the top-most state of the specified windows. If the value in [Additional Parameters] is 1, the specified windows will become top-most windows, if the value is 0, the top-most state will be canceled.
redraw: Redraw the specified windows.
settext: Modify the caption/title of the specified windows.
focus: Set the focus to the specified window.
disable: Disable the specified window.
enable: Enable the specified window.
toggledisable: Toggles the specified windows between disabled and enabled state.
+style: Add style bits to the specified window. The value of [Additional Parameters] specifies the style bits to add.
-style: Remove style bits from the specified window. The value of [Additional Parameters] specifies the style bits to remove.
+exstyle: Add extended style bits to the specified window. The value of [Additional Parameters] specifies the extended style bits to add.
-exstyle: Remove extended style bits from the specified window. The value of [Additional Parameters] specifies the extended style bits to remove.
postmsg: Post a message to the specified window. The 3 values in [Additional Parameters] specifies the message parameters: Msg, wParam, lParam.
sendmsg: Send a message to the specified window. The 3 values in [Additional Parameters] specifies the message parameters: Msg, wParam, lParam.
dlgclick: Send a click command to the button inside a dialog-box. The value in [Additional Parameters] should specify the control ID of the button, or one of the following predefined buttons: yes, no, ok, cancel, retry, ignore, close, help.
dlgsettext: Set the text to the specified control inside a dialog-box. The value in [Additional Parameters] should specify the control ID.
dlgsetfocus: Set the focus to the specified control inside a dialog-box. The value in [Additional Parameters] should specify the control ID
[find]: The method to find the window
handle: Finds the desired window by specifying the handle of the window in [window to find] parameter.
id: Finds the desired child window by specifying the id of the child window. Useful only for child windows.
class: Finds the desired window by specifying the class name of the window in [window to find] parameter.
title: Finds the desired window by specifying the exact title of the window in [window to find] parameter.
stitle: Finds the desired window by specifying the first few characters of the window in [window to find] parameter.
ititle: Finds the desired window by specifying a sequence of characters that exists in the window title.
etitle: Finds the desired window by specifying the last few characters of the window in [window to find] parameter.
alltop: All top windows.
alltopnodesktop: All top windows, except of desktop and tray windows.
active: The current active window.
foreground: The window in foreground.
desktop: The desktop window
process:Finds the desired window by specifying process ID (for example: /3412) or process name (for example: firefox.exe).
[window to find]: Specifies the window by handle, class name, or title, according to the value of the previous parameter.
Examples:
win close title "calculator"
win hide stitle "calculat"
win hide ititle "culat"
win show class "SciCalc"
win activate title "my computer"
win flash title "calculator" 10 500
win max handle 0x00009c01
win redraw alltop
win trans ititle "internet explorer" 192
win setsize class "IEFrame" 50 50 400 300
win settopmost class "SciCalc" 1
win child class "Shell_TrayWnd" hide class "button"
win child class "Shell_TrayWnd" show class "button"
win child title "calculator" hide id 128
win -style title "my computer" 0x00C00000
win child title "my computer" +exstyle all 0x00400000
win sendmsg title "calculator" 0x10 0 0
win dlgclick class "#32770" cancel
win max process firefox.exe
win max process /1275
win togglehide class MozillaWindowClass
Did it, will see...kgschlosser wrote:Use the Main.OnInit event to trigger a macro...
I think earlier there were problems with EG & hybrid ShutDown/sleep, don't know does it are solved now...kgschlosser wrote:EG will start back up in the state you closed it in.
I know it was there earlier, but now I don't see it...kgschlosser wrote:I also want to make sure you know about the options which you can access by clicking on file and then options
I used it, but once it has simply stoped to work at system startup...kgschlosser wrote:add -hide to the end of the command
Doesn't work, just does nothing...kgschlosser wrote:NirCMD\nircmd.exe win minimize title "EventGhost"