Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 03, 2016, 03:53:48 PM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: mouse/key associations  (Read 3334 times)

kalos

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 1,473
    • View Profile
    • Donate to Member
mouse/key associations
« on: October 28, 2006, 03:24:53 AM »
hello

I would like to associate right/left mouse clicks with specific actions

eg:

right click on recycle bin = empty recycle bin (context menu should be blocked and only appear if I press for instance ctrl+right.click)

right click link in the browser = open link in new background tab (context menu should be blocked and only appear if I press ctrl+right.click)

right click on image in a webpage (image that is not at the same time a link) = save image (context menu should be blocked and only appear if I press ctrl+right.click)

double click on an empty space in a folder = create new folder

also, mouse gestures would be nice, especially to be able to associate drag-n-drop of the mouse with some actions

is it possible?

thanks

kalos

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 1,473
    • View Profile
    • Donate to Member
Re: mouse/key associations
« Reply #1 on: October 31, 2006, 08:16:56 PM »
anyone please?

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,405
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: mouse/key associations
« Reply #2 on: October 31, 2006, 08:39:42 PM »
it's really not a bad idea, sounds like something for an autohotkey coding snack, we should move it to the pending requests section of coding snacks.

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: mouse/key associations
« Reply #3 on: November 01, 2006, 06:23:26 AM »
I was expecting someone to answer this request, as i think ahk can't be much of an assistence in most of this situations.
You see, it'd need the script to recognize exactly what is under the mouse at that given moment and the stuff you mentioned is quite hard to recognize.
Other than recognizing the active window and control, ahk can't help much. Doing the stuff you asked for would need link identifying, icon identifying and image identifying.
I can't help with this coding snack, but i definitelly hope someone will be able to solve it!!

kalos

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 1,473
    • View Profile
    • Donate to Member
Re: mouse/key associations
« Reply #4 on: November 05, 2006, 03:17:32 AM »
thanks for your reply

can autoit do it? is there any way it can be done?

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: mouse/key associations
« Reply #5 on: November 05, 2006, 03:57:40 AM »
Well... I don't think so, since it's quite similar to ahk. But i honestly can't tell, since i've never used it.

As for the possibility of making this... I think you might have a way.
Double-click on an empty space = create folder <- supported by DOpus
Drag and drop menu on explorer <- supported by xyplorer
Middle click on browser = open in new background tab <- supported by opera

As for mouse gestures across the whole system, you will most probably like strokeit. It works incredibly well!

kalos

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 1,473
    • View Profile
    • Donate to Member
Re: mouse/key associations
« Reply #6 on: November 05, 2006, 05:11:16 AM »
thanks

as for
Double-click on an empty space = create folder
this works well, but there is a delay which is annoying

#IfWinActive ahk_class CabinetWClass 

~LButton::
SetKeyDelay, , 50
MouseGetPos, , , , ctrl
ControlGet, sel, List, Count Selected, SysListView321, A
If DllCall("GetDoubleClickTime") > A_TimeSincePriorHotkey
   and A_ThisHotkey = A_PriorHotkey
   and ctrl = "SysListView321"
   and sel = 0
   SendEvent, !fwf

#IfWinActive

as for the other programs, I will check them out, but I wouldnt like resources-consuming programs and replacement of winxp defaults

opera yes, can do that by middle click, but I dont have middle button
plus I would like the others (save images, bookmark links etc) cannot be done within opera

I find it strange that these cannot be done, since autohotkey, autoit etc are supposed to integrate within every API and thus they can integrate within every function of windowsxp/applications. correct me if I am wrong

I think the only limitation in what one can do with ahk is user capabilities/knowledge