You can use Win32 for that, just that you need to carefully craft your recorder.
Here are some function that you may use:
($x,$y) = GetCursorPos() *
Retrieves the cursor's position,in screen coordinates as (x,y) array.
GetCaretPos()
Retrieves the caret's position, in client coordinates as (x,y) array.
+(Like Windows function)
IsKeyPressed($key)
Wrapper around the GetAsyncKeyState API function. Returns TRUE if the
+user presses the specified key.
FindWindowLike($window,$titleregex,$classregex,$childid,$maxlevel)
Finds the window handles of the windows matching the specified paramet
+ers and returns them as a list.
$text = WMGetText($hwnd) *
Sends a WM_GETTEXT to a window and returns its contents
GetListViewContents($window)
The point is that you can "record" a session using Win32, it's just not that simple.
|