Jump to content
Macro Express Forums

ME recognizing Pixel Screen


patgenn123

Recommended Posts

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>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...