We have an application that runs on fullscreen but if I keep my fingers pressed on the borders of the application (corners), I get the right click menu (copy paste etc). I need to programmatically disable right click so that that window wouldn't open.
Edit: I want to disable right click on device level, NOT application level.
Is there any way of doing it? If so how?
Thank you
If you are the OEM of your target device, you can disable aygshell API (SYSGEN_AYGSHELL= 0), but you may lose other features also.
Related
I would like to know if it is possible to, while running a WPF window application in Visual Studio, wait for the user to click anywhere on the screen (not necessarily inside the window of my application - for the purpose of my application, the click would most likely occur inside a browser page) and then gather the information about the click (like inside the window of which application the user clicked, or the selector of the html element the user clicked)? I know this question might be very confunsing but this is basically my last resort since researching on the Internet hasn't helped me much. Just to provide a better idea of what I seek, it's like what the 'Extract Structured Data' Activity does in UiPath. Oh and I'm using C# by the way.
You can try and use this external library called GlobalMouseHook.
This library allows you to tap keyboard and mouse, detect and record their activity even when an application is inactive and runs in background.
Here is what you can do with this library:
Mouse coordinates
Mouse buttons clicked
Mouse drag actions
Mouse wheel scrolls
Key presses and releases
Special key states
Hope this helps.
I use a notify icon to create a small program. Unfortunately, it only appears after pressing the small arrow in the bottom right corner of the taskbar. Is there a way to display it on the first line?
The positioning of the notify icon in windows can be determined by the user. You can just move the icon with drag & drop into the taskbar and it should automatically reappear in the taskbar, if you restart your application.
You can drag and drop these icons yourself (i.e. you can drag the icon to the always visible portion and it will stay there).
If you're asking how to do this programmatically, I'm not sure of a way to do so. According to this answer on superuser it looks like you can update a registry key to rearrange these, but proceed with caution.
Normal context menus in Visual Studio always appear right to the mouse after you open them. Is it possible to make the context menu to appear left to the mouse after it opens? So it actually opens from right to left, instead from left to right.
Hope you know what I mean. (And no, the text in it is NOT meant, just the way the context menu opens) I wasn't able to find anything on that. It's just for aesthetics btw.
This is a new ergonomic feature in the Windows. The Windows check if you are using a touch screen than the Menus will open at the left side the reason is the human hand cover the right side of the clicked/pressed area (mouse pointer does not do that).
--------------------------------------------------Update -------------------------------------------------------------
I found the soultion for your prblem :-) you have to select from Tablet PC Settings the Left Handed, this will solve your problem.
Press the Windows logo key+R to bring up the Run dialog box. In the Open line, copy/paste the following text.
shell:::{80F3F1D5-FECA-45F3-BC32-752C152E456E}
Press OK.
This will start the Tablet PC Settings configuration dialog (Even if you do not have a Tablet PC).
Select the Other Tab.
In the Handedness section, place a check mark in the Left Handed option.
Click OK.
Look to this information from microsoft:
http://answers.microsoft.com/en-us/windows/forum/windows_7-desktop/windows-7-application-menus-drop-to-left-instead/2d362701-90e4-4ea6-a3a1-c1391a3d2bea
Do not forget to mark the answer.
I am trying to detect a long press/right click that opens the context menu over a WebView. I tried detecting a right click by using JavaScript (WebView.InvokeScript) however by capturing this right click it would also capture the right click to open the app bar.
I also took a look at customizing the context menu for a web view but it seems that this is not possible.
Is there a way detect a context menu opening up when the user is interacting with a WebView? Any help is appreciated, thanks!
I've got a Windows Forms application in C# that starts off with a loading dialog. As expected, a button for the app shows up in the Windows taskbar.
I would like to detect right-clicks that might be done to that button.
Ultimately, I hope to disable the right-click or simply have the loading dialog regain focus. I've seen that some people use custom libraries and packages (interop, for example) to achieve some Win32 functionality, but I'd personally like to avoid this. Is it impossible to do without such libraries/packages?
How about just not showing the form in the taskbar by setting Form.ShowInTaskbar to false?