AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Mouse 2 Type

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Greg



Joined: 22 Dec 2005
Posts: 246

PostPosted: Fri Jan 06, 2006 8:29 pm    Post subject: Mouse 2 Type Reply with quote

This script converts the mouse into the keyboard (alpha characters only). It is almost completely useless, but maybe there is some one-handed person out there who needs it.

The hotkey functions are easy to understand, but I'll explain them anyway:
Middle button + Left button activates and deactives the script. This is necessary because all normal mouse funtions aren't useable while the Mouse2Type is running.

Scroll up or Scroll down scrolls through the alphabet. As noted, Mouse2Type only sends alpha characters but it would be easy enough to add numeric and punctuation marks if needed.

Left Mouse backspaces.

Right Mouse moves the cursor right one. This needs to be pressed after each letter is chosen to go to the next space.

Middle button + Right button is the spacebar.

Code:

Suspend, On
Count = 64


;Toggles Mouse2Type for normal mouse funtion
MButton & LButton::Suspend, Toggle

;Spacebar
Mbutton & RButton::
   Send, {SPACE}
   return

;Scroll forward through alphabet
WheelUp::
   Count++
   if Count > 90
   {
      Count = 65
   }   
   Send, {ASC %Count%}+{LEFT}
   return

;Scroll backward through alphabet
WheelDown::
   Count--
   if Count < 65
   {
      Count = 90
   }
   Send, {ASC %Count%}+{LEFT}   
   return

;Moves the cursor right one. (necessary to type the next letter)
RButton::
   Count = 64
   Send, {RIGHT}
   return

;Backspace
LButton::
   Count = 64
   Send, {BACKSPACE}
   return


I was envisioning a terminal of some kind that didn't have a keyboard (but strangely was running windows and had mouse support) that occasionally would benefit from the ability to type. Granted, such a thing probably doesn't exist. But nevertheless, enjoy!

-Greg
Back to top
View user's profile Send private message
Greg



Joined: 22 Dec 2005
Posts: 246

PostPosted: Fri Jan 06, 2006 8:53 pm    Post subject: Reply with quote

Apparently this doesn't work in IE. I only tested it in notepad. So I guess it is even more useless than I previously thought. Oh well. :?
Back to top
View user's profile Send private message
shashank



Joined: 06 Jan 2006
Posts: 2

PostPosted: Sat Jan 07, 2006 2:45 am    Post subject: it does work Reply with quote

i have read the help and we could also use a C++ compiler
_________________
http://www.genmay.com/images/smilies/DuckKing_assist.gif
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger
Ace_NoOne



Joined: 10 Oct 2005
Posts: 333
Location: Germany

PostPosted: Thu Feb 02, 2006 5:44 pm    Post subject: Reply with quote

Wow, that's a cool idea!
Plus I had to chuckle at the "terminal of some kind that didn't have a keyboard (but strangely was running windows and had mouse support)"... Laughing

With the use of a two-axis mouse wheel (which I haven't seen live yet), this might be made a little more efficient to use. I've always liked the key glove idea (though here too, I've never actually seen or even used one), and this kinda goes into the same direction.


@shashank: Question
Back to top
View user's profile Send private message
TheLeO



Joined: 11 Jun 2005
Posts: 179
Location: England ish

PostPosted: Thu Feb 02, 2006 6:16 pm    Post subject: Reply with quote

i like the idea, perhaps not use it as a keybord but have certain words like common used user name, password, or websites,,
cheers for the idea.
_________________
And i say: where there is a problem , there is a solution.(well some where that is.)
::
I Have Spoken
::
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Smart Alec
Guest





PostPosted: Fri Feb 03, 2006 4:24 pm    Post subject: Re: Mouse 2 Type Reply with quote

Greg wrote:
It is almost completely useless, but maybe there is some one-handed person out there who needs it.
-Greg


Why wouldn't a one handed person be able to use a keyboard? Very Happy
Back to top
Ace_NoOne



Joined: 10 Oct 2005
Posts: 333
Location: Germany

PostPosted: Sat Feb 18, 2006 2:11 pm    Post subject: Reply with quote

I just came across Dasher (thanks to the guys over at Donation Coder) - definitely worth checking out!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group