AutoHotkey Community

It is currently May 27th, 2012, 10:22 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: August 1st, 2007, 12:14 am 
Offline

Joined: January 13th, 2006, 3:13 pm
Posts: 29
I hate games that force you to use the mouse. I love playing games, but hate the mouse, because I get sore muscles nowadays (sucks getting old)

anyway, I was looking for a way to use AHK to move my character camera up/down left/right.

This is what I have but it doesn't seem to work for very long. It starts to go all caterwalky.

Code:
d::
  MouseMove, +25, 0, 50, R
  Return

a::
  MouseMove, -25, 0, 50, R
  Return

PGUP::
  MouseMove, 0, +25, 50, R
  Return

PGDN::
  MouseMove, 0, -25, 50, R
  Return

Is there any better way to do this?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 1st, 2007, 12:22 am 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8667
Location: Salem, MA
the problem is that the mouse eventually reaches the end of the screen? with the mouse, can you turn forever?

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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 1st, 2007, 3:10 am 
Offline

Joined: January 13th, 2006, 3:13 pm
Posts: 29
No. I dont have it moving too many pixels for that to happen. It's almost like I do the D::right part, and then hit A::left and it actually does A::right ... almost like it forgets that A should be for the left.

And then sometimes it keeps going even when I lift off the key...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 3rd, 2007, 5:36 pm 
Offline

Joined: July 2nd, 2007, 10:08 pm
Posts: 5
Thats most likely a problem because most games take direct control of most keys. You could try using SendMode, Play but the major downfall of that is that ignores the speed and moves the mouse instantaneously.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 5th, 2007, 3:01 pm 
Offline

Joined: January 13th, 2006, 3:13 pm
Posts: 29
i wonder if dll sendinput or mouse_event would be better, but I am not sure how to structure them.


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], BrandonHotkey, chaosad, robotkoer, XstatyK and 66 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