Get the count of currently active windows in the current Activity and Virtual Desktop? - kde-plasma

There is a bug in KDE Activities where windows do not get focused and this requires to press Alt+Tab to switch to the last active window.
I want to count the number of the windows to press only when there is some, I tried
xdotool search --onlyvisible --desktop 2 --name ''
but it gets all the desktops in all the activities, I want to get the desktops in the current activity only

Related

Automate computer with slideshow of dashbaords

I have a big monitor in my office that in mounted to the wall. I want to automatically run a slideshow on the screen each day (like first of all Dashboard 1 is shown, then Dashboard 2 is shown, then it switches to Dashboard 3 in PowerBI and then it starts again with Dashboard 1).
Is there any kind of software that I could use for that?
Computer is running on Windows 10. I want to keep effort for running these screens as low as possible.
Thanks a lot!

Make form visible on Windows Lockscreen

TL;DR Can I make a VB.net form visible on the Windows lock screen [i.e. when a user hits WIN+L]?
I wrote an alert system that notifies staff of a 'lockdown' in vb.net. This has been tested in drills a few times but today it was noted that the 'alert window' does not appear when the screen is locked.
The alert window does make an alarm sound, which can still be heard even when the computer is locked but this is dependant on the machine having speakers that are turned on...
The workstations are running Windows 7.
Edit
I am not looking to spawn a separate process, just get the 'lockdown.vb' form showing on top of the windows lock screen.
Googling this has just given me a load of tutorials on making a lockscreen...which is not what I'm after, hence the question. :-)

Clicks going to background window in Adobe AIR app on OS X High Sierra

We have a fairly large AIR desktop application (captive AIR, using Runtime version 21).
Recently our QA have confirmed and reproduced an odd report by a Mac user:
When the app is in full screen, running on OS X High Sierra, then some clicks on the main user interface go through to whatever application is running behind the window. Whatever background window has been clicked, it will jump to the front and the click is processed, e.g. if the click was sent to a Finder window and happened to be in the location of a favorites folder, that folder will be opened as if you clicked it when the Finder window was open.
If no window is behind our app at the click location, the desktop will receive focus.
This is not consistent and even clicks in the same spot (as much as one can hit the same pixel twice) sometimes go to the background window and sometimes end up, as expected, in our window.
I know that this sound weird but it's been verified both by our QA and by me and another developer working on different machines.
Ideas would be most welcome.
Answering my own question after some trial and error:
Upgrading to AIR SDK 28 solved the problem.
Bonus tip: Avoid Adobe AIR. Great technology, zero support, dead forums.

Prevent switching to another application VB.NET

This may not be possible, but I am looking for a way to prevent the user from switching away from my application until it is closed.
I am using AppActivate and SendKeys to send data to the last window opened before my application was started (I'm using GetTopWindow, GetNextWindow, IsWindowVisible, and GetWindowThreadProcessId to get the PID of the last active window). However this seems to be unreliable based on when I get the PID of the last window in my application and whether the user starts switching to different windows while my application is running which can cause the wrong window to pop up.

Do we have Reminders in windows 8

I want to add reminders in my application and the user should have facility to ON/OFF the reminders. I did it in windows phone, but I can't find the Reminder class in windows 8.
We have toast notifications in Windows 8 apps, which can be used as reminders (a rectangular pop-up that will appear in the upper right-hand corner of your machine, no matter what program you are currently using). More info at: http://msdn.microsoft.com/en-us/library/windows/apps/hh761493.aspx (also see the topics below this for how-to info).
The end user has the ability to turn off notifications globally (from all apps) or just from a single app.