Welcome Guest.   Make a donation to an author on the site October 22, 2014, 09:15:48 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2010! Download 24 custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: IDEA: Sticky window-specific reading guide.  (Read 2594 times)
kunkel321
Supporting Member
**
Posts: 391


see users location on a map View Profile Give some DonationCredits to this forum member
« on: July 22, 2012, 03:19:52 PM »

I've been a long time fan of Mike Lin's excellent Cross Hair app http://www.mlin.net/CrossHair.shtml
I find that about 80% of the time, I'm using it as a reading guide on a webpage or on a CHM help file for an app.  When this is the case, I want it to be present only on the given window, not the entire screen.
In the image http://i.imgur.com/KJiRl.png I'm reading item #2 in this help file.  I'd like the reading guide (which I've drawn as a gray rectangle) to be associated with this window so that it is only visible over the given window.  If I click away from the window (see bottom of image) to work on another window, I want the reading guide to stay in place with the assigned (now inactive) window.  It would be like a placeholder for my reading, but also would stay out of my way.

Does that make sense and/or seem like a good idea?   
Logged
barney
Charter Member
***
Posts: 1,244


see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #1 on: July 25, 2012, 08:10:07 PM »

Stationary hotkey: press to make the crosshairs remain fixed at your mouse cursor's current location. The default stationary hotkey is Control+1. (The 1 key is adjacent to Backtick on most keyboards.)

That will take care of one (1) item.  Cant help with the window limit - might try contacting Mike - he's generally pretty helpful.
Logged

Make a good day ... barn
Target
Honorary Member
**
Posts: 1,410



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #2 on: August 01, 2012, 08:48:59 PM »

how about this...



runs in the background, and applies a 'cross hair' to the nominated window (only).  'Cross hairs' are hidden when that window is not active

Hotkey WIN+F1 toggles the 'cross hairs' on and off, ie to switch to another window/application, activate that window then toggle the hotkey off then on again.

Hotkey WIN+Right Mouse Button 'freezes the 'cross hairs'

Hotkey WIN+X to exit

* HandEye.zip (396.97 KB - downloaded 93 times.)
Logged

"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler
barney
Charter Member
***
Posts: 1,244


see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #3 on: August 01, 2012, 09:13:14 PM »

how about this...
 (see attachment in previous post)
runs in the background, and applies a 'cross hair' to the nominated window (only).  'Cross hairs' are hidden when that window is not active

Hotkey WIN+F1 toggles the 'cross hairs' on and off, ie to switch to another window/application, activate that window then toggle the hotkey off then on again.

Hotkey WIN+Right Mouse Button 'freezes the 'cross hairs'

Hotkey WIN+X to exit

That works reasonably well.  First tried it in Windows Explorer ... went full screen.  After a moment's reflection, that makes sense, since explorer is the desktop  embarassed Grin.

Tried it again in Firefox ... worked just fine.  However, those lines are just a bit too fine for these old eyes.  Guess I could go in and play with it, since the .ahk file is part of the download.  Have to make the hotkeys adjustable - I hate hotkeys  ohmy - since those are occupied on my system.
Logged

Make a good day ... barn
Target
Honorary Member
**
Posts: 1,410



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #4 on: August 01, 2012, 09:53:40 PM »


That works reasonably well.  First tried it in Windows Explorer ... went full screen.  After a moment's reflection, that makes sense, since explorer is the desktop  embarassed Grin.

Tried it again in Firefox ... worked just fine.  However, those lines are just a bit too fine for these old eyes.  Guess I could go in and play with it, since the .ahk file is part of the download.  Have to make the hotkeys adjustable - I hate hotkeys  ohmy - since those are occupied on my system.

it will only go full screen if the nominated window is also full screen - if you resize the window, then the cross hair window will resize to match

EDIT: I just tested this and it goes full screen on the desktop. huh  Window spy reports the desktop (in Win7) as 'program manager', so I assume that would explain the behaviour (kind of...)

hotkeys are very personal, so by all means change them.  This was a first cut, so I expected some feedback (I rarely use any of the snacks I do so I tend to re-use a standard set of hotkeys)

not sure if there's much you can do about the thickness of the lines.  This is really a kludge using group boxes, and I'm pretty sure there's not much scope for customising them.  

Actually, you can add a v e r y long literal (eg 5000 asterix) to the horizontal control.  This would be thicker than the controls outline, but should't be obtrusive (at least it looks OK ish on my desktop at 1680 X 1050)
« Last Edit: August 02, 2012, 12:37:20 AM by Target » Logged

"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler
kunkel321
Supporting Member
**
Posts: 391


see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #5 on: August 02, 2012, 12:29:50 PM »

Sweet, Thanks!  Did you just make this, Target?  (It'll be kindof cool if you did make it--since it looks like a "target"  smiley  )  It seems to work well.
I think I'll try the ************************  thing and see if I can get it to work. 
Logged
Target
Honorary Member
**
Posts: 1,410



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #6 on: August 02, 2012, 06:16:27 PM »

Sweet, Thanks!  Did you just make this, Target?  (It'll be kindof cool if you did make it--since it looks like a "target"  smiley  )  It seems to work well.
I think I'll try the ************************  thing and see if I can get it to work. 

you asked, so...

and for those that are interested, but not inclined to fiddle with the script, attached is a version with the aforementioned change

* HandEye_X.zip (396.97 KB - downloaded 82 times.)
Logged

"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler
kunkel321
Supporting Member
**
Posts: 391


see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #7 on: August 03, 2012, 02:42:27 PM »

I'm glad you posted that last one...  Simple as the change may seem, I probably never would have figured it out. 

Over the years I've tried multiple times to self-teach myself AHK.  I'll study for a while and learn a couple concepts, then get frustrated because I can't accomplish the simplest of things--then give up for a while and start all over.  undecided

Speaking-of-which....  I'm curious:  If a person wanted to change the color of the ************, how would they do it? 
I tried changing both places that have "white"  Lines 10 and 15, but that fills the entire window. 

On the bright side, I *did* figure out that I could get rid of the vertical line altogether by commenting-out line 12.   Wink
Logged
Target
Honorary Member
**
Posts: 1,410



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #8 on: August 04, 2012, 04:23:53 AM »

you're most welcome smiley

The vertical line was included because it was in the app you quoted (Cross Hair).  If you don't need it then as you already worked out it's not a problem to remove it

to change the colour of the font insert the following -

[copy or print]
gui, font, cRED [sXX BOLD]

you can substitute any colour you like for <RED>, but you'll need to provide the RGB value for anything that's not in the standard pallete.

The 'sXX' option will set the font size, and the 'BOLD' will, well, make the font bold.  You don't need to use either of these, but feel free to experiment and find something that's comfortable for you

FYI, that line of code needs to be added before the line adding the groupbox (ie line 13)
Logged

"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.393s | Server load: 0.05 ]