Welcome Guest.   Make a donation to an author on the site April 19, 2014, 09:38:02 AM  *

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.
 
The N.A.N.Y. Challenge 2010! Download 24 custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: programing mouse buttons for FARR  (Read 14378 times)
DocSavage
Supporting Member
**
Posts: 62


Legend in my own mind

see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« on: February 25, 2008, 09:06:42 PM »

I am trying to program a mouse center center button (wheel) to open FARR. Can you tell me the instruction? pointing to .exe starts a new instance. in the keystroke mode, it only accepts modifier (alt, cntrl, etc) & a standard key.
Logged

From believing in Santa to not believing in Santa, from being Santa to looking like Santa, I will never be younger than I am today!
lanux128
Global Moderator
*****
Posts: 6,046



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #1 on: February 25, 2008, 09:28:46 PM »

assuming you had installed Farr in "C:\Program Files\DonationCoder\Farr", the following should be ok. also check this thread for more examples.

[copy or print]
MButton::Run, C:\Program Files\DonationCoder\Farr\FindAndRunRobot.exe

Logged

mouser
First Author
Administrator
*****
Posts: 32,673



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #2 on: February 25, 2008, 10:31:19 PM »

lanux, i think he means a mouse wheel to bring up FARR from tray, rather than run it when its not running.  i.e. just trigger the FARR hotkey.
Logged
lanux128
Global Moderator
*****
Posts: 6,046



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #3 on: February 25, 2008, 10:56:11 PM »

re-reading the 1st post that seems the case. anyway, here's the modified version.

[copy or print]
; This script is to bring up Farr window via mouse
; Source: hxxp://www.donationcoder.com/forum/index.php?topic=2812.msg58794#msg58794

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

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

mouser
First Author
Administrator
*****
Posts: 32,673



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #4 on: February 25, 2008, 11:07:25 PM »

nice  Cool

i'll add this to my list of permanently useful FARR stuff.
Logged
lanux128
Global Moderator
*****
Posts: 6,046



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #5 on: February 25, 2008, 11:26:25 PM »

nice  Cool

i'll add this to my list of permanently useful FARR stuff.
thanks, mouser! Cool but i just noticed that this script takes over the middle mouse-button. so a better alternative would be to use an additional key/button to trigger. so, change MButton:: to either one of the below.

• ~MButton & RButton::      ;Hold the middle button then right-click
• !MButton::                     ;Hold the Alt key while middle-clicking
Logged

DocSavage
Supporting Member
**
Posts: 62


Legend in my own mind

see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #6 on: February 27, 2008, 04:59:49 PM »

You are correct that I want to press the middle button (wheel) down to bring up FARR from the tray instance.
Thanks for the responses guys, but I'm not a programer. Can you tell me where to paste this script? Looks like it should go somewhere in the mouse instruction. Or in Win32? Does it go somewhere in the FARR code? If so, how do I get it in there?
Forgive me my lack of knowledge.
Logged

From believing in Santa to not believing in Santa, from being Santa to looking like Santa, I will never be younger than I am today!
lanux128
Global Moderator
*****
Posts: 6,046



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #7 on: February 27, 2008, 07:42:34 PM »

the long version is you have to download & install AutoHotKey then copy the above code and save it as <whatevername>.ahk and execute this ahk file. the shorter version is to download the attached file and start using the middle-mouse button to call up Farr. Wink

P.S. Use Win+x to exit the script.

* middle-button-farr.exe (409.36 KB - downloaded 363 times.)
Logged

DocSavage
Supporting Member
**
Posts: 62


Legend in my own mind

see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #8 on: February 27, 2008, 10:33:21 PM »

I just did & it works perfectly!
Logged

From believing in Santa to not believing in Santa, from being Santa to looking like Santa, I will never be younger than I am today!
Armando
Charter Member
***
Posts: 2,666



see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #9 on: March 22, 2008, 04:53:42 PM »

Lanux : I want to do the same thing but map it to ctrl+pause (or ctrl+break). I'm writing send, ^{pause} but it doesn't work.  huh
Logged

"I suppose it can be said that I'm an absent-minded driver. It's true that I've driven through a number of red lights on occasion, but on the other hand, I've stopped at a lot of green ones but never gotten credit for it."
Glenn Gould
yksyks
Supporting Member
**
Posts: 457


see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #10 on: March 22, 2008, 05:04:44 PM »

You can use HotkeyP to redefine the middle-click to Break key. Just tried it, it works, but IMHO using mouse is against FARR idea, isn't it?
Logged
Armando
Charter Member
***
Posts: 2,666



see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #11 on: March 22, 2008, 05:14:33 PM »

(yksyks : actually, I'm not really using my mouse, but Lanux's script gave me another idea... )
Logged

"I suppose it can be said that I'm an absent-minded driver. It's true that I've driven through a number of red lights on occasion, but on the other hand, I've stopped at a lot of green ones but never gotten credit for it."
Glenn Gould
lanux128
Global Moderator
*****
Posts: 6,046



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #12 on: March 22, 2008, 10:04:14 PM »

Lanux : I want to do the same thing but map it to ctrl+pause (or ctrl+break). I'm writing send, ^{pause} but it doesn't work.

Armando, do you want to send ctrl+pause upon middle-clicking? if that is so, try {CtrlBreak} instead. smiley
Logged

Armando
Charter Member
***
Posts: 2,666



see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #13 on: March 23, 2008, 12:32:59 AM »

Thanks!  smiley
Logged

"I suppose it can be said that I'm an absent-minded driver. It's true that I've driven through a number of red lights on occasion, but on the other hand, I've stopped at a lot of green ones but never gotten credit for it."
Glenn Gould
lanux128
Global Moderator
*****
Posts: 6,046



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #14 on: March 23, 2008, 03:56:16 AM »

(yksyks : actually, I'm not really using my mouse, but Lanux's script gave me another idea... )

you're welcome and btw, what is this idea you mentioned earlier? just curious. Wink
Logged

Armando
Charter Member
***
Posts: 2,666



see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #15 on: March 24, 2008, 01:23:04 AM »

Oh... nothing special Lanux, really.  embarassed ... Don't force me to say it... OK, I give up : it just gave me the (very simplistic) idea to remap my farr hotkey to the "menu" key I never use. On my laptop the "break" key is not exactly convenient to hit, and I tend to use ctr+space or alt+space  for other purposes (like selecting item in my SQLNotes Grids...)  embarassed
Logged

"I suppose it can be said that I'm an absent-minded driver. It's true that I've driven through a number of red lights on occasion, but on the other hand, I've stopped at a lot of green ones but never gotten credit for it."
Glenn Gould
lanux128
Global Moderator
*****
Posts: 6,046



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #16 on: March 24, 2008, 01:31:09 AM »

sorry mate, i "forced" a confession out of you.. i feel really, really bad.. cheesy
Logged

Armando
Charter Member
***
Posts: 2,666



see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #17 on: March 24, 2008, 01:35:18 AM »

Logged

"I suppose it can be said that I'm an absent-minded driver. It's true that I've driven through a number of red lights on occasion, but on the other hand, I've stopped at a lot of green ones but never gotten credit for it."
Glenn Gould
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.038s | Server load: 0.23 ]