hey all. jw, is there a way to select a client other than using the cross hairs? any procedures/functions?
hey all. jw, is there a way to select a client other than using the cross hairs? any procedures/functions?
List of client functions:
Take a look at some of the Find and Set window functions there.Code:Client control functions procedure FindWindow(Title: string); Finds Client window with specified title. Character case of Title must match that in window title exactly. function FindWindowTitlePart(Title: string; CaseSensitive: Boolean): Boolean; Finds window that contains text specified by Title parameter in window caption. function FindWindowBySize(Width, Height: Integer): Boolean; Finds window with specified size. procedure ActivateClient; Activate client window. function GetClientWindowHandle: Integer; Get Windows handle value of active client window. procedure SetClientWindowHandle(H: Integer); Set active client window to handle H. Example: H:= GetClientWindowHandle; //specify another client window FindWindow('Debug Image'); ... //return to previous client SetClientWindowHandle(H); procedure SetDesktopAsClient; Sets the desktop (default window) as selected client. procedure SetTargetBitmap(bitmap: Integer); Sets bitmap as target for all color/bitmap searching functions. After calling SetTargetBitmap all functions won't be working with client but with specified bitmap. Example: SetTargetBitmap(flagstaff); if(FindColor(x, y, $000066, 0, 0, 3, 2))then ... The sample above will not search on client screen but in bitmap "flagstaff" instead. procedure GetClientDimensions(var Width, Height: Integer); Get client width and height. procedure CopyClientToBitmap(bitmap: Integer; xs, ys, xe, ye: Integer); Copy client screen part to bitmap specified. procedure SetTargetDc(Dc: HDC); Sets and external device context as target for SCAR's colorfinding functions. function GetTargetDC: HDC; Returns the DC of the currently selected window/bitmap. procedure ResetDc; Sets the device context of SCAR's selected window as target for SCAR's colorfinding functions. function GetBitmapDc(Bmp: Integer): HDC; Returns the device contect of the entered bitmap.
The SCAR manual. Open SCAR, press F1.
There are currently 1 users browsing this thread. (0 members and 1 guests)