TaskMonitorPlus plugin - v0.0.5

Questions and comments specific to a particular plugin should go here.

Re: TaskMonitorPlus plugin - v0.0.4

Postby Neytrino-OnLine » Sat Sep 09, 2017 4:37 am

Small video... Same with new clean profile...
Sin©erely yours, Neytrino.
User avatar
Neytrino-OnLine
Experienced User
 
Posts: 62
Joined: Tue Aug 20, 2013 7:14 pm
Location: Moscow, Russia

Re: TaskMonitorPlus plugin - v0.0.4

Postby topix » Sat Sep 09, 2017 7:51 am

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:
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)


I'm on Win 10-64Bit, EG 05.rc4
topix
Experienced User
 
Posts: 350
Joined: Sat May 05, 2007 3:43 pm
Location: Germany

Re: TaskMonitorPlus plugin - v0.0.4

Postby Boolean263 » Sat Sep 09, 2017 2:45 pm

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]


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.

Edit: Done, see first post. Let me know if there are still problems.
Windows 10 Home, version 1703, build 15063.540 · EventGhost 0.5.0-rc4 · wxPython 3.0.2.0
Python programmer for fun and profit. Dabbler in EventGhost plugin writing.
User avatar
Boolean263
Experienced User
 
Posts: 64
Joined: Sat Aug 12, 2017 7:52 pm
Location: Ottawa, Canada

Re: TaskMonitorPlus plugin - v0.0.5

Postby topix » Sat Sep 09, 2017 5:45 pm

Not a problem, only a little 'imperfection': Now for the EventGhost window you have only the app name as title. Instead of
Code: Select all
ourName = '['+eg.APP_NAME+']'
you could use
Code: Select all
ourName = '[' + eg.mainFrame.GetTitle() + ']
topix
Experienced User
 
Posts: 350
Joined: Sat May 05, 2007 3:43 pm
Location: Germany

Re: TaskMonitorPlus plugin - v0.0.5

Postby Neytrino-OnLine » Sat Sep 09, 2017 6:24 pm

It has stopped to freeze after enabling plugin, but there are still no events :(
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')


Restart after plugin instalation
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 => None
Sin©erely yours, Neytrino.
User avatar
Neytrino-OnLine
Experienced User
 
Posts: 62
Joined: Tue Aug 20, 2013 7:14 pm
Location: Moscow, Russia

Re: TaskMonitorPlus plugin - v0.0.5

Postby kgschlosser » Sun Sep 10, 2017 4:09 pm

OK. how come I am seeing plugins doing things in those logs? Thought we were supposed to be testing this thing out on an empty config tree. with nothing other then the task monitor plus plugin. There are things happening with audio endpoint control and MCE Remote Vista as well as macros running playing sounds.


Need you to have a completely empty tree. you will want to make a new file and then save that file. then exit EventGhost and start it back up again. do not use the restart feature. this is going to ensure that there is no "residue" possibly left behind from another plugin. when you start EG Make sure you do NOT have the "log only assigned events" checked at the bottom. also go into the view drop down menu at the top and check off log macros, log actions, log debug info, indent log and timestamp log. then in that new empty tree add the task manager plus plugin. once it has been added then click on some other window. not the start button actually click on some other program that is running. then copy and paste what you see in the log here please.
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
 
Posts: 2702
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: TaskMonitorPlus plugin - v0.0.5

Postby kgschlosser » Sun Sep 10, 2017 4:53 pm

I should have mentioned the reason why we need an empty configuration tree.. we need it to be a clean run with only the task monitor plus for a couple of reasons. We want to make sure there is no collision with another plugin. And we also want to make sure that there isn't an action running that could be causing it. As an example I see that you are running NirCMD right out of the gate in the Autostart. I do not know what you have it doing but we want to make sure it is not causing an issue. It also helps to reduce the amount of stuff being posted into you debug log. Less having to filter out stuff.


I just thought of something glancing at your log file. Do you have the Hide EventGhost on startup checked?
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
 
Posts: 2702
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: TaskMonitorPlus plugin - v0.0.5

Postby Neytrino-OnLine » Sun Sep 10, 2017 5:03 pm

With cleam profile - it works!
Code: 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.UnIdle
Last edited by Neytrino-OnLine on Sun Sep 10, 2017 5:24 pm, edited 2 times in total.
Sin©erely yours, Neytrino.
User avatar
Neytrino-OnLine
Experienced User
 
Posts: 62
Joined: Tue Aug 20, 2013 7:14 pm
Location: Moscow, Russia

Re: TaskMonitorPlus plugin - v0.0.5

Postby kgschlosser » Sun Sep 10, 2017 5:14 pm

Ok cool. Now one at a time add your plugins back in saving and restarting between plugins. And if/when it stops working let us know which plugin it is. If it continues to work. Then it has to be an action doing it. Or possibly if you have EG hidden. On startup. The startup one is easy to test for. Simply enable/disable it restarting between each. The next one is a little more complex. But you will have e to disable each action you have running when EG starts one at a time restarting between each one. We need to narrow this bad larry down as much as possible for the cause. Once we know the cause we will be able to formulate the best possible solution to it.
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
 
Posts: 2702
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: TaskMonitorPlus plugin - v0.0.5

Postby Neytrino-OnLine » Sun Sep 10, 2017 5:24 pm

I found the reason, it is Run Application: nircmd.exe, I use it to close the EG window after start...
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

I 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)
Sin©erely yours, Neytrino.
User avatar
Neytrino-OnLine
Experienced User
 
Posts: 62
Joined: Tue Aug 20, 2013 7:14 pm
Location: Moscow, Russia

Re: TaskMonitorPlus plugin - v0.0.5

Postby kgschlosser » Sun Sep 10, 2017 5:46 pm

Use the Main.OnInit event to trigger a macro and in that macro put the find window action with EventGhost.exe as the name. And after the find window action add the minimize window action. This will minimize EventGhost 100% of the time but only after all of the plugins have successfully loaded. In the mean time we will check into why the plugin is having an issue. The other thing you can do is to move the NirCMD to the end of the Autostart then it will get run after all of the plugins have loaded
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
 
Posts: 2702
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: TaskMonitorPlus plugin - v0.0.5

Postby kgschlosser » Sun Sep 10, 2017 5:51 pm

Also. EG will start back up in the state you closed it in. So if it was minimized and you right click either the tray icon or the task bar button and click close next time you start it, it will be minimized. I also want to make sure you know about the options which you can access by clicking on file and then options. In there you will see the option to start EG minimized. If you are still having an issue. Then create a new shortcut. Point it to the EG executable. Once the shortcut is made edit the shortcut and add -hide to the end of the command.
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
 
Posts: 2702
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: TaskMonitorPlus plugin - v0.0.5

Postby kgschlosser » Sun Sep 10, 2017 5:55 pm

I am very familiar with NirCMD and it is a very powerful tool. And EG can almost do everything that it does poviding a nice user interface to do so. If there is something you want to know if it can be done from inside EG post the question in general support.
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
 
Posts: 2702
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: TaskMonitorPlus plugin - v0.0.5

Postby kgschlosser » Sun Sep 10, 2017 5:59 pm

Maybe try this as well if you want to stay with using NirCMD

NirCMD\nircmd.exe win minimize title "EventGhost"
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
 
Posts: 2702
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: TaskMonitorPlus plugin - v0.0.5

Postby Neytrino-OnLine » Sun Sep 10, 2017 6:36 pm

kgschlosser wrote:Use the Main.OnInit event to trigger a macro...

Did it, will see...

kgschlosser wrote:EG will start back up in the state you closed it in.

I think earlier there were problems with EG & hybrid ShutDown/sleep, don't know does it are solved now...

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 know it was there earlier, but now I don't see it...
Image
kgschlosser wrote:add -hide to the end of the command

I used it, but once it has simply stoped to work at system startup...

kgschlosser wrote:NirCMD\nircmd.exe win minimize title "EventGhost"

Doesn't work, just does nothing...
Sin©erely yours, Neytrino.
User avatar
Neytrino-OnLine
Experienced User
 
Posts: 62
Joined: Tue Aug 20, 2013 7:14 pm
Location: Moscow, Russia

PreviousNext

Return to Plugin Support

Who is online

Users browsing this forum: No registered users and 6 guests