Welcome Guest.   Make a donation to an author on the site October 20, 2014, 10:48:08 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.
 
Learn about the DonationCoder.com microdonation system (DonationCredits).
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: DONE: Farr's go away  (Read 11217 times)
jgpaiva
Global Moderator
*****
Posts: 4,710



Artificial Idiocy

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« on: March 16, 2006, 03:10:15 PM »

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 Wink

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

* exit.ahk (0.51 KB - downloaded 317 times.)
* exit.rar (177.24 KB - downloaded 363 times.)
Logged

kfitting
Charter Member
***
Posts: 574


View Profile Give some DonationCredits to this forum member
« Reply #1 on: March 16, 2006, 04:26:17 PM »

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
Logged
jgpaiva
Global Moderator
*****
Posts: 4,710



Artificial Idiocy

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #2 on: March 16, 2006, 05:36:26 PM »

smiley  kfitting that's not the issue.
I don't like to use pause (it's too far Wink ), 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 Wink
I just execute "exit", and when i want to use farr again, i press ctrl+f cheesy
Logged

lanux128
Global Moderator
*****
Posts: 6,108



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #3 on: April 24, 2007, 12:15:35 AM »

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. smiley 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)..


Logged

tomos
Charter Member
***
Posts: 8,604



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #4 on: April 24, 2007, 05:45:07 AM »



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?
Logged

Tom
tomos
Charter Member
***
Posts: 8,604



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #5 on: April 24, 2007, 05:48:29 AM »

but what i really wanted to say  smiley
was to ask -
how you use the second script -
i mean what do you do with mouse !?


ah, i see theres a link in there, I'll check that out

EDIT: link is for here  cheesy
Logged

Tom
lanux128
Global Moderator
*****
Posts: 6,108



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #6 on: April 24, 2007, 09:34:14 PM »

thanks tomos, i've already updated here.. thumbs up

as for the 2nd script, if you have AHK, copy & save the script then drag-n-drop the script onto LC (see pic) or drop on desktop to create a shortcut.. or you can compile into a EXE then use as a program.. smiley

Logged

lanux128
Global Moderator
*****
Posts: 6,108



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #7 on: August 15, 2008, 01:03:47 AM »

reviving an old thread. recently i had to experiment with some of the Farr's commands which required me to exit and restart Farr. after doing this for a while, i just hit my head and modified the Farr-exit script above to restart Farr instead. hope someone finds this helpful.

[copy or print]
; Original Script by jgpaiva from DonationCoder
; Restarts Farr with a delay of 15 seconds
;
#Persistent
#SingleInstance force
#NoEnv
#NoTrayIcon
Farr_exe=%ProgramFiles%\FindAndRunRobot\FindAndRunRobot.exe

Process, Exist, FindAndRunRobot.exe
If ErrorLevel <> 0
  {
  Process, Close, FindAndRunRobot.exe
  ToolTip, Farr is being closed and will be restarted in 15 seconds.
  Sleep, 15000  ;modify the delay here 1000 = 1 sec.
  Run,%Farr_exe% -tray
  }
ToolTip ;remove ToolTip
ExitApp
Return


* Farr-restart.ahk (0.5 KB - downloaded 250 times.)
Logged

CleverCat
Supporting Member
**
Posts: 1,126


Cat's Are Fun!

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #8 on: October 05, 2008, 09:08:34 AM »

Can this be used after FARR has already crashed?
« Last Edit: October 05, 2008, 09:22:11 AM by CleverCat » Logged

If you need help - JUST ASK!
jgpaiva
Global Moderator
*****
Posts: 4,710



Artificial Idiocy

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #9 on: October 05, 2008, 10:55:52 AM »

CleverCat: you mean use this so that farr will come back when it crashes?

Currently, Exit.ahk only launches farr and then goes away until you start it again, so the answer would be no..
Logged

CleverCat
Supporting Member
**
Posts: 1,126


Cat's Are Fun!

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #10 on: October 06, 2008, 08:20:27 AM »

Okay...  smiley
Logged

If you need help - JUST ASK!
lanux128
Global Moderator
*****
Posts: 6,108



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #11 on: October 07, 2008, 12:00:35 AM »

Can this be used after FARR has already crashed?

you can modify my script so that it launches Farr whenever Farr's process is not existent.
Logged

CleverCat
Supporting Member
**
Posts: 1,126


Cat's Are Fun!

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #12 on: October 07, 2008, 01:57:40 AM »



 Wink
Logged

If you need help - JUST ASK!
lanux128
Global Moderator
*****
Posts: 6,108



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #13 on: October 08, 2008, 04:25:17 AM »

this is a quickly-done script so please let me know if anything goes astray. Wink

usage: not much to do but if you've installed Farr in a custom location then edit the script accordingly. use Win+q to exit the script

[copy or print]
; Original Script by jgpaiva from DonationCoder
; Keep Farr running
; If nonexistent, starts Farr after a delay of 10 seconds
; Source: http://www.donationcoder.com/forum/index.php?topic=2812.msg132848#msg132848
;
#Persistent
#SingleInstance force
#NoEnv
;#NoTrayIcon
;change the path if necessary
Farr_exe=%ProgramFiles%\FindAndRunRobot\FindAndRunRobot.exe

SetTimer, WatchFarr, 1500  ;increase or decrease timer accordingly
Return

WatchFarr:
Process, Exist, FindAndRunRobot.exe
If ErrorLevel <> 0
  Return
Else
  {
  ToolTip, Farr is not detected and will be started in 10 seconds.
  Sleep, 10000  ;modify the delay here 1000 = 1 sec.
  Run,%Farr_exe% -tray
  }
ToolTip ;remove ToolTip
Return

;Win+q exits...
#q::ExitApp


* Keep_Farr_running.ahk (0.74 KB - downloaded 234 times.)
Logged

CleverCat
Supporting Member
**
Posts: 1,126


Cat's Are Fun!

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #14 on: October 08, 2008, 07:15:21 AM »

 Thmbsup Brilliant, thanks lanux - works well!

Logged

If you need help - JUST ASK!
lanux128
Global Moderator
*****
Posts: 6,108



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #15 on: October 08, 2008, 09:07:08 AM »

@CleverCat: you're welcome. glad to be of help. smiley
Logged

CleverCat
Supporting Member
**
Posts: 1,126


Cat's Are Fun!

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #16 on: October 09, 2008, 02:46:41 AM »

 cheesy
Logged

If you need help - JUST ASK!
ewemoa
Honorary Member
**
Posts: 2,478



View Profile Give some DonationCredits to this forum member
« Reply #17 on: November 08, 2008, 02:08:14 AM »

Inspired by the work in this thread [1], I put together an AHK script to start or stop FARR depending on whether FARR is not or is already running [2] -- it asks for confirmation via dialog boxen to defend against accidental invocation.  Perhaps someone might find it useful at some point.


For invocation, I have something like the following:

[copy or print]
; toggle farr...may be
^!q::ToggleFARRMayBe()


[1] Thanks to lanux128 for pointing this thread out smiley
[2] Actually, it lives in the AHK script I use for custom hotkeys.
Logged
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.045s | Server load: 0 ]