Hi,
I managed to work out what i need, and then figured out i needed to use C/C++ to use the API functions(.
The problem now is, that i have very limited use of c/c++.
so far i have;
#include "stdafx.h"
#include "Winuser.h"
#include "Windows.h"
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
//for(!stop) - loop until stopped, maybe with button?
typedef struct coOrd { LONG left;
LONG top;
LONG right;
LONG bottom;
} RECT, *PRECT;
BOOL GetClientRect(HWND GetForegroundWindow(VOID),LPRECT coOrd);
}
now, from what ive gathered, it will create the coOrd structure, and then put the forground co-orinated into it.
how can i access these co-ordinates, and put them into a file. how easy is it to add a go/stop button.
i am very un-skilled at c, any help would be greatly appreciated.
thank-you
VPR
I managed to work out what i need, and then figured out i needed to use C/C++ to use the API functions(.
The problem now is, that i have very limited use of c/c++.
so far i have;
#include "stdafx.h"
#include "Winuser.h"
#include "Windows.h"
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
//for(!stop) - loop until stopped, maybe with button?
typedef struct coOrd { LONG left;
LONG top;
LONG right;
LONG bottom;
} RECT, *PRECT;
BOOL GetClientRect(HWND GetForegroundWindow(VOID),LPRECT coOrd);
}
now, from what ive gathered, it will create the coOrd structure, and then put the forground co-orinated into it.
how can i access these co-ordinates, and put them into a file. how easy is it to add a go/stop button.
i am very un-skilled at c, any help would be greatly appreciated.
thank-you
VPR