wintersun Posted February 2, 2009 Share Posted February 2, 2009 (edited) Hello, I've been trying to write an Auto-It script for a game (Dreamlords) but i'm having troubles at the very start 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 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 February 2, 2009 by wintersun Link to comment Share on other sites More sharing options...
Kiti Posted February 2, 2009 Share Posted February 2, 2009 You can take a screenshot, and then analize anything you want on that picture Think outside the box.My Cool Lego Technic Website -- see walking bipeds and much more!My YouTube account -- see cool physics experimentsMy scripts:Minesweeper bot: Solves advanced level in 1 second (no registry edit), very improved GUI, 4 solving stylesCan't go to the toilet because of your kids closing your unsaved important work? - Make a specific window uncloseableCock Shooter Bot -- 30 headshots out of 30 Link to comment Share on other sites More sharing options...
wintersun Posted February 2, 2009 Author Share Posted February 2, 2009 Hey! Thats a good idea! Thanks But then again, any ideas how to make the clicks after i figure out where i want them ? 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 can't figure anything out.. Link to comment Share on other sites More sharing options...
wintersun Posted February 3, 2009 Author Share Posted February 3, 2009 *bump* Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now