AutoHotkey Community

It is currently May 26th, 2012, 7:26 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: May 3rd, 2009, 3:09 am 
Offline

Joined: March 25th, 2007, 7:55 am
Posts: 52
Location: northwest USA
I am trying to get a hotkey to scroll down 3 clicks, but I seem not to be able to do it.

This is the code I tried:
Code:
:o:scrollhotkey::
send, MouseClick, WheelDown, , , 3
Return


Instead of performing the intended action, it prints out the words "send, MouseClick, Wheeldown."

I don't play with AHK enough to become real expert at it. So any help would be appreciated.

_________________
Regards,

Alan Stancliff
My Web Site


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 3rd, 2009, 3:14 am 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8666
Location: Salem, MA
Code:
:o:scrollhotkey::
is a hotstring not a hotkey.

Mouseclick is a command, and Send is a command.
but if you put, send, mouseclick, then you are sending the /text/ mouseclick.

perhaps you menat
Code:
/::    ;uses the / button to activate this hotkey
MouseClick, WheelDown, , , 3
return


or
Code:
\::    ;uses the \ button to activate this hotkey
Send, {WheelDown 3}
return


which should do about the same thing

also, heed the warning in the help file for mouseclick
Quote:
Some applications do not obey a ClickCount higher than 1 for the mouse wheel. For them, use a Loop such as the following:
Code:
Loop, 5
    MouseClick, WheelUp


_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 3rd, 2009, 7:33 am 
Offline

Joined: March 25th, 2007, 7:55 am
Posts: 52
Location: northwest USA
Hi Enguneer,

I've got to get my terminology correct. What I wanted was a hotstring, and not a hotkey, that would scroll. I do a lot of production typing and it's just faster to not take my hands off the keyboard when the bottom of my text is at the bottom of the window. I like to have it higher up so I can see flagged spelling errors, which I try to get on the fly.

Of course, the hotstring I would use is much shorter and much more cryptic than the one I put in the sample script.

Owing to your generous help, here's what I came up with:
Code:
;********SCROLLING*****
:o:scdox::
MouseClick, WheelDown, , , 3
return


It did exactly what I wanted it to do.

Thanks for the hint.

_________________
Regards,

Alan Stancliff
My Web Site


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google Feedfetcher, joetazz, krajan, over21, RaptorX, rbrtryn, SKAN, Xx7, Yahoo [Bot] and 70 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group