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.
[05:00 pm]
lil-Inferno -- benis
[10:41 am]
v9bettel -- Nice
[01:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
hey cut it out I'm getting all the minerals
[10:11 pm]
Ultraviolet -- :P
[10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
[2024-4-17. : 11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- o, due to a donation i now have enough minerals to send you minerals
[2024-4-17. : 3:26 am]
O)FaRTy1billion[MM] -- i have to ask for minerals first tho cuz i don't have enough to send
Please log in to shout.


Members Online: DarkenedFantasies, Roy