patgenn123 Posted October 29, 2008 Report Share Posted October 29, 2008 Hello all! I am trying to get ME to tell me what the total pixel area is on the screen. For example, top left = 0,0 top right 1279, 0 bottom left = 0, 1023 bottom right = 1279, 1023 Is there anyway for macro to tell me these on any screen by doing a search? Thanks! Pat Quote Link to comment Share on other sites More sharing options...
stevecasper Posted October 29, 2008 Report Share Posted October 29, 2008 Hello all! I am trying to get ME to tell me what the total pixel area is on the screen. For example, top left = 0,0 top right 1279, 0 bottom left = 0, 1023 bottom right = 1279, 1023 Is there anyway for macro to tell me these on any screen by doing a search? Thanks! Pat Area = (Length)(Width) Fortunately, Macro Express gives us the tools to find both Height (Length) and Width of either your screen or the window of your choosing in the Variable Set Integer command. Then with a basic multiplication function found in the Modify Integer command, you can calculate the total pixel area of either your screen or your window. // To Collect total pixel area on the screen do the following: Variable Set Integer %N1% from Screen Width Variable Set Integer %N2% from Screen Height Variable Modify Integer: %N3% = %N1% * %N2% Text Box Display: Total Pixel area... // To Collect total pixel area on any give window do this: Variable Set Integer %N1% from Width of Window Variable Set Integer %N2% from Height of Window Variable Modify Integer: %N3% = %N1% * %N2% Text Box Display: Total Pixel area... <REM2:To Collect total pixel area on the screen do the following:><IVAR2:01:14:><IVAR2:02:15:><NMVAR:03:03:1:0000001:1:0000002><TBOX4:T:1:CenterCenter000278000200:000:Total Pixel area......of screen %N1% Pixels Wide %N2% Pixels High %N3% = Total Area><REM2:To Collect total pixel area on any give window do this:><IVAR2:01:09:><IVAR2:02:10:><NMVAR:03:03:1:0000001:1:0000002><TBOX4:T:1:CenterCenter000278000200:000:Total Pixel area......of window %N1% Pixels Wide %N2% Pixels High %N3% = Total Area> Quote Link to comment Share on other sites More sharing options...
patgenn123 Posted October 29, 2008 Author Report Share Posted October 29, 2008 You are something else Scaspar. Some of these things i just don't know yet because I am not a programmer. I just fiddle with the program at times. These times I have some more time on my hands and I can only thank you and everyone else for your knowledge. Thanks ALL!!!!!! Pat Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.