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

<< < (4/4)

lanux128:
@CleverCat: you're welcome. glad to be of help. :)

CleverCat:
 :D

ewemoa:
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.

ToggleFARRMayBe functionToggleFARRMayBe()
{
  FarrExe = FindAndRunRobot.exe
  ; XXX: change appropriately - would be nice to read in path values from elsewhere...perhaps some day
  FarrFullPath = L:\Plus\FindAndRunRobot\%FarrExe%
  Process, Exist, %FarrExe%
  if (ErrorLevel <> 0) ; yes FARR
  {
    ; Yes/No + Question (4 + 32)
    MsgBox,36,,FARR seems to be running -- leave alone?
    IfMsgBox No
      Process, Close, %FarrExe%   
  }
  else ; no FARR
  {
    ; Yes/No + Question (4 + 32)
    MsgBox,36,,FARR doesn't seem to be running -- start?
    IfMsgBox Yes
      Run, %FarrFullPath%   
  }
  Return
}


For invocation, I have something like the following:


--- ---; toggle farr...may be
^!q::ToggleFARRMayBe()


[1] Thanks to lanux128 for pointing this thread out :)
[2] Actually, it lives in the AHK script I use for custom hotkeys.

Navigation

[0] Message Index

[*] Previous page

Go to full version