Jump to content
Sign in to follow this  

Unlocking a "locked" mouse!?

Recommended Posts


Hello, I've been trying to write an Auto-It script for a game (Dreamlords) but i'm having troubles at the very start :think:

The game can be run in windowed mode so i launched the AutoIt Window Info program and wanted to "grab" some coordinates so i can examine the pixels there later on.. Thats when i faced my problem. The game hides and "locks" the real mouse pointer in the middle of the screen, and then when you move your mouse or use the MouseMove() Function to the game window, what really happens is that you only move the game cursor, but the real mouse cursor stays still(in the middle of the screen). That prevents me from getting the game cursor coordinates and all i get is a frozen mouse cursor stayng at x=const y=const.. i guess you can see where my problem is now :)

I hope you guys faced this before and that you can offer that poor noob some advice :lmao: It would be greatly appreciated!

Edit: As I finished writing I got this idea:

Since I know the window resolution it will be easy to get the coordinates of the very middle of the screen, store it in a variable and work from there insted of using the MouseGetPos() Function

Any other suggestions?

Cheers! Wintersun.

Edited by wintersun

Share this post

Link to post
Share on other sites

Hey! :shhh: Thats a good idea! Thanks :)

But then again, any ideas how to make the clicks after i figure out where i want them ? :lmao:

I tried the method i mentioned in my first post, but sadly it doesnt do the job... i can move the game cursor but i will never get correct coordinates (Ex. I'm in the middle of the screen where my X variable shows that i'm at the -100 coordinate at X) Since i have no control over the game cursor (as far as i can tell) and i never really know where exactly is it on the screen.

This one really got me :think: can't figure anything out..

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.