ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Finished Programs

DONE: Farr's go away

(1/4) > >>

jgpaiva:
Since farr still doesn't have internal commands, i made this small script for myself, and decided to post it here.

Using ctrl+space to bring up farr can be a problem, for example, the selection in emacs won't work, since it's bound to that same key, and also, you can't select various items in explorer, by pressing ctrl+space.

I configure it like this: Add it to farr's directory of scripts.
Then, when i want to use ctrl+space, i press ctrl+space to bring up farr, and i type exit[enter], to execute this script.
The script closes farr, and keeps itself in the tray.
It creates a hotkey, so that when i press [windows key]+F, it runs farr, and exits.

It's just an easy way of being able to use ctrl+space, and still be able to call farr up real fast again, since farr is all about speed and productivity ;)

(.ahk file attached, .rar contains .ahk and .exe)

kfitting:
This does not make your script null and void, but what about alt-space and pause/break?  I have never used ctrl-space... also, I know mouser has a hotkey control in CHS, he could probably add it to FARR if you wanted more configurability.

But, at the end of the day, if your script does what you want, use it!

Kevin

jgpaiva:
:)  kfitting that's not the issue.
I don't like to use pause (it's too far ;) ), and alt+space has a strange focus behaviour.
I do like to use ctrl+space, but sometimes, i just want to disable it, that's what this script is for ;)
I just execute "exit", and when i want to use farr again, i press ctrl+f :D

lanux128:
jgpaiva, thanks for pointing out this thread for the request i made here. btw, for portability reasons, i've made some changes and i hope you don't mind. :) and i've also made another script that brings Farr to the front when using the mouse (i use this as a link in Launchbar Commander)..

Farr exit; Original Script by jgpaiva from DonationCoder
; To close Farr, call this script inside Farr
; Useful when updating Farr, Win+F to open Farr
; Source: hxxp://www.donationcoder.com/forum/index.php?topic=2812.0
;
#singleinstance,force
#persistent
;Set path here
Farr_exe=%ProgramFiles%\FindAndRunRobot\FindAndRunRobot.exe

hotkey,#f,findandrun
Process, exist,findandrunrobot.exe
if errorlevel <> 0
  Process,close,findandrunrobot.exe
return

findandrun:
Run,%Farr_exe% -tray
ExitApp

Farr to the front; This script is to bring up Farr window via mouse
; Useful when in 'click' mode.. ;-)
; Source: hxxp://www.donationcoder.com/forum/index.php?topic=2812.0

#SingleInstance, force
#NoTrayIcon
;Set path here
Farr_exe=%ProgramFiles%\FindAndRunRobot\FindAndRunRobot.exe

Process, Exist,FindAndRunRobot.exe
If ErrorLevel <> 0
  Send, {Pause}     ;'Pause' key is the default
Else
  {
  Run,%Farr_exe% -tray
  Sleep, 1000
  Send, {Pause}
  }
Return

tomos:
DONE: Farr's go away

just in case you didn't notice there Lanux, you're up at 999 posts -
if you havent posted since,
theres a thread somewhere for the 1,000th post insnt there?

Navigation

[0] Message Index

[#] Next page

Go to full version