[jawsscripts] Re: Script for getting color at mouse pointer location?

  • From: "Geoff Chapman" <gch@xxxxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Mon, 30 Jan 2012 12:45:57 +1100

Hmmm.

I'm just wondering though, if
perhaps Salien may desire to watch for, or perhaps glance at, text of a 
particular foreground/background color on the screen, perhaps within a given 
frame in notepad.  is this possibly your desired endpoint outcome Salien?

if so, were you aware this at least used to be all dooable from within the 
frame manager setup parameters themselves?
without need to resort to the excellent scripting ideas/methods being 
profferred below?


----- Original Message ----- 
From: "Jim Snowbarger" <Snowman@xxxxxxxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Monday, January 30, 2012 1:18 PM
Subject: [jawsscripts] Re: Script for getting color at mouse pointer 
location?


> And then, if you want   it in the RGB format like you you described,
> Also call function ColorToRGBString, giving it the returned value from
> GetColorAtPoint.
> described
>
> In other words,
> var
>    int iColor,
>    string sColor
>
> Let iColor = GetColorAtPoint (GetCursorCol(), GetCursor_Row())
> Let sColor = ColorToRGBString (iColor)
> CopyToClipboard (sColor)
>
> Something like that.
>
>
>
>
> ----- Original Message ----- 
> From: "Jackie McBride" <abletec@xxxxxxxxx>
> To: <jawsscripts@xxxxxxxxxxxxx>
> Sent: Sunday, January 29, 2012 10:33 AM
> Subject: [jawsscripts] Re: Script for getting color at mouse pointer
> location?
>
>
> The function u want is GetColorAtPoint(int x, int y) where x & y are
> the row & column coordinates. GetCursorCol() & GetCursorRow() can be
> used to obtain the current coordinates.
>
> On 1/29/12, Saylien Brown <saybro@xxxxxxxxx> wrote:
>> I'm using the latest build of JAWS 13 under Windows 7 Home Edition.
>>
>> Really hoping someone has created a simple script for getting the
>> Background and foreground color at the mouse pointer location. I want
>> it to grab the RGB number(#000000) , not the name (Black.) It would
>> copy this info to the clipboard, so all I need do is open notepad and
>> paste the results there to know what the colors are. I'm going to
>> attach this script to a shortcut key, so I can have quick access to
>> it whenever I need this info.
>>
>> Thanks for any help.
>>
>> __________�
>>
>> View the list's information and change your settings at
>> //www.freelists.org/list/jawsscripts
>>
>>
>
>
> -- 
> Blame the computer--why not? It can't defend itself & occasionally
> might even be the culprit
> Jackie McBride
> Ask Me Computer Questions at: www.pcinquirer.com
> Jaws Scripting training materials: www.screenreaderscripting.com
> homePage: www.abletec.serverheaven.net
> __________�
>
> View the list's information and change your settings at
> //www.freelists.org/list/jawsscripts
>
>
>
> __________�
>
> View the list's information and change your settings at
> //www.freelists.org/list/jawsscripts
>
> 

__________�

View the list's information and change your settings at 
//www.freelists.org/list/jawsscripts

Other related posts: