How to emulate Keyboard and Mouse on a loced VDI - vb.net

i have a problem and can't find a solution so far.
So i thought maybe you can help me? :)
I'm working on an virtuel Citrix Client.
Everytime when i lock the VDI, the screen, the Keyboard & Mouse Input is also locked/stopped.
Is there a way in vb.net to monitor or start an KVM emulation when the VDI is locked?
I found a way to monitor, when the VDI is locked with "SystemEvents.SessionSwitch".
But so far i did not found a way to controll the Emulation of an KVM Input.

Related

Can't move mouse with touchpad

As the title suggests, my touchpad won't move my mouse. I am therefore unable to select outputs of my commands, but I am able to take screenshots of windows. (Luckily I am used to using keyboard shortcuts)
I have no clue what caused this. I have recently updated my kernel from linux52 to linux53 and linux54. Falling back to either of those versions from linux54 hasn't helped. I have also recently been playing around with a Wacom tablet, using xsetwacom, but I believe my mouse has worked after this.
I know it's not a hardware issue, as libinput debug-events correctly detects my finger running over the trackpad:
The output of 40-libinput.conf in /usr/share/X11/xorg.conf.d/40-libinput.conf is the following. I can't see any error there.
I tried blacklisting the i2c_hid, as suggested in the following question, but to no avail. It fixed an error claiming there was a duplicate mouse, which it decided to ignore. I thought this would help.
What is surprising is that I can click. I can't scroll or move the mouse, though. My trackpad lists the following settings. To my surprise, there is no Accel Speed there, and I can't manually set it with xinput --set-prop 14 'libinput Accel Speed' 1.0, as I need to specify the type and format. I don't know what these are supposed to be, and I don't know if the acceleration is the issue. I read that having a negative value would cause the mouse to never move, though.
Do you have any suggestions as to what to do? What does libinput do with the events after receiving them?
EDIT: Removing the blacklist i2c_hid from the modprobe returns the following Xorg log:
Making a copy of /usr/share/X11/xorg.conf.d/70-synaptics.conf into my /etc/X11/xorg.conf.d/ folder, and commenting out the Option "Ignore" "on" line fixed it.
Had to sudo pkill X after changing it, of course. A reboot would also do the trick.

How do you force shutdown a unresponsive VM with VMWare with a IOS host?

enter image description hereenter image description hereI have windows 10 running on VMWare Fusion on my MacBook pro. I've used it without problem for the past year then today in my class the screen just went black. I cant even see the mouse I scrolled my mouse to the top and was able to get the mac top task bar and was able to close out of the VM and it was suspended but it wont let me shut it down. Anyone know the process I need to take to do this? I know I could always shut the mac down and entirely and restart but don't want to risk damaging the windows image. any help would be appreciated.
Maybe this could work, I used it a few times as well.

Intellij cursor keeps following mouse and highlight

For some reason Intellijs text cursor keeps following my mouse and highlighting everything. Is there some setting that can do that? I can't seem to find it from searching the settings. Where else could it be?
If you have a touchscreen try touching it somewhere. It helped me to solve the issue.
Found the solution in this thread on the JB website.
I use a touch screen monitor and i deal with the same issue. my mouse cursor remained in selecting state and highlight every thing.
I touch somewhere on the my monitor screen once and solved this problem without closing app.
Other solutions are:
close and open app
/ restarting computer
I had that problem twice on two different computers in different jetbrains IDEs, gogland and pycharm.
The solution, as annoying as easy, restarting of the machine. Restarting the IDE or even up/downgrading did not help.
Solution
Go to setting
Search for mouse
In the editor action, edit the Add rectangular selection on mouse drag

How to disable the CTRL key in vb.net

I have written a program for work that kills windows explorer (effectively hides desktop icons, taskbar and start menu) so no users can access the internet from our machines, this works well as most machines are touch screen so no keys can be pressed and no access to OSK, but to go a step further I am needing to disable the CTRL key when explorer is not running (Killed in my program) then enable it when they are back (Active in my program).
I've searched Google and seen a lot of ideas but none seems to work, i've got a timer that kills task manager if it starts up, the reason i need to stop CTRL is incase a keyboard is present on the machine i need to stop any shortcuts from being activated and they mostly seem to use the CTRL key.
I know they might be other short cuts but the guys who use my machines aren't the brightest bunch of people in the world but they might be one that 'is reight good ont tinternet'.
Cheers for any advice
Mark
You should look into Kiosk mode.
Here is an example of enabling it in Windows 8.1:
Enable Kiosk Mode in Windows 8.1
If you are still using Windows 7, there are workarounds, like this one:
Creating a Kiosk Machine with Windows 7 and Two Free Applications

Controlling USB keyboard and mouse

We have a hardware device, with an LCD display. It supports an USB interface to connect keyboard and mose. Using these keyboard and mouse, we can navigate to varios menu items and edit entries.
We have couple of test cases written to verify that mouse click and keyboard input events are working when pressed respective key.
My task is to automate these test cases.
I donot have any control to the hardware device, as I can not access the o/s kernel or any application running there. There is one way to verify what is currently displayed on the UI. So I have to use that and verify whether the mouse/keyboard has performed the appropriate events.
As I have gone through couple of previous posts, it seems like that one of the way to achieve this is through virual HID device driver rather than actual keyboard and mosue. But I am not sure how to achieve it.
Please do help me for it. I am fine with any programming language.
I am more interested to simulate the mouse and keyboard events.
You probably don't need to write your own driver. AutoHotKey does pretty much anything you can think of, and the scripting language is quite easy to learn.
You can get it here:
http://www.autohotkey.com/
Since you're using linux, here's a similar project that will run on linux:
http://sikuli.org/