vitor Posted March 27, 2007 Posted March 27, 2007 Hi I play a game that I cannot use the function Pixelsearch to get the pixel color of the screen. Its a game guard protection. So I have to take a screenshot (using Dllcall) and open the bitmap file to analyze it. The problem is that it takes TOO long using the library provided by eviltoaster (http://www.autoitscript.com/forum/index.php?showtopic=27362&hl=bitmap) It takes more than 30min to open a screenshot of size 1024x768. Anyone has another library that reads BMP faster ? Or a direct call from a DLL. Or any ideias.... Thanks
Toady Posted March 27, 2007 Posted March 27, 2007 HiI play a game that I cannot use the function Pixelsearch to get the pixel color of the screen.Its a game guard protection.So I have to take a screenshot (using Dllcall) and open the bitmap file to analyze it.The problem is that it takes TOO long using the library provided by eviltoaster (http://www.autoitscript.com/forum/index.php?showtopic=27362&hl=bitmap)It takes more than 30min to open a screenshot of size 1024x768.Anyone has another library that reads BMP faster ?Or a direct call from a DLL. Or any ideias....Thanks 30min to open a pic? Efficient LOL www.itoady.com A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding
jvanegmond Posted March 27, 2007 Posted March 27, 2007 Wait... Take a screenshot using a DllCall. Why not make a screenshot of the pixel you want, and open that? That would take like 200ms in total. :| github.com/jvanegmond
vitor Posted March 28, 2007 Author Posted March 28, 2007 Wait... Take a screenshot using a DllCall.Why not make a screenshot of the pixel you want, and open that? That would take like 200ms in total. :|Im taking screenshot with DLLCall.The problem is that I dunno where the pixel is, so I must search it in all the picture image.
xzaz Posted March 28, 2007 Posted March 28, 2007 Wich game is this. I hope not Silkroad Online? Small Color Picker v0.2 | Travian bot
KalInEx Posted March 28, 2007 Posted March 28, 2007 (edited) It would be interesting to know how gameguard is blocking the testing of pixel color. Maybe it is device context specific or even specific just to the pixel getter routine your using. So if you used a DC for the desktop window it might work? Or a bitmap capturing routine that only grabs 1 pixel? These games using "RootKits" to block API calls are just nuts IMO... Edited March 28, 2007 by KalInEx
vitor Posted March 28, 2007 Author Posted March 28, 2007 It would be interesting to know how gameguard is blocking the testing of pixel color. Maybe it is device context specific or even specific just to the pixel getter routine your using. So if you used a DC for the desktop window it might work? Or a bitmap capturing routine that only grabs 1 pixel?These games using "RootKits" to block API calls are just nuts IMO...I cannot grab 1 pixel because I dunno where that pixel is, so I must search the entire picture for a certain color.Im using DllCall to get the screenshoot and save to a bmp file, and its working fine and fast.The problem is to open it and look inside 1024x768 pixels.I think I need a DLL function that do that faster, but it seems many people are looking for it and dont find.Thx
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