I need to count the total number clicks made by a user in a day.
I want to use powershell for this as it should be simplest but i am not able to find any simple method in it to capture the mouse event.
Can somebody guide me on this [Using windows 7]
This utility works on my win7 machine:
http://www.jholu.com/2012/04/21/mouse-click-counter-for-windows-to-count-left-right-and-middle-clicks/
You can also try this .NET project if you need to automate it:
http://globalmousekeyhook.codeplex.com
Related
I created a VSCode Extension and then I need to write some tests.
I am using Mocha and chai.
I wrote a few tests and I don't have any issue with that part. My problem is with the below scenario:
I have a button, when I press that button, an input box will appear and then I need to key in a value in the input box and press the okay button.
Can you help me with how I can simulate this scenario by a test? should simulate press the first button by calling the Command palette but how to key in value in the input box?
** Please take note that I already wrote the function test, but the user wants to test the UI also.
can you help me in finding an example related to my problem?
There is something like vscode-extension-tester which lets you test the GUI very comfortable. All information you can find on its github main page:
https://github.com/redhat-developer/vscode-extension-tester/wiki
I am currently working on a Kiosk for my company, the point for me is to create a powershell script that will create a user and directly assign it as a Kiosk user with Microsoft Edge Chromium. It works fine with the windows settings but thats not how we need to make it. But when I want to make the command with powershell
Set-AssignedAccess -AUMID "MSEdge" -UserSID "USERSID"
When i do it this way I get this error :
New-CimInstance : One or multiple parameter values passed to the method are not valid.
So I managed to get another AUMID which is : Microsoft.MicrosoftEdge.Stable_8wekyb3d8bbwe!App
The command is a success after that but in the end when I connect to the Kiosk user it keeps on blinking loading blue screen and never pops out Microsoft Edge.
Does someone knows about this ?
Thank you.
Try using this AUMID Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge.
This works for Windows Versions below 21H2.
I cannot help you at this time with the version above 21H2.
So I'm just looking for an assist here, I've tried this like 30 different ways, and I cannot figure out what the "Power BI" App (from the Microsoft Webstore) is called in command line.
In Windows 8+, it's possible to open up the "Apps" from command line or VBS using the call: start ms-clock: to open the clock app. More info on this here.
Now I'm just trying to open the MSFT Power BI App, from the webstore, in the same fashion, but I cannot figure out what the Power BI call sign is, if anyone could help with this it would be greatly appreciated.
So far, I've tried:
start Microsoft-Power-BI:
start Microsoft-Power:
start Power-BI:
start Powerbi:
start Powerbi-cli:
start pbi:
start ms-pbi:
I just need some help from someone who would know what the naming syntax would potentially be for an app with spaces in the name. Much thanks!
Love how when you wait 20 more minutes you find your solution.
This post accurately describes the process, it requires full admin rights to your machine/account past that you are good to go.
Link to Solution
How do I open my Unity app, two single instances, into two different monitors full-screen (one in each monitor)?
Using this link https://docs.unity3d.com/Manual/CommandLineArguments.html I have found that according to Unity all I have to do to open my Unity application multiple times into two separate monitors I use the -adapter N command. I have tried this and it always loads into the Main Display monitor. Here is my commands to open the application twice into separate monitors:
start CCC.exe -force-d3d9 -adapter 1
start CCC.exe -force-d3d9 -adapter 2
I noticed in another article that only the d3d9 option works when using the -adapter option. Also, I'm using a NVIDIA® GeForce® GTX 1070 with 8GB GDDR5 with Dual monitors plugged in 2 of the HDMI adapter ports.
Has anyone got this working? Much appreciated!
Drew
Apparently if you use Extended displays on Windows they both act as the same adapter, not sure what the intended use of the adapter switch is.
Alternatively, you could try an external solution. Create a program (.net for instance) that launches both instances and then moves one of them to the other monitor. Check this guide to see how you can move a window from another program.
You probably want to use borderless windowed mode to show them fullscreen and still be able to move them to the desired position.
Ultimately, here's a paid solution that does all of this.
I'm wondering, is it possible to somehow map a key-press event to act like a middle-key click of a mouse in Xwindows? They are diffrent devices, I know, but if there was a way to trigger a middle-button click event from a C program, it should be easy to bind a key to it using existing xwindows mechanisms.
Xevent does the trick:
http://www.isv.uu.se/~ziemann/xevent/
http://linuxgazette.net/153/misc/ziemann/xevent.c
The code compiles and runs just fine on my machine.
If you are interested as a developer: It uses the XTest extension, which is included in the X server. There is also some old, still valid documentation of that API online:
http://www.xfree86.org/current/xtestlib.html