mouse

Change mouse cursor image in application?

陌路散爱 提交于 2019-12-12 02:41:25
问题 I able to connected mouse with my device and it's working perfectly, but I want to change cursor image for specific to app. How we can do it. Any idea/suggestion? 回答1: I don't think it is possible on a per-app basis. The pointer icon images are part of the framework and their style attributes are internal. From core/res/res/values/styles.xml : <!-- Pointer styles --> <style name="Pointer"> <item name="android:pointerIconArrow">@android:drawable/pointer_arrow_icon</item> <item name="android

In Xul, within a transparent window, how do I hide the mouse cursor?

a 夏天 提交于 2019-12-12 02:32:37
问题 I have a Xul window that is transparent, and I need to hide the mouse cursor after 1 second. Applying cursor: none will not work, the mouse cursor still shows up in the transparent part of the window. Any idea how to get rid of the mouse cursor? 回答1: Your OS generally won't even bother to send mouse events to a completely transparent (area of your) window; as far as it's concerned, your window isn't there. However if your OS allows it, a nearly transparent window might work. 来源: https:/

Ruby Mouse Over is not long enough, may need a delay of some sort

為{幸葍}努か 提交于 2019-12-12 02:16:04
问题 Hope you all are well. This is my first post. I am trying to write a script in Ruby using Cucumber and the Selenium 2 framework. I am trying to find out how to click on any given link on a hover based component. The sainsbury's website http://www.sainsburys-live-well-for-less.co.uk/ is the perfect example. If you select the first link i.e. Recipes and Insprirations followed by Lets get backing then you are redirected to a new page. I want to do this through a script. Currently I am having

how to detect if another java thread is suspended or frozen?

给你一囗甜甜゛ 提交于 2019-12-12 02:04:29
问题 I searched and found ways to determine if another thread is suspended by adding a boolean to it. But, I do not want (prefer not) to modify that other thread's code. And, I need to detect if it is frozen by any reason (even a bug, so in this case that other thread may also be unresponsive). I see how eclipse does it and shows the application's thread is not responding, I wonder how they coded that. Motivation: I need this to release the mouse (ungrab it) from a 3D lwjgl application, and this

mouse position count

微笑、不失礼 提交于 2019-12-11 19:55:38
问题 Hi I'm using Jquery's mouse position to find the position of the page. I would like it to have it behave more like latitude and longitude coordinates. $().mousemove(function(e){ $('#detect').html( e.pageX + '° N, '+ e.pageY + '° E' ); }); I realise this is not true latitude and longitude coordinates. The box would be the webpage, and 0 is absolute middle of the webpage. Moving the mouse into the N/E area would produce this result. Any help would be appreciated. Thanks. 回答1: Javascript: var

Java - How to change Mouse-Speed in Windows

╄→尐↘猪︶ㄣ 提交于 2019-12-11 18:46:37
问题 Yeah, thats the Question. How can I change the Mouse-Speed in Windows in Java? Greets 回答1: You can do this using JNI. See http://www.atwistedweb.com/java/jni.html. Similar question: http://forums.sun.com/thread.jspa?threadID=374029. C++ code here and mouse speed changing API here: http://msdn.microsoft.com/en-us/library/ms724947%28VS.85%29.aspx. Similar code: http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvc/thread/b866d476-16ac-4313-bc84-6de4cdde806f -- you need SPI_SETMOUSESPEED .

Diagonal resizing mouse pointer [closed]

天涯浪子 提交于 2019-12-11 18:37:11
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year . I am looking for the (hidden) mouse shapes which had been available with ObjC (see SO question). The Swift NSCursor offers none of those cursors you find for resizing standard windows?! For now I'm just looking for the diagonal resizing mouse shapes. If the others were available it

Check if Mouse isn't moved (stands still) c# WinForms

梦想的初衷 提交于 2019-12-11 17:19:12
问题 I want button5 to dissapear if the mouse isn't moved for 3 seconds. If the mouse moved, button1 should appear again. I used a timer with this code: private void timer2_Tick(object sender, EventArgs e) { if (button5.Visible == true) { timer2.Stop(); button2.Visible = false; button3.Visible = false; aimen_IPTV2.Visible = false; button5.Visible = false; button6.Visible = false; aimen_IPTV1.Visible = false; } } private void transpCtrl1_MouseMove(object sender, MouseEventArgs e) { button5.Visible

What can block mousePressEvent or Event Filter Mouse Click Events?

落爺英雄遲暮 提交于 2019-12-11 16:22:33
问题 I can't seem to get any mouse clicks in a QTreeWidget. I have tried... ...overriding mousePressEvent, but it never runs at all. Not even to log a message. ...using an event filer. It works for everything but mouse clicks. ...using delegates. Their editor events work fine, but only when over an item, which isn't enough ...making sure everything is being added to layouts. I used QTCreator and the output is using layout.addWidget(). I am also adding the widget instance to a layout in the main

Simulate Mouse/Keyboard Input In WPF

会有一股神秘感。 提交于 2019-12-11 15:03:22
问题 There are many questions relating to simulating mouse/keyboard input in WPF (and Windows, for that matter). I have something a little different than the usual question, I think, and I'd like your input. Most posts I've seen have a specific higher level action in mind: I want to click this, I want to move the mouse here, etc. To emulate these, one can simply use routed events. However, I'm hoping to operate a mouse from a remote app and would like to input mouse events at a low-level: current