Friday, 19 September 2014

Getting The Screen Resolution in AX

                                               Getting The Screen Resolution in AX


To get the screen Resolution we can write a job in AX,,,,,,,,,,,,,,,,,,,,,

static void ResolnMetrics(Args _args)
{
#WinAPI
int screenWidth, screenHeight;
;
screenWidth = WinAPI::getSystemMetrics(#SM_CXSCREEN);
screenHeight = WinAPI::getSystemMetrics(#SM_CYSCREEN);
info(strfmt("Screen resolution: %1 x %2",screenWidth, screenHeight));

}

Run the job and see............................!!!!!!!!!!!!



The Screen resolution is  1280*720                                                                                                           



No comments:

Post a Comment