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:47 pm]
NimoStar -- If its any consolation, the human brain would still mop the floor with this bot if it wasn't limited by the mechanical interface
[05:34 pm]
NimoStar -- Well. The bot didn't come up with any new strategy. It just has superhuman micro. Hard to beat that. I reckon even the simplest dedicated chess engines are unbeatable for humans now.
[02:13 pm]
Oh_Man -- all g
[10:54 am]
NudeRaider -- Oh_Man
Oh_Man shouted: NudeRaider did u watch the entire video? it's not one game. it's currently dominating the ladder at number 1 position. do ur research first!
Oops, caught me there, no I haven't. :( I was imagining how the game went. Sorry for that. Watching it now. brb
[10:52 am]
NudeRaider -- NimoStar
NimoStar shouted: They were not "Unprepared" that was their fifth loss in a row against the bot. The other replays are also available
that doesn't mean he was prepared. When humans come around with new strategies it often takes weeks until the pros figure out how to shut it down. Oh_Man that's certainly a way more convincing argument for micro being "too good to beat".
[09:43 am]
DiearAnother -- wirefram
[08:35 am]
NimoStar -- Well, pros showed that long ago... half of zerg pros just ling muta rush
[08:35 am]
NimoStar -- " its shown is that you can trade 1000's of apm to make up for lack of strategy"
[03:25 am]
Oh_Man -- https://youtu.be/R_6bsf9REkY anyone ever tried playing SC ghost?
Please log in to shout.


Members Online: Symmetry