zykl0 Posted November 3, 2005 Posted November 3, 2005 Hello! im using actool for around 2year now for scripting game-bot but now with my new game i have a problem to resolve and actool is not able to resolve it and i want to know if its possible to do it with auto-it before i read the whole manual ok!, im doing a hunting-bot and the only way to know a enemy is around is when my cursor go over a mob and the cursor change, actool is not able to get pixel from cursor, this is why i need to know if auto-it able to work with that. and btw what kind of pixel auto-it is able to get from screen, i guess he can get a single pixel from x,y but is he able to take some "image snippets" ?? plzokthx !!
LxP Posted November 3, 2005 Posted November 3, 2005 Welcome to the forums!MouseGetCursor() can be used to determine the current mouse cursor. PixelChecksum() can be used to obtain a checksum of an area of pixels, so if the content of some area is precisely the same over two calls then the result of PixelChecksum() will also be the same.
zykl0 Posted November 3, 2005 Author Posted November 3, 2005 cool, but can we get pixel match from the cursor aswell?
LxP Posted November 3, 2005 Posted November 3, 2005 I suppose it depends on the game mostly. Some games actually draw the mouse cursor as part of the game window itself, which means that you could easily determine pixels from the cursor. If not, then I don't think that it's easily possible.
zykl0 Posted November 3, 2005 Author Posted November 3, 2005 i am trying to work with MouseGetCursor() but it seems impossible to determine which cursor is because the game use his own, is there anyway to force an apps to use hardware cursor even if its not enabled in the apps?
lopolop Posted November 3, 2005 Posted November 3, 2005 just curious but what game? because someone may have allready found the solotion on the forum.
Knight Posted November 3, 2005 Posted November 3, 2005 If you want to be fancy and know anything about process memory, you could read the health/etc straight from the game rather then using pixel checking. Search the forum for reading process memory, there is a few functions out there.
zykl0 Posted November 3, 2005 Author Posted November 3, 2005 yup, sounds interesting if i am developing more this bot but if auto-it cant handle the in-game cursor switching when i mouseover a mob that sucks Goonzu Downloadif some of you want a challenge
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