[RWP] AHK

Jim Snowbarger Snowman at SnowmanRadio.com
Fri May 31 23:12:59 EDT 2013


Actually, I won't keep sending these out as i twiddle.  But, here is a 
revised edition of the same.  I think this is a little better.
This one doesn't do a mouse click of any kind.  It just puts the mouse 
there, and lets you decide what to do with it.  It only expects that the 
class of the window at that location be the same as the class at the time 
you defined it, just to make sure you are where you think you are.

so, step 1, position the mouse, and use alt+shift+A to define the spot, and 
give it a name.
Do that for as many spots as you like.
Then, use alt+shift+f1, and choose a spot from the list.  It will take the 
mouse there, and evaluate the pixel color at that location.  If it has never 
seen it before, it will ask you what you want spoken when that color is 
found.  type in a string, or press escape if you want that color to be 
ignored.
If it's the kind of location that changes color when you click it, then 
click it, and activate the spot again to train it about the meaning of the 
new color.

The .ahk file has similar instructions at the top.

About speaking the color strings, the only way it does that at the moment is 
to put up an msgBox with the text in it.  That is groosem, because it causes 
focus changes, and extra speech jabber.  Next, is to figure out how to get 
direct speech in all the various screen readers and speech package 
preferences.  If anybody has a module that can do that, it would  be happily 
married to this one to eliminate that msgBox.

By the way, I make no claim on this, and make no warrantees, implied or 
expressed, and you can modify and repost at your good pleasure.  have fun.

Dropbox link follows:

https://dl.dropboxusercontent.com/u/3677477/HotSpotKnockoff.ahk
----- Original Message ----- 
From: "Indigo" <33indigo at charter.net>
To: "Reapers Without Peepers" <rwp at reaaccess.com>
Sent: Friday, May 31, 2013 9:07 AM
Subject: Re: [RWP] AHK


> Jim, I notice you say your AHK script expects a window title and color 
> match, not currently optional.
> Should I know what window title and what color match it expects; or is 
> that out of my hands?
> I know how to change colors in Reaper, whether that changes colors in a 
> loaded VST plug I couldn't say.
> Is there something I need to try if your script doesn't get a title or 
> color it expects?
>
> Thanks,
> Indi
> ?
>
> On 5/30/2013 11:00 PM, Jim Snowbarger wrote:
>> In case anybody wants to play with it,
>> just as a simplistic learning exercise, I've been working a an extremely
>> bare bones, to the point of almost being worthless, shaddow 
>> HotSpotClicker
>> in AHK land.  the Dropbox link is below.
>> It calls itself HotSpotKnockoff, and lets you put the mouse somewhere, 
>> press
>> a hot key to define the spot, and give it a name.
>> There is another hot key to put up a list of all the names you have 
>> defined.
>> Choose one and press enter, to take the mouse there and do a left single
>> click.
>> It expects a window title, and color match, not currently optional.
>> My goal was to figure out how to define tons of hotspots without filling
>> your system tray with tons of individual ahk threads.  But, I'm not there
>> yet.
>> I wanted one thread that would pick up all key strokes.
>> Anyway, write if you want to talk about it.  Else, enjoy the sample 
>> script.
>> Dropbox link follows.
>>
>> https://dl.dropboxusercontent.com/u/3677477/HotSpotKnockoff.ahk
>>
>>
>>
>> _______________________________________________
>> RWP mailing list
>> RWP at reaaccess.com
>> http://reaaccess.com/mailman/listinfo/rwp_reaaccess.com
>>
>
> _______________________________________________
> RWP mailing list
> RWP at reaaccess.com
> http://reaaccess.com/mailman/listinfo/rwp_reaaccess.com
> 






More information about the Rwp mailing list