DonationCoder.com Forum

DonationCoder.com Software => Mouser's Zone => Find And Run Robot => Topic started by: mackal on August 23, 2007, 08:29 PM

Title: [feature request] special key turns FARR transparent/inivisble when held
Post by: mackal on August 23, 2007, 08:29 PM
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.
Title: Re: [feature request] special key turns FARR transparent/inivisble when held
Post by: lanux128 on August 24, 2007, 02:46 AM
this AHK command can do that.. :)

WinSet, Transparent, N, WinTitle
Title: Re: [feature request] special key turns FARR transparent/inivisble when held
Post by: nitrix-ud on August 24, 2007, 03:55 AM

#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


#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
 
Title: Re: [feature request] special key turns FARR transparent/inivisble when held
Post by: mackal on August 24, 2007, 06:31 AM
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...
Title: Re: [feature request] special key turns FARR transparent/inivisble when held
Post by: nitrix-ud on August 24, 2007, 06:40 AM
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...
Title: Re: [feature request] special key turns FARR transparent/inivisble when held
Post by: mackal on August 24, 2007, 06:50 AM
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).
Title: Re: [feature request] special key turns FARR transparent/inivisble when held
Post by: nitrix-ud on August 24, 2007, 06:56 AM
@mackal

try to add this line :

SetTitleMatchMode 2

so you have :
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 :
#IfWinActive,  Find and Run Robot v2 ahk_class TMainForm
compilation error

help of settitlematchmode :
http://www.autohotkey.com/docs/commands/SetTitleMatchMode.htm
Title: Re: [feature request] special key turns FARR transparent/inivisble when held
Post by: nitrix-ud on August 24, 2007, 07:00 AM
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
Title: Re: [feature request] special key turns FARR transparent/inivisble when held
Post by: mackal on August 24, 2007, 03:20 PM
Ah, correct on both most recent posts, nitrix.  :Thmbsup:
Title: Re: [feature request] special key turns FARR transparent/inivisble when held
Post by: lanux128 on August 24, 2007, 08:47 PM
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 (https://www.donationcoder.com/forum/index.php?topic=9660.msg72864#msg72864)..
Title: Re: [feature request] special key turns FARR transparent/inivisble when held
Post by: nitrix-ud on August 25, 2007, 05:11 AM
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...
 :(