[RWP] AutoHotKey A Few HotSpots

David P Shortland dragamilov at comcen.com.au
Thu Mar 14 16:08:32 EDT 2013


Hi & Greetings from Queensland again...

Just as a quick addendum to my last email about the WinApi...

There are:
( 6156 functions in 28 dlls ).


Mind boggling at present...

Must keep focused on REAPER!!!

Kind regards

David P Shortland
DragonScore Productions

From: Jim Snowbarger 
Sent: Thursday, March 14, 2013 12:12 PM
To: Reapers Without Peepers 
Subject: Re: [RWP] AutoHotKey A Few HotSpots

Chriss,  thanks for that snip.

The number 2 in 
SetTitleMatchMode 2
means that, when it looks for a title match, the one it finds just needs to contain the one you specify somewhere inside it.  It doesn't have to start with that.  1 means it must start with what you specify.  

Anyway, I think there is one, and only one, active window at a time, and it is the highest level window containing the control with focus at the moment.  And that wil be your reference for all coordinates.
It's a great little program, and I'll add it to my arsonal, long over due.   But, there has been a bit of chatter about HSC versus AHK, and, after looking at it a bit,  I think they are two different animals, with two different primary missions, with some overlap.  AHK is a good tool for folks who don't have JAWS available to them.  And, I can think of several ways I can make good use of it personally.  But, unless you get pretty clever in your color searching, you will have a hard time using AHK with things that move around inside an application, or other active window.  Still, that image search capability is pretty tantalizing.  I hope it's reasonably responsive.   I'm looking toward some relationship where HSC can use AHK to do the things HSC isn't good at.
But, at the end of the day, you can't beat using a program's object model, or API, to get at stuff.  It is going to be much faster, and more accurate, more stable, less dependent on color schemes, screen resolution, and all those other visual vagaries that drive us nuts.
Most of all, speed.  I don't know about you guys, but I want my DAW to be snappy, and fast, reapeatable and reliable.  And these digital methods are the only interfaces that can provide that.   We use these other tools when we have too.
It's better than nothing.








I think these pluggins spawn themselves off of the main application, and appear as their own top level windows.
Can you alt tab in and out of SFZ?





  ----- Original Message ----- 
  From: Chris Belle 
  To: Reapers Without Peepers 
  Sent: Wednesday, March 13, 2013 3:52 AM
  Subject: Re: [RWP] AutoHotKey A Few HotSpots


  This is what I have in the top of most of my ahk scripts.

  #IfWinActive,sfz 
  SetTitleMatchMode 2

  By changing the numerical value of the second line you set it to full screen, or window title, and I think there's something else but my memory could be playing tricks,
  I'm not a fine programmer like your good self 'grin'.


  For all your audio production needs and technology training, visit us at www.affordablestudioservices.com
  Chris Belle cb1963 at sbcglobal.net
  Stephie Belle sdb1961 at sbcglobal.net for customized web design
    ----- Original Message ----- 
    From: Jim Snowbarger 
    To: Reapers Without Peepers 
    Sent: Tuesday, March 12, 2013 9:46 PM
    Subject: Re: [RWP] AutoHotKey A Few HotSpots

    More about the AHK coordinates provided by a drying out David P Shortland from the Sunshine Coast.

    AHK uses window-relative coords by default, but they are relative to the "active" window", or what some people call the foreground window.
    In this case, they are relative to the top left corner of the Reaper application.   
    Once I use that window as a reference, I got this to work.   I got the context menu that starts with input monitoring. but I had to do right click, not left click.  
    That didn't surprise me, except that his script said "click" and only provided coords, which is, as I read the AHK document, a left click by default.
    So anyway,  Not sure about why that is.
    But, that is what AHK does.  It apparently can not use smaller child windows as a reference, but uses absolute screen coordinates, or application-relative coords, depending on the CoordMode command, application relative by default.

    AHK is a pretty interesting program, and it seems to be focused more on automating user tasks from the standpoint of a user manipulating multiple applications and perhaps less on working inside of an app.  Not sure yet.
    Naturally, I'm interested in learning more about what it can do.  Maybe it can correct my incessant typing errors, turning, teh, into, the, and smae into same.   That would be nice. 
    Perhaps the most interesting part was the ability to search for an image, including the ability to allow a measured amount of forgiveness on color matches.  You can do that forgiveness thing on single pixel color searches too.  Basically, you provide it with a .GIF, or .ICO, or any of several file formats that contain  the image or icon you are looking for, tell it a region to search, and it pokes around looking for it.
    I suspect that is a noticeably slow process, because they suggest ways to try to speed it up.
    And, I'm not currently quite sure how we will identify the images to search for.  We've got a boot strap problem there.  I am class A stupid as a windows programmer.  So, I'm more than a little behind the curve.  but, the doc suggests you can often extract the icon images right out of the program itself.  Yeah,  go find that one.
    But, how you actually do that is, so far,  less clear.
    I wonder if there is a way to gen up a little utility that lets a sightling click the mouse at the top left, and bottom right corners of an image of interest, and have the utility save that image as something we could then use AHK, or other equally equipped tool, to look for.
    I think I have a sighted programmer who is interested enough in this stuff to help see if that can be done.
    I shall pursue.

    Anyway, David, thanks for breaking the ice.  I have needed to check this out for some time, but just haven't gotten around  to it.  Their web site is wonderfully accessible.  Very nice.





      

      ----- Original Message ----- 
      From: David P Shortland 
      To: Reapers Without Peepers 
      Sent: Thursday, March 07, 2013 1:13 AM
      Subject: [RWP] AutoHotKey A Few HotSpots

      Hi & Greetings from a drying out Sunshine Coast

      Thought I would share this with anyone who may be interested

      As I am charting my way thru the  Help files of AutoHotKey and learning to Script this and that, well mainly for Omnisphere at present,  here are a couple of co-ordinates that may be of helpin REAPER,  with regards to a Certain Menu not opening with Apps Key & Up Arrow key

      These co-ordinates will give access to a menu that will be spoken and contains settings for Audio & MIDI Inputs & Outputs.

      136, 176 is for Trak 1
      136, 276 is for Trak 2

      Now for those of us who may be a little apprehensive in trying to write a script to access these co-ordinates,here its is...

      Open up Notepad and type these lines as is, or just copy them across..

      Numpad9 & Numpad1:: Click 136, 176
      Numpad9 & Numpad2:: Click 136, 276

      Save this document as AutoHotKey.ahk

      Go to the directory where you just saved that script

      Double Click on the file and it should ask you with what file do you wish to run the program?

      Navigate to AutoHotKey and voila ... all should be good

      Okay, just remember that the resolution on my System is 768 x 1024 , so one can deduce that if your resolution is different the co-ordinates will not match.

      Now all you have to do when REAPER is open and you have several tracks in place

      Press Numpad9 (hold it down and Press Numpad1 the Menu should open, make yourselections

      Remember that this combination is for Trak 1.

      I have also used the Numpad as ReaAccess and REAPER use a lot of keyboard combinations and this should not interfere.

      Oh yes... DO NOT forget to press the NumLock .. it must be ON!

      I have only given the co-ordinates for two trax, because I figure if you want to set up several combinations of In & Outs, just coply one of the tracks to another place.

      Hopefully all will go smoothly... if not...I have left the country and gone into hiding...

      Take care all

      David P Shortland
      DragonScore Productions








--------------------------------------------------------------------------
      _______________________________________________
      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



------------------------------------------------------------------------------
  _______________________________________________
  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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://bluegrasspals.com/pipermail/rwp/attachments/20130315/3584c353/attachment.html>


More information about the Rwp mailing list