Posted September 2, 201212 yr I apologize if this is already present - I looked but didn't see anything or another similar request. Would it be possible to have some indicator (icon or text next to the pc name) that shows if the desktop is locked? Thanks and great work!
September 2, 201212 yr Administrators Hello kramttocs, This feature is already available however it's complicated to achieve what you asked. If you have a terminal server with 10 locked sessions and 5 unlocked, what icon will you display? In order to check if a user session is locked or unlocked you need to go to 'Users' page from a mobile client or a web ui and from there you will see a list of all the active sessions and their status.
September 2, 201212 yr Author Hey Paul, Thanks for the response. You're absolutely correct - I was only thinking about this from a single user desktop/laptop perspective. The icon wouldn't be useful at all when monitoring a server. I locked my pc from the android app and then went into Users but it still just shows Connection State : Active. Am I overlooking something that would let me know if it's locked? I looked into what it would take to create a plugin for this and at least for Windows, getting the 'desktop locked' state appears to be a bit hackish. It does look like it's pretty straightforward to be notified on the event of locking and unlocking. So rather than an indicator: 1. I didn't see a Notification option for when the Lock/Unlock action is performed. Can I change my feature request to that? or... 2. If I were to look into creating my own plugin for this - I am guessing that plugins only run on 'refresh'/polling? So it wouldn't constantly be listening for the event, right?
September 2, 201212 yr Administrators Hello kramttocs, Normally you should be seeing that the session is locked if the desktop is indeed locked. Maybe you should have waited a bit more to 'update' itself. As for your requests: 1. Yes you may request as many features as you want, I don't think you need to created another topic about that because Mobile PC Monitor's team carefully watches all posts on the forums and I don't think that your topic will be overlooked. 2. If you would like to create a plugin yes, you can put your code on the method that gets called every 15 seconds OR you could completely ignore that method and just subscribe to windows events the notify if anything fires. I've done a bit of research on the topic and I've found out that you can do it fairly easy by subscribing to windows events using Win32 API. Here are some links that will guide you: 1. Mobile PC Monitor API All In One Page: http://www.pulseway.com/api.php 2. https://blogs.msdn.com/b/shawnfa/archive/2005/05/17/418891.aspx?Redirected=true 3. http://bytes.com/topic/c-sharp/answers/276963-trapping-when-workstation-locked 4. http://pinvoke.net/default.aspx/wtsapi32.WTSRegisterSessionNotification Good luck and let me know if you don't know how to do something as I would gladly help, Paul.
Create an account or sign in to comment