ricky Posted October 6, 2010 Share Posted October 6, 2010 (edited) Hello, I have one software with a maybe a problem with the value of GDI and private bytes. Can I with autoit capture this 2 values? See one example in the picture. Thaks in advance Best Regards Edited October 6, 2010 by ricky03 Link to comment Share on other sites More sharing options...
AlmarM Posted October 6, 2010 Share Posted October 6, 2010 (edited) found this, no idea how to create of function out of it though.http://msdn.microsoft.com/en-us/library/ms683192%28VS.85%29.aspxDWORD gdiCount = GetGuiResources(hProcess, GR_GDIOBJECTS);Found it!#include <WinAPI.au3> Global Const $GR_GDIOBJECTS = 0 MsgBox(0, "", "Number of GDI Objects for current process: " & _WinAPI_GetGuiResources($GR_GDIOBJECTS)) Edited October 6, 2010 by AlmarM Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
ricky Posted October 6, 2010 Author Share Posted October 6, 2010 For the privateBytes, I found it in the examples with this : CompInfo.au3 AlmarM : Thanks,and for a specific exe? for example calc.exe? Link to comment Share on other sites More sharing options...
AlmarM Posted October 6, 2010 Share Posted October 6, 2010 For the privateBytes, I found it in the examples with this : CompInfo.au3 AlmarM : Thanks,and for a specific exe? for example calc.exe? $PID = WinGetProcess("title of process goes here") _WinAPI_GetGuiResources($GR_GDIOBJECTS, $PID) Something like that. Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
ricky Posted October 8, 2010 Author Share Posted October 8, 2010 Thanks, I will try... Link to comment Share on other sites More sharing options...
jaberwacky Posted October 8, 2010 Share Posted October 8, 2010 The value of GDI objects fits neatly into the supply and demand model of classic economics. Demand for these items is high, however, the demand is far outpaced by the infinite supply of GDI objects. This means that the cost for these objects approaches zero at an infinite rate. Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? 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