Get text under mouse cursor in any window or window screen
Hello Everybody
I want to get the word under mouse cursor from any area of window using java.
plz give me some tips or guide.
Thanks in advance
MouseInfo / PointerInfo to find the location of the mouse pointer
Robot to capture an area of the screen around the mouse pointer
Optical character recognition to read the screen capture
db
Similar Messages
-
Hp Pavilion 23 Blank Screen With Mouse Cursor After Hp Logo (Not Windows Logo)
Hello my computer wont start up all i get is a black screen but i have a mouse cursor. after a little bit the computer will restart and do a automatic repair but nothing happens it just keeps on rebooting. i tired to do a bio update but it seems to not be working. there is no option in the bios to update or even in UEFI. i also did a harddrive test and got a Short DST Check fail (FAILURE ID: 909HVX-0007K0-WPU2XF-60WH03) but i still can get access to the harddrive using a Linux LiveUSB and all files are there. (Product Number Is : H5P60AAR#ABA)
It is possible to receive a false DST check but not common.
It doesn't mean your hard has failed but that it is in imminent danger of failing.
You can try again but this time using the Extended DST test.
But before doing anything I suggest you back up all your important data using that live Linux boot disk just in case.
Every hard disk manufacturer has their own diagnostic boot cd/usb. Google it.
You should create one and run it for your brand hard drive.
You should be able to determine which brand you have from the BIOS/UEFI hardware tab.
While your'e in there double check that your boot priority is set to hard drive first.
Your other issue seems to be the dreaded 'Automatic Repair Loop' which could be caused by your possibly failing hard dirve. I would fully diagnose the hard drive first.
Here's a link with several suggested fixes. Some of them require a Windows 8 boot disk, other do not.
Automatic Repair Loop Fixes
If you found my answer helpful please say thanks by clicking on the Thumb's Up icon. Thanks! -
How to get text when mousing over image?
Hey there, I am extremely new to Flash, but know other Adobe programs so tend to learn quickly.
I desperately need to find out how to get text to pop up when i mouse over PART of the image and i havent been able to find any help online in the last two days (pulling my hair out in stress).
Now i uploaded a rough mock up i did on Photoshop, so you can see when i mouseover the top layer of the cake i need a line to stretch out and the text to pop up at the end of it. Similarly if i moused over the cherry another piece of text needs to come up in the same manor.
Also since i need it to be a website link so what format do i open it with when i go to FILE- NEW?
Honestly thank you so much in advance to anyone that helpsFirst you have to choose if you want to handle devices. If not and you want to stay in Flash I'll stick on topic.
In the HTML version you could either use a good old fashioned image map (they're still fine in the HTML5 era) or you could use a layering technique (here's a random layering example).
In Flash you can do it a few different ways. If you intend on keeping the image intact as a single object then you'll be essentially doing the same as an image map. You can draw invisible hitareas on the various parts of the object and have those areas trigger a specific function that will display your text. If you break up the image into the separate parts then you can directly assign those parts to fire off a function themselves.
First I'd like to know your desired direction. -
Get screenshot with mouse cursor and send for client application
I took
this function for getting a screenshot from a client application. I to tried adapt this function in my project, but I can not capture desktop showing mouse cursor (coming from a remote pc) in my server application (controller).
Here is my adaptation (in client side) but without success:
void SendScreenProc()
// Send First Bitmap
MemoryStream streamScreen = new MemoryStream();
this.bmpScreenSend = CaptureScreen(true);//new Bitmap(this.boundScreen.Width, this.boundScreen.Height, PixelFormat.Format24bppRgb);
Graphics g = Graphics.FromImage(this.bmpScreenSend);
g.CopyFromScreen(0, 0, 0, 0, this.boundScreen.Size);
this.bmpScreenSend.Save(streamScreen, System.Drawing.Imaging.ImageFormat.Png);
Compress.CompressStream(streamScreen);
Byte[] bufferScreen = streamScreen.ToArray();
mreSendData.WaitOne();
this.queueSendData.AddScreen(streamScreen.GetBuffer());
streamScreen.Close();
this.receivedScreen = 0;
while (this.remoted)
// Send next bitmap result by difference with previous bitmap.
if(this.receivedScreen == 0) {
} else {
Bitmap bmpCurrentScreen = CaptureScreen(true);//new Bitmap(this.boundScreen.Width, this.boundScreen.Height, PixelFormat.Format24bppRgb);
g = Graphics.FromImage(bmpCurrentScreen);
g.CopyFromScreen(0, 0, 0, 0, this.boundScreen.Size);
if (this.receivedScreen == 1) {
if(this.bmpScreen != null) {
this.bmpScreen.Dispose();
this.bmpScreen = this.bmpScreenSend;
} else if(this.receivedScreen == 2) {
if (queueSendData.AvailableScreenAdd && IsDifferent(bmpCurrentScreen, this.bmpScreen))
streamScreen = new MemoryStream();
Bitmap bmpDiff = XorBitmap(this.bmpScreen, bmpCurrentScreen);
bmpDiff.Save(streamScreen, System.Drawing.Imaging.ImageFormat.Png);
this.bmpScreenSend.Dispose();
bmpDiff.Dispose();
this.bmpScreenSend = bmpCurrentScreen;
mreSendData.WaitOne();
this.queueSendData.AddScreen(streamScreen.GetBuffer());
streamScreen.Close();
this.receivedScreen = 0;
else
bmpCurrentScreen.Dispose();
Thread.Sleep(30);Hi FlashCoder,
Do you mean like this capture? Use mouse cursor to capture the specified area.
If so, here is a sample that I wrote. It should meet your requirement. If not, please feel free to let me know.
The following is ScreenForm code
public partial class ScreenForm : Form
public ScreenForm()
InitializeComponent();
public event copyToFatherTextBox copytoFather;
public bool begin = false;
public bool isDoubleClick = false;
public Point firstPoint = new Point(0, 0);
public Point secondPoint = new Point(0, 0);
public Image cachImage = null;
public int halfWidth = 0;
public int halfHeight = 0;
/*Copy the entire screen, and form fill the screen*/
public void copyScreen()
Rectangle r = Screen.PrimaryScreen.Bounds;
Image img = new Bitmap(r.Width, r.Height);
Graphics g = Graphics.FromImage(img);
g.CopyFromScreen(new Point(0, 0), new Point(0, 0), r.Size);
//Maximize form
this.Width = r.Width;
this.Height = r.Height;
this.Left = 0;
this.Top = 0;
pictureBox1.Width = r.Width;
pictureBox1.Height = r.Height;
pictureBox1.BackgroundImage = img;
cachImage = img;
halfWidth = r.Width / 2;
halfHeight = r.Height / 2;
this.Cursor = new Cursor(GetType(), "MyCursor.cur");
private void ScreenForm_Load(object sender, EventArgs e)
copyScreen();
/*Begins when the mouse is pressed screenshots*/
private void pictureBox1_MouseDown(object sender, MouseEventArgs e)
if(!isDoubleClick)
begin = true;
firstPoint = new Point(e.X, e.Y);
changePoint(e.X, e.Y);
msg.Visible = true;
/*Displayed when the mouse moves to intercept the border*/
private void pictureBox1_MouseMove(object sender, MouseEventArgs e)
if (begin)
//Redraw the background image
secondPoint = new Point(e.X, e.Y);
int minX = Math.Min(firstPoint.X, secondPoint.X);
int minY = Math.Min(firstPoint.Y, secondPoint.Y);
int maxX = Math.Max(firstPoint.X, secondPoint.X);
int maxY = Math.Max(firstPoint.Y, secondPoint.Y);
Image tempimage = new Bitmap(cachImage);
Graphics g = Graphics.FromImage(tempimage);
//Picture cropping frames
g.DrawRectangle(new Pen(Color.Red),minX,minY,maxX-minX,maxY-minY);
pictureBox1.Image = tempimage;
//Calculation of coordinate information
msg.Text = "Upper left corner coordinates:(" + minX.ToString() + "," + minY.ToString() + ")\r\n";
msg.Text += "Lower right corner coordinates:(" + maxX.ToString() + "," + maxY.ToString() + ")\r\n";
msg.Text += "Screenshot size:" + (maxX - minX) + "×" + (maxY - minY) + "\r\n";
msg.Text += "Double-click end screenshots anywhere!";
changePoint((minX + maxX) / 2, (minY + maxY) / 2);
/*Dynamically adjusts the displayed location, enter the parameters for the current screen mouse position*/
public void changePoint(int x, int y)
if (x < halfWidth)
if (y < halfHeight)
{ msg.Top = halfHeight; msg.Left = halfWidth; }
else
{ msg.Top = 0; msg.Left = halfWidth; }
else
if (y < halfHeight)
{ msg.Top = halfHeight; msg.Left = 0; }
else
{ msg.Top = 0; msg.Left = 0; }
/*Screenshot is completed when you let go of the mouse operation */
private void pictureBox1_MouseUp(object sender, MouseEventArgs e)
begin = false;
isDoubleClick = true;
/*When I double-click a screenshot when notifying parent form complete screenshot action, while closing the form*/
private void pictureBox1_DoubleClick(object sender, EventArgs e)
if (firstPoint != secondPoint)
int minX = Math.Min(firstPoint.X, secondPoint.X);
int minY = Math.Min(firstPoint.Y, secondPoint.Y);
int maxX = Math.Max(firstPoint.X, secondPoint.X);
int maxY = Math.Max(firstPoint.Y, secondPoint.Y);
Rectangle r = new Rectangle(minX, minY, maxX - minX, maxY - minY);
copytoFather(r);
this.Close();
//msg.Text = r.ToString();
This is the mainFrom code.
public delegate void copyToFatherTextBox(Rectangle r);
public partial class Form1 : Form
public Form1()
InitializeComponent();
/*Start screenshot*/
private void button1_Click(object sender, EventArgs e)
ScreenForm screen = new ScreenForm();
screen.copytoFather += new copyToFatherTextBox(copytoTextBox);
screen.ShowDialog();
/*Screenshot of subsequent operations*/
public void copytoTextBox(Rectangle rec)
Rectangle rec2=rec;
if(rec.Width>2&&rec.Height>2)
rec2= new Rectangle(rec.X + 1, rec.Y + 1, rec.Width - 2, rec.Height - 2);
Rectangle r = Screen.PrimaryScreen.Bounds;
Image img = new Bitmap(rec2.Width, rec2.Height);
Graphics g = Graphics.FromImage(img);
g.CopyFromScreen(rec2.Location, new Point(0, 0), rec2.Size);
Clipboard.SetDataObject(img, false);
richTextBox1.Paste();
Best regards,
Kristin
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Getting positon of Mouse Cursor
Hi Everyone,
Just a real quick question this time. When writing an AppleScript application does anyone know how to get the position of the mouse cursor in the window?
Cheers
Chrisapplescript doesn't provide this sort of information.
AS is not a programming language, so it doesn't have an analog of every function or variable in the os. this is a good thing, because AS is so slow that if it was keeping track of the mouse, then your machine would go to its knees.
I suggest you look into bridging cocoa to AppleScript. in recent years Apple has tied AS strongly with cocoa, allowing for things like Applescript studio. -
I changed to an android and now cant get text from some iphone users any suggestions??
I have just switched to an android and now am having problems getting text from some iphone users, and suggestions as to how I can fix this?
Hi mango72860,
Thanks for visiting Apple Support Communities.
If you're not receiving text messages from iPhone users, see this article for help:
iOS: Deactivating iMessage
http://support.apple.com/kb/TS5185
Best Regards,
Jeremy -
Mouse cursor acceleration - any way to fix?
Just got my first Mac and I love it. I only have one problem - when I connect an external mouse via USB, the cursor tracking is terrible. I have the speed cranked up all the way in System Preferences, but it is still too slow when I'm not shoving the mouse around, and too fast when I do get the mouse moving. Is there any way I can turn off the cursor acceleration smoothing?
Hello,
If your mouse is a roll ball mouse, try cleaning the ball underneath, I use a alcohol wipe, but any think you feel comfortable with cleaning it will work.
If the mouse is an optical mouse (with a light underneath) the most common issue is with the surface the mouse is moving on. Class & wood surface are common issue with the mouse causer not moving or jumps around.
try some think with a smooth surface. -
Grab the text under the cursor
Hey folks,
I have a jtextarea that has some text in it.
I need to know how i can get the text that is displayed when the cursor focuses on each line. any ideas
thx in advanceNot sure exactly what you mean.
If you focus on the textare you can get the caretPosition and then ask the document the text at the caret position.
You have also to methods you can use to translate between x,y coordinates and caret position: modelToView and viewToModel(don't recall the exact names but search in the api.
Eduardo. -
this occur with megaupload download (which represents 99% of my downloads)
And this occur from time to time maybe 1 every 20 dnloads or more, and maybe when this happens I have 4 or five windows opened. I use FF4 but with version 3 I had the same problem.
It feels like a bug
Thanks
JoeyRight-mouse on the Synaptics toolbar icon to bring up Mouse Properties, select the Device Settings tab, press Settings to bring up Properties for Synatpics ClickPad, on the left open Pointing... Sensitivity... Palm Check. This is a feature to prevent accidental touchpad movement by your palm while you're typing. So it prevents use of the touch pad when keys are directly used.
Good luck! -
Windows 8.1 Charms not Showing when moving mouse cursor into corners (Hot Corners)
I'm running Windows 8.1 Update 1 and recently my charms bars no longer display if I move the mouse cursor into the corners of the screen. However, if I press the shortcuts e.g. Win-C the bars do show.
I've check under PC Settings > PC and devices > Corners and Edges and also Taskbar > properties > Navigation and in both places both of the options under 'Corner Navigation' are enabled.Hi,
Please re-register the Windows immersive control panel to check the result:
powershell -ExecutionPolicy Unrestricted Add-AppxPackage -DisableDevelopmentMode -Register $Env:SystemRoot\ImmersiveControlPanel\AppxManifest.xml
Or you can set a registry to enable charm hint:
Open registry, navigate to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ImmersiveShell\
Under ImmersiveShell key, create a new key EdgeUI.
Now select newly created key "EdgeUI" and in right-side pane, create a new DWORD DisableCharmsHint and set its value to 0.
If all methods cannot work, try to use dism command to perform an online fix:
Dism /Online /Cleanup-Image /RestoreHealth
Alex Zhao
TechNet Community Support -
Windows Vista and Windows 7 Only Boots to a black screen with a mouse cursor
Windows Vista and Windows 7 Only Boots to a black screen with a mouse cursor after I installed Mcafee Internet Security.
Hi I installed 1of 3 McAfee Internet Security protections on my HP laptop a few weeks ago with no issues. I Have a Dell XPS 420 desk top with Windows Vista operating
system, it’s never had any issues, until 2 nights ago I installed McAfee Internet Security (detected incompatible files and will remove) pc now only boots up to a black screen with a mouse cursor, it will show the windows logo and a hash symbol floating around
the screen. Now 2 weeks ago I installed the same program on my Dell all in one desk top with Windows 7, the same issue happen but that pc has no screen activity, I tried a back to factory reboot on this one, still black screen.Hi,
Please install the compatible version of McAfee Internet Security:
http://home.mcafee.com/store/internet-security
if you have startup issue, you can boot into Safe Mode to uninstall the problematic software to go back into Windows.
Alex Zhao
TechNet Community Support -
The mouse cursor doesn't go away when you are working
Okay, so the problem is that the mouse cursor doesn't go away when you select a tool. It turns into a mouse cursor with a precision cursor as an attachment. I have been all over the internet and the manuel and can't figure out how to get my regular cursor back TT^TT.
What happens when you press the Caps Lock key? Do you get a combination mouse cursor and brush size cursor?
Cursor problems often involve the display driver, and can also be a result of using a large text size setting in Windows.
Visit the web site of the maker of your video card and see if there's a newer version of the display driver available to download and install.
It doesn't sound exactly like what you're seeing, but if the display driver update doesn't help, check this knowledge base article:
http://kb2.adobe.com/cps/500/cpsid_50020.html
-Noel -
Something is controlling my mouse cursor
Starting a couple of days ago my mouse cursor started mysteriously moving around the screen on it's own, opens windows and clicks on various things. Like someone is controlling the computer. The mouse is a hard wired Microsoft optical mouse.
Bluetooth is turned off, network cable has been disconnected, Airport has been turned off. I even unplugged the optical mouse and the moving cursor issue is still there.
This is very freaky and I do not know where to look next. Any ideas on what could be happening?If your computer has Remote Desktop installed or operational,
and some Firewall settings open to external access or sharing,
there may be an opportunity for someone to gain access. That
is a very unusual situation, the Firewall & any access applications
turned on (normally off by default) should be checked.
You could restart the computer and hold the Shift key down,
then when the computer starts up in SafeBoot mode, login;
then run Disk Utility (see Go in Finder, note Utilities Folder)
and run Repair Disk Permissions; quit Disk Utility, restart.
There may be something internal going on, but if the Mac
is on some shared network or has some settings incorrect,
some odd things could be happening. Very unusual things.
Is there a chance some kind of application is running; or
some control preference panel was set to change the
mouse or magnification on the screen? If you boot up
the computer from the Installer disc, and carefully run
the Disk Utility version on that disc and have it Repair
Disk, then Repair Disk Permissions; the quit D.U. and
choose to restart the computer using Startup Disk from
the dropdown menu bar in the Installer main menu; any
background items - if any are running - should be off
and the system should be set to defaults.
I have all but the Time setting blocked in my Mac's Firewall; and
do not have any Sharing turned on, nor do I have any open net-
work where someone can gain access that way. But you may.
It does seem rather unlikely, but not impossible.
{Several years ago, I recall a friend of mine who had just bought
a printer to go with his iMac, on broadband cable. He was printing
away for a few hours and the printer did not work. Finally, he got
a call from someone a few miles away (in a city) who said that
the printed documents were appearing out of that other person's
printer; and they too had the same broadband cable internet co.}
So, odd things can happen, and it may be a matter of proper settings.
Good luck & happy computing!
edited. -
Mouse cursor snaps to point on screen
I posted this two days ago in the Mac Pro forum, but after searching for a solution since then, I've come to two conclusions: 1) the problem is not a hardware one and 2) using OS X without a mouse is horrendous. Forgive me for copying and editing my own original postings. First, here is a digest:
- the cursor snaps back to its starting point on the screen after ca. 1/2 sec of movement, I can hardly move the cursor to halfway the screen before it snaps back
- not a hardware problem, appears with Kensington Expert Trackball, Magic Trackpad, Apple Magic Mouse and keyboard used as mouse
- not connected with a single user account, appears in the login screen, main user account and system operator account
- the snap-to position differs in the login screen and user accounts
- turning of the computer, unplugging does not work
- resetting PRAM does not work
- unplugging + replugging trackball USB-cable does not work
- the problem appeared suddenly in mid of normal use.I had not changed in settings before the problem
Any ideas? Is it possible to contact someone at Apple directly?
Below my original messages:
I started having a strange problem with the mouse cursor. I started the computer, the mouse worked fine as always. Suddenly the cursor started fixating on a point on the lower right portion of the screen. I would move the cursor, it would move maybe halfway across the screen for a split second and then snap right back to the starting position.
I tried shutting down the computer and restarting. Didn't help. The cursor behaves the same way in the login screen too. The only difference is that now the "homing position" is somewhere in the upper right part of the screen.
I have a Kensington Expert trackball and a Magic Trackpad. I've removed the trackpad, in case it had started interfering with the trackball (never done that before though). Didn't help. I've unplugged and replugged the trackball USB-cable, no help.
I had the Mac Pro unplugged for over a day as I was travelling and the Kensington Expert Mouse too. Behaved exactly the same when I switched on the computer again. I tried resetting the PRAM. Didn't help.
I don't know where the problem lies. The mouse cursor keeps snapping to a position in both the login screen and my user screen. The snap-back position is different in the different screens. The cursor returns to its position when both the Magic Trackpad and the Expert Mouse are connected or when only one of them is. I can move the cursor half a screen, then it snaps back. Clicking functions, but I never have any time to click anything when the cursor bounces back to its spot.
My final remedy would be reinstalling Snow Leopard, but before I try that I would like tro try something less radical. I would also delete the mouse .plist file, but I don't know where it is. I guess that probably would not help, as the cursor behaves crazy even in the login screen, so the user setting should not be the problem.
I've come to the conclusion, that the problem is not a hardware one. The mouse cursor snaps to point on the screen when I use: 1) a Kensington Expert Mouse, 2) a Magic Trackpad, 3) the Magic Mouse that arrived with my computer and when I turned on 4) use keyboard as mouse. The problem also is not tied to a certain user because it appears 1) in the login screen, 2) my user account and 3) the sysop account. I can't figure out where to look for the problem or fix it.I give up.
I've tried everything I can think of, to fix the behavior of the mouse cursor. I've zapped the pram, I've fixed file permissions, I've removed all startup items, I've tried starting the computer in Safe Mode. No can do.
The mouse cursor snaps back to a position on the screen when I try to move it. This happens within a second, so I might be able to move the cursor half-way across the screen, but that's it. It doesn't matter how fast I move the mouse. The cursor is dysfunctional in the normal user account, the administrator account and in the login screen. It works perfectly fine in Safe Mode.
The mouse cursor misbehaves when using a USB track-ball, the Magic Trackpad or the keyboard with accessibility settings.
After advise received at this site, I tried booting up in Safe Mode and after that the cursor worked for a month or so, but the problem returned. I see no rhyme or reason why the problem appeared for the first place, or why it reappeared. I had originally had two pointing devices the track-ball and the Trackpad connected to my Mac Pro at the same time. After the problem first appeared, I removed the Trackpad. I returned it to use a day before the problem reappeared, but I don't know if that is the cause of the problem. The computer had worked perfectly fine for some months with two pointing devices before the problem appeared.
I've noticed that some other people have had the same problem. One had a feline related fix, which doesn't help me since I don't have a cat. Another fixed the problem by switching off the Internet, but that didn't help me.
What I now would like is to make an official bug-report, so that the problem could be fixed someday. I hope Apple is listening. I also plan to reinstall Snow Leopard (I have 10.6.7) next weekend. I had hoped to install a new OS only when Lion got out, but I don't seem to have much choice not. I can either simply reinstall or make a clean reinstall by erasing the disk in the process. I'd like to avoid reinstalling my programs, but I feel it is safer to wipe everything and start from scratch. Even then, I have no assurance this doesn't happen again. -
Hello, I have a problems with using mouse in Indesign CC. I am using Indesign many years ago (CS1, 2 etc.) but I never hit this problem before. When I pres ctrl+space for zoom via mouse, the cursor always disappeared, so I can't select the place for zooming. Next problem is when I printing document. I am using always print to pdf (2400DPI/350lpi/CMYK) and during print, the mouse pointer is very, but very slowly. I am using three monitors and move cursor from left to right can takes aprox. 2-3 seconds. And last problem. When I can select whole paragraph by 3x mouse click, nothing happened for first try. Then if I move mouse cursor for some pixels on the screen, all works. Do you see the same problems? I am using PC (i7 processor, 16GB of memory), Indesign CC 64bit (czech language), so I don't expect any problem with PC performance. Indesign cs6 which I am using in parallel doesn't have any problem with mouse cursor. Thx for any idea how to solve it... Ilja
Ask in Illustrator
This forum is about the Cloud as a delivery process, not about using individual programs
If you start at the Forums Index https://forums.adobe.com/welcome
You will be able to select a forum for the specific Adobe product(s) you use
Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll
Maybe you are looking for
-
Hi I've read all the threads in the forum and there are several questions that keep coming up. I know the answers to some of the questions but still looking for answers to the rest. The team might find it useful to see it from the view point of someo
-
How to setup vlans and routing between them
Hey guys I am onboard a vessel where I have a Cisco 1921 router with intergrated 8-port dwitch. I have no experince what so ever with Cisco, onlye knowledge about netwrok in general. What I need to do is to create 3 VLANs wit different networks and t
-
Using g3 as an external hard drive
Hi, I wish to run Finale 2001 but it only works with os9. I was going to partition my external hard drive and install os9 but I am having second thoughts. 1. Is it possible to connect my firewire g3 to my g5 like an external hd and run finale from th
-
Opening RAW from G15 in Elements 10
I am not able to open RAW files form my Canon G15. I checked my program and it does have the latest camera raw plug-in. Any suggestions?
-
Is it possible to switch software instruments in mid-track?
Or do you just have to continue the part in a different track with the new instrument?