You are on page 1of 2

This first page of the demo contains information about the start monitoring opti ons.

Start monitoring is done by the WMonitorX COM Object. Let's say we have a variable wMonitor which instantiates the COM object. 1. Here, we can set some options about monitoring mouse and keyboard gestures. As we can see, we can capture from screen when we have a key pressed (Ctrl - in the example) and a mouse pressed (Right Button and a single click - in the examp le). We also can enable drag gestures for this key + mouse combination - i.e.: i f while pressing Ctrl key and the right mouse button we drag the cursor horizont ally along the screen, we will capture the whole text underneath our drag. Here, we have another two options: the color of the line we dragged and its style. In a pseudo-C++ language, the code should be like this: wMonitor.Start(wmKeyCtrl, wmMouseRight, true) - start monitoring for gestures fr om the Ctrl key, right mouse button, and true for allowing mouse dragging gestur es. 2. By setting this option and a hotkey configuration (in the example - CTRL + SH IFT + M) we can start monitoring for capturing at mouse cursor when firing this hotkey configuration. In a pseudo-C++ language, the code should be like this: Hotkey2MonitorParams(dwHotkeyCursor, nModifier, nKey); wMonitor.Start3(nModifier, nKey, &nHotkeyCursorId); Here, the dwHotkey cursor is a DWORD which stores the hotkey configuration, and the function Hotkey2MonitorParams extracts in nModifier the special key conf iguration (here - CTRL + SHIFT) and in nKey the key that is pressed (here M). Yo u should check out our demo example source projects for a better understanding o f this. 3. By setting this option and a hotkey configuration (in the example - CTRL + SH IFT + M) we can start monitoring for capturing at caret when firing this hotkey configuration. In a pseudo-C++ language, the code should be like this: Hotkey2MonitorParams(dwHotkeyCursor, nModifier, nKey); wMonitor.Start3(nModifier, nKey, &nHotkeyCaretId); Here, the dwHotkey cursor is a DWORD which stores the hotkey configuration, and the function Hotkey2MonitorParams extracts in nModifier the special key conf iguration (here - CTRL + SHIFT) and in nKey the key that is pressed (here C). Yo u should check out our demo example source projects for a better understanding o f this. 4. By setting this option and a hotkey configuration (in the example - CTRL + SH IFT + M) we can start monitoring for capturing the selected text when firing thi s hotkey configuration. In a pseudo-C++ language, the code should be like this: Hotkey2MonitorParams(dwHotkeyCursor, nModifier, nKey); wMonitor.Start3(nModifier, nKey, &nHotkeyCaretId); Here, the dwHotkey cursor is a DWORD which stores the hotkey configuration, and the function Hotkey2MonitorParams extracts in nModifier the special key conf

iguration (here - CTRL + SHIFT) and in nKey the key that is pressed (here T). Yo u should check out our demo example source projects for a better understanding o f this. 5. When enabling this option, the application starts monitoring for capturing wh en mouse over after a certain amount of time (here 2 seconds). In a pseudo-C++ language, the code should be like this: wMonitor.Start2(2000), where 2000 is the amount of time in miliseconds.

You might also like