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 08, 2016, 04:03:31 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: Converting the middle/wheel click to drag-n-drop  (Read 2503 times)

Solving_Prob

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 3
    • View Profile
    • Donate to Member
Converting the middle/wheel click to drag-n-drop
« on: May 06, 2009, 03:46:46 PM »
Hi all,

I am working on a project for elderly and people with disability. The project is on "re-adjusting" a normal computer mouse. Some of these folks can not double-click, nor hold the left-click down for dragging files/folders. I found the following codes for changing the middle-click to left-double-click. One is written in C# the other in CPP.

http://www.codeproje...s/MBtn2DblClick.aspx

http://www.codeproje...MBtn2DblClickVC.aspx

This program would be very handy for them.

Regarding the 2nd part, what I am looking for, should work like the following:

1. Move the pointer on a file/folder
2. Press and release the Middle/Wheel Click
3. Move the pointer and it moves/drags the file/folder.
4. Press and release the click again and the pointer releases the file/ folder

This should work for the Windows environment. Does the description make sense?

Does anybody know if such a code has been written?

Thanks,

-Farzad

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,417
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Converting the middle/wheel click to drag-n-drop
« Reply #1 on: May 07, 2009, 01:48:22 AM »
its an interesting idea.. so the middle click button would be like a TOGGLE -- click one to simulate left click and hold, and again to simulate release.


Solving_Prob

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 3
    • View Profile
    • Donate to Member
Re: Converting the middle/wheel click to drag-n-drop
« Reply #2 on: May 07, 2009, 08:40:07 AM »
Exactly. This would be very useful for elderly and people with disability as some of them can not hold the left click down. If you have any ideas please let me know.

cmpm

  • Charter Member
  • Joined in 2006
  • ***
  • default avatar
  • Posts: 2,025
    • View Profile
    • Donate to Member
Re: Converting the middle/wheel click to drag-n-drop
« Reply #3 on: May 07, 2009, 10:54:20 AM »
Maybe this can be set to do it.
If drag and drop = copy and paste.
It looks like it can do more as well.

http://lifehacker.co...use-gizmo-294701.php

http://fy.chalmers.se/~appro/nt/TXMouse/

Solving_Prob

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 3
    • View Profile
    • Donate to Member
Re: Converting the middle/wheel click to drag-n-drop
« Reply #4 on: May 07, 2009, 06:43:08 PM »
Ahhh.. TXMouse only works for copy and paste of text in the clipboard.

I tried copying (ctrl-c) a file and using TXMouse to paste it, but it didn't work.

4wd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,474
    • View Profile
    • Donate to Member
Re: Converting the middle/wheel click to drag-n-drop
« Reply #5 on: May 07, 2009, 11:27:18 PM »
In the Mouse control panel you can turn on ClickLock which will take care of having to hold down the LMB to drag'n'drop.

capture_05082009_141905.jpgConverting the middle/wheel click to drag-n-drop

That will leave only leave DBLCLK to take care of.

For which they could:
a) just single click on an icon to highlight, then hit Enter, or
b) turn on MouseKeys in Accessibilty which will then simulate a DBLCLK by pushing the '+' on the numpad, or
c) turn on 'Single click to open an item' under Folder Options.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 4,668
    • View Profile
    • Donate to Member
Re: Converting the middle/wheel click to drag-n-drop
« Reply #6 on: May 07, 2009, 11:43:56 PM »
Here's some AHK code to do what you want:

Mbutton::
{
    Toggle := !Toggle
    If ( Toggle )
    {
        Click, Left, Down
    }
    Else
    {
        Click, Left, Up
    }
}

yksyks

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 476
    • View Profile
    • Donate to Member
Re: Converting the middle/wheel click to drag-n-drop
« Reply #7 on: May 08, 2009, 06:33:10 AM »
You can use the free HotkeyP to easily accomplish this and many more.