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.
[07:46 am]
RIVE -- :wob:
[2024-4-22. : 6:48 pm]
Ultraviolet -- :wob:
[2024-4-21. : 1:32 pm]
Oh_Man -- I will
[2024-4-20. : 11:29 pm]
Zoan -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
[2024-4-20. : 8:20 pm]
Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
[2024-4-20. : 8:20 pm]
Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
[2024-4-20. : 8:18 pm]
Ultraviolet -- Oh_Man
Oh_Man shouted: lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
oh ya I saw that when Armo posted it on Discord, pretty crazy
[2024-4-20. : 8:09 pm]
Vrael -- thats less than half of what I thought I'd need, better figure out how to open SCMDraft on windows 11
[2024-4-20. : 8:09 pm]
Vrael -- woo baby talk about a time crunch
[2024-4-20. : 8:08 pm]
Vrael -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
so that gives me approximately 27 more years to finish tenebrous before you get to it?
Please log in to shout.


Members Online: IlyaSnopchenko, Roy, jun3hong