right-click

Jquery/JS prevent right click menu in browsers

三世轮回 提交于 2019-12-28 11:48:17
问题 I have my div with a right click popup menu: // Attatch right click event to folder for extra options $('#fBox' + folderID).mousedown(function(event) { if (event.which == 3) { // Set ID currRClickFolder = folderID; // Calculate position to show popup menu var height = $('#folderRClickMenu').height(); var width = $('#folderRClickMenu').width(); leftVal = event.pageX - (width / 2) + "px"; topVal = event.pageY - (height) + "px"; $('#folderRClickMenu').css({ left: leftVal, top: topVal }).show();

Disable right click in GTK window

混江龙づ霸主 提交于 2019-12-25 12:10:38
问题 I would disable right click (and so context menu) in a Python GTK window (pyGTK) where inside is located a "window" pyWebKitGtk. Someone can help me writing some lines of code? I think that would better delete event directly in pyGTK but if you know how don't show context menu in pyWebKitGtk is good anyway. TNK TNK TNK Realy cutted code: import gtk import webkit window = gtk.Window(gtk.WINDOW_TOPLEVEL) window.connect("destroy", gtk.main_quit) browser = webkit.WebView() browser.open("http:/

How To Automate “Right click” event in Selenium IDE and opening the link in New window/tab

一个人想着一个人 提交于 2019-12-25 09:47:55
问题 I am using Selenium IDE for a google search scenario. 1 open google 2 then type "india" and click on the search button 3 then go to any link and right clicking on that link and open that link in new tab or window what i have done till now is <tr> <td>open</td> <td>/</td> <td></td> </tr> <tr> <td>type</td> <td>id=gbqfq</td> <td>india</td> </tr> <tr> <td>click</td> <td>id=gbqfb</td> <td></td> </tr> <tr> <td>contextMenu</td> <td>//*[@id='rso']/li[3]/div/h3/a</td> <td> </td> </tr> What i am not

How To Automate “Right click” event in Selenium IDE and opening the link in New window/tab

耗尽温柔 提交于 2019-12-25 09:47:01
问题 I am using Selenium IDE for a google search scenario. 1 open google 2 then type "india" and click on the search button 3 then go to any link and right clicking on that link and open that link in new tab or window what i have done till now is <tr> <td>open</td> <td>/</td> <td></td> </tr> <tr> <td>type</td> <td>id=gbqfq</td> <td>india</td> </tr> <tr> <td>click</td> <td>id=gbqfb</td> <td></td> </tr> <tr> <td>contextMenu</td> <td>//*[@id='rso']/li[3]/div/h3/a</td> <td> </td> </tr> What i am not

Visual C++ Detect a Right Click on a Button

纵饮孤独 提交于 2019-12-25 03:34:24
问题 I have a program where I want a right click on a button to do a completely different amount of code. I have the code display a messagebox for the example, but eventually it will just be a method call each. I'll show you the context in which I need it. Any and all help on how to detect a right click will help. Here's the snippet of code I have: private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { String^ buttonName = safe_cast<Button^>(sender)->Name; safe_cast

How to right click on a file present in a directory using AutoIT?

∥☆過路亽.° 提交于 2019-12-24 12:35:35
问题 I am trying to simulate the functionality of automating right click of a mouse on a specific file or a folder in windows explorer and this is the code snippet I have written to simulate that : #include<GUIListView.au3> Local $filepath = "C:\Windows\addins" Local $iPid = Run("explorer.exe /n,/e,/select," & $filepath) ProcessWait($iPid) Sleep(1000) Local $hList = ControlGetHandle("[CLASS:CabinetWClass]", "", "[CLASS:SysListView32; INSTANCE:1]") Local $aClient = WinGetPos($hList) Local $aPos =

Missing Server Explorer right-click menu options in Visual Studio 2010

十年热恋 提交于 2019-12-24 09:16:25
问题 I've searched high and low for the answer to this and can find nothing on it. I have installed VS 2010 pro edition on a virtual machine running MS XP Pro. After connecting to my database, I can see all the tables, stored procedures, and functions just fine in the list. However, when I rick-click on any of them, the options to create new/edit/run any of them are missing. This is not the first time I've set up VS 2010. I got a new laptop so reinstalled everything. I changed no settings the

How can I add an item to the right click menu on the desktop

感情迁移 提交于 2019-12-24 04:48:27
问题 I have an application that runs in the background and changes the user's desktop background at set intervals. I would like to make it possible for the user to right click the desktop background and have the option to download the photo or advance to the next background, in addition to the normal windows right click options. Is there any way to do this in C#? The target OS is Windows 8.1, but if it could work across several versions of Windows, that would be great. Thanks to kennyzx for

How can I make a right-click behave as a left-click for the purpose of selecting or focusing an object

不打扰是莪最后的温柔 提交于 2019-12-24 03:49:09
问题 Event though a right-click (as far as I know) fires a mousedown event, that mousedown seems to be ignored in most cases. I'm currently working on displaying a custom context menu via a right-click, but I'd also like to be able to select an option from a list while I'm right-clicking. As of right now my recognizes the click from both buttons enough to run some javascript tied to the onmousedown attribute but not enough to select the option the mouse is over when the mousedown comes from the

Right click keeps propagating in Firefox

五迷三道 提交于 2019-12-24 01:13:53
问题 I just noticed something unusual. This is what I want to accomplish: I want a div to be shown when I click a link I want the div to disappear when I click somewhere else in the document I don't want it to disappear when I click the div itself Something like this: http://jsfiddle.net/XPmyF/ JS: (function() { var box = $('#box'); $(document).on('click', function() { if (box.css('display') == 'block') { box.css('display', 'none'); } }); $('#start').on('click', function(e) { box.css({ 'text':