AutoHotkey Community

It is currently May 26th, 2012, 5:19 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: March 3rd, 2009, 12:46 pm 
Offline

Joined: March 1st, 2009, 9:48 am
Posts: 4
Hi there

I'm a fan of this Firefox [url]dictionary addon[/url]. To lookup a word, the addon requires that you put your cursor above that word and:
1) hold SHIFT then
2) move your mouse cursor just a bit, still holding it over selected word.

So would anyone please help me with how to accomplish those 2 actions with just a hotkey? I just started learning how to write AHK script & would appreciate any help.

Thank you very much


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 3rd, 2009, 1:11 pm 
Code:
F12:: ; press F12
   Send, {Shift Down}
   MouseGetPos, OutputVarX, OutputVarY
   MouseMove, OutputVarX-1, OutputVarY-1
   MouseMove, OutputVarX+1, OutputVarY+1
   Send, {Shift Up}
   Return

; Coordinates are relative to the active window unless CoordMode was used to change that.
Not tested.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 3rd, 2009, 2:09 pm 
Offline

Joined: March 1st, 2009, 9:48 am
Posts: 4
worked perfectly, thank you very much ;-)


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: BrandonHotkey, mrhobbeys, Mtes, perlsmith, rbrtryn, stanman, Yahoo [Bot] and 71 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