DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: [feature request] special key turns FARR transparent/inivisble when held  (Read 9,932 times)

mackal

  • Member
  • Joined in 2007
  • **
  • Posts: 25
Here's a scenario I constantly run into:
- doing stuff
- hey, what's a "pachydermus"?
- Ctrl-Space to bring up FARR
- start typing "search pachy...
- blimey, how do you spell that? darn, FARR is in the way, I can't see!

It be cool if there was a key that, in such cases, while typing in a string into FARR, could be held down to make FARR invisible or (partially) transparent temporarily (as long as the key is held down), so that the full workspace can be seen as it was prior to calling FARR.

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
this AHK command can do that.. :)

Code
WinSet, Transparent, N, WinTitle

nitrix-ud

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 560
Code
 
#IfWinActive,  Find and Run Robot v2 ahk_class TMainForm
RAlt::
	if (wintrans != 1) {
		WinSet, Transparent, 100
		wintrans = 1
	}
return
RAlt Up::
	wintrans = 0
	WinSet, Transparent, Off
return #IfWinActive

this works for me, hold down right alt key to make FARR transparent


Code
 #IfWinActive,  Find and Run Robot v2 ahk_class TMainForm
RAlt::
WinSet, Transparent, 100
return
RAlt Up::
WinSet, Transparent, Off
return
 #IfWinActive
works looks simpler but is too Cpu intensive when you hold down the hotkey

mackal

  • Member
  • Joined in 2007
  • **
  • Posts: 25
Ah, of course, is there anything AHK cannot do?  I can just see it now... FARR v3.0 alpha, one massive AHK script...  ;)  Hey, it could happen... just look at GridMove... was that ever a shock when I discovered it's just an AHK script...  :D

Hmmm... this is too useful a script to just limit to FARR.  Many a time I've been in the same situation with other apps.  I just have to come up with a good universal hotkey for this functionality, one that will not interfere with any of my apps...

nitrix-ud

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 560
there is just not enough keys...

i'd like to use my Fn key (i'm a notebook user) but never managed to make it work...

mackal

  • Member
  • Joined in 2007
  • **
  • Posts: 25
Drat, I cannot make either of the scripts work, it seems.  I don't know why.  I even removed #IfWinActive selection, and mapped to left Alt, and still nothing happens.  nitrix, I take it those scripts worked for you, right? Odd...

EDIT: Ah, found the culprit.  At least on my system, I have to use

WinSet, Transparent, <value>, A

to point at the currently active window.  Without it, it refers to Last Found Window, which apparently is not set by anything in the scripts so far (according to docs).
« Last Edit: August 24, 2007, 11:54 AM by mackal »

nitrix-ud

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 560
@mackal

try to add this line :

SetTitleMatchMode 2

so you have :
Code
SetTitleMatchMode 2
#IfWinActive,  Find and Run Robot v2 ahk_class TMainForm
RAlt::
	if (wintrans != 1) {
		WinSet, Transparent, 100
		wintrans = 1
	}
return
RAlt Up::
	wintrans = 0
	WinSet, Transparent, Off
return 
#IfWinActive


the title of FARR starts with a space
{space}Find and Run Robot v2
problem is you can't add a space in the following code :
Code
#IfWinActive,  Find and Run Robot v2 ahk_class TMainForm
compilation error

help of settitlematchmode :
http://www.autohotkey.com/docs/commands/SetTitleMatchMode.htm

nitrix-ud

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 560
Quote
WinSet, Transparent, <value>, A

to point at the currently active window.  Without it, it refers to Last Found Window, which apparently is not set by anything in the scripts so far (according to docs).

when you use the #IfWinActive directive, then the active window is necessarily the one which is active, therefore no need for "A"

of course since you want a global hotkey for any windows, using A is needed

mackal

  • Member
  • Joined in 2007
  • **
  • Posts: 25
Ah, correct on both most recent posts, nitrix.  :Thmbsup:

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
i'd like to use my Fn key (i'm a notebook user) but never managed to make it work...

Fn keys are not directly supported by AHK but there is a way to make them useable, i posted about it in this thread..

nitrix-ud

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 560
Quote
Fn keys are not directly supported by AHK but there is a way to make them useable, i posted about it in this thread..

thanks lanux but unfortunately my Fn key is not captured at all...
:(

Original address: https://www.donationcoder.com/forum/index.php?topic=9696.0