Staredit Network > Forums > Technology & Computers > Topic: Looking for a program that detects mouse position and forces key
Looking for a program that detects mouse position and forces key
Feb 23 2015, 6:21 am
By: LoveLess  

Feb 23 2015, 6:21 am LoveLess Post #1

Let me show you how to hump without making love.

So basically, I am looking for a program that I can set up a system that will do the following:

When I hold down my Right Mouse Button and have my mouse within a certain set of X/Y coordinates, it will perform a certain action. I need to be able to continuously hold down the RMB and move my mouse around, but it will keep updating depending on where my mouse is positioned.

Splitting up the screen into eight cardinal directions, W for the up-center, WA for the upleft-center, A for the left-center, etc.



None.

Feb 23 2015, 3:20 pm NudeRaider Post #2

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

http://www.autohotkey.com/

Seems to be pretty powerful despite being open source.
Comes with a couple handy features:
- record (and convert to an editable script) mouse and keyboard input
- add script syntax to popular text editors like notepad++
- monitor window that shows cursor position and more
- tutorial
- decent Windows integration




Feb 23 2015, 8:54 pm rockz Post #3

ᴄʜᴇᴇsᴇ ɪᴛ!

second on AHK.

http://www.autohotkey.com/docs/commands/MouseGetPos.htm
Seems a simple if-then statement where MouseGetPos is run for the X and Y positions.

http://www.autohotkey.com/docs/commands/WinGetActiveTitle.htm
I would also recommend using WinGetActiveTitle to make sure you only issue said commands when you're in the game.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Feb 25 2015, 3:57 pm LoveLess Post #4

Let me show you how to hump without making love.

Thanks guys, have got it working... To an extent. It's a bit too... unnatural so I have bailed on it entirely, just not fluid enough for an ARPG game and it's better to just use their WASD controls than deal with the minor delay.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[06:11 pm]
Ultraviolet -- :wob:
[2023-2-04. : 11:43 am]
Zycorax -- :wob:
[2023-2-03. : 6:54 pm]
Zoan -- :wob:
[2023-2-03. : 3:35 am]
Ultraviolet -- :wob:
[2023-2-02. : 3:26 am]
Ultraviolet -- :wob:
[2023-2-01. : 2:29 am]
Ultraviolet -- how about yourself?
[2023-2-01. : 2:29 am]
Ultraviolet -- pretty good elite ejaculator
[2023-1-31. : 10:07 pm]
ejac1337 -- How's it going guys?
[2023-1-31. : 2:59 pm]
No-Name-Needed-II -- @Ultraviolet Thanks! It wasn't easy defeating the TMOANC lol..
[2023-1-30. : 8:45 pm]
Ultraviolet -- No-Name-Needed-II
No-Name-Needed-II shouted: Nobody showed interest in Authoring a story for my KotK Shores of Hell terrain so I uploaded it to terrain genre, You'll never look at Asheworld Tileset the same way again :) http://www.staredit.net/sc1db/file/6236/
Checked it out last night, definitely looks interesting. Can tell a lot of effort went into it
Please log in to shout.


Members Online: Roy, Dem0n