We have a desktop application (built in Visual Basic), where we provide the user with the capability to record/save/playback the macros (mouse and keybord events). For this we have used Windows hooks: SetWindowsHookEx function with 'WH_JOURNALRECORD' hook for recording and 'WH_JOURNALPLAYBACK' hook for playback. We are capturing the events from all the threads running on desktop (dwThreadId = 0).
This being a legacy system used to work fine on Windows XP and Win7. When using this macro playback functionality on Windows 8, all recorded events are played back without any issue, but if I have to scroll on the application window (Press and Hold the left mouse click and drag mouse to move up and down), this event is not played back on WIndows 8.
Can someone please suggest, if I have to change some settings (registry or application specific) for this to work on Windows 8 or there is some known issue on Win8 related to this.
Just to add, this application is running under admin user context. We have disabled the UAC, but still it doesn't work.
Please sign in to leave a comment.