TeamTalk 5 Java DLL: BearWare.WindowsHelper Class Reference

TeamTalk 5 Java DLL Version 5.18A

Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
BearWare.WindowsHelper Class Reference

Helper class for extracting Windows HWND handles and controlling mouse and keyboard. More...

## Static Public Member Functions

static System.IntPtr | GetDesktopActiveHWND ()
| Get the handle (HWND) of the window which is currently active (focused) on the Windows desktop.
static System.IntPtr | GetDesktopHWND ()
| Get the handle (HWND) of the Windows desktop (full desktop).
static bool | GetDesktopWindowHWND (int nIndex, ref System.IntPtr lpHWnd)
| Get the all the handles (HWND) of visible windows.
static bool | GetWindow (System.IntPtr hWnd, ref ShareWindow lpShareWindow)
| Get the properties of a window from its window handle (HWND).
static int | DesktopInputKeyTranslate (TTKeyTranslate nTranslate, DesktopInput[] lpDesktopInputs, out DesktopInput[] lpTranslatedDesktopInputs)
| Translate platform key-code to and from TeamTalk's intermediate format.
static int | DesktopInputExecute (DesktopInput[] lpDesktopInputs)
| Execute desktop (mouse or keyboard) input.

## Detailed Description

Helper class for extracting Windows HWND handles and controlling mouse and keyboard.

ingroup desktopshare

Definition at line 9175 of file TeamTalk.cs.

## Member Function Documentation

## ◆ GetDesktopActiveHWND()

static System.IntPtr BearWare.WindowsHelper.GetDesktopActiveHWND | ( |  | ) |

static

Get the handle (HWND) of the window which is currently active (focused) on the Windows desktop.

Definition at line 9179 of file TeamTalk.cs.

## ◆ GetDesktopHWND()

static System.IntPtr BearWare.WindowsHelper.GetDesktopHWND | ( |  | ) |

static

Get the handle (HWND) of the Windows desktop (full desktop).

Definition at line 9185 of file TeamTalk.cs.

## ◆ GetDesktopWindowHWND()

static bool BearWare.WindowsHelper.GetDesktopWindowHWND | ( | int | nIndex,
|  | ref System::IntPtr | lpHWnd )

static

Get the all the handles (HWND) of visible windows.

Definition at line 9191 of file TeamTalk.cs.

## ◆ GetWindow()

static bool BearWare.WindowsHelper.GetWindow | ( | System::IntPtr | hWnd,
|  | ref ShareWindow | lpShareWindow )

static

Get the properties of a window from its window handle (HWND).

Definition at line 9199 of file TeamTalk.cs.

## ◆ DesktopInputKeyTranslate()

static int BearWare.WindowsHelper.DesktopInputKeyTranslate | ( | TTKeyTranslate | nTranslate,
|  | DesktopInput[] | lpDesktopInputs,
|  | out DesktopInput[] | lpTranslatedDesktopInputs )

static

Translate platform key-code to and from TeamTalk's intermediate format.

Section Translation of key-codes to TTKEYCODE-format. has a table which shows how the keys on a US 104-keyboard are translated to TeamTalk's intermediate format.

Section Desktop Input and Keyboard Layouts explains how to transmit key-codes.

Parameters

  nTranslate | The key-code format to translate to and from.
  lpDesktopInputs | An array of BearWare.DesktopInput structs to translate.
  lpTranslatedDesktopInputs | A pre-allocated array of BearWare.DesktopInput struct to hold the translated desktop input.

Returns
  The number of translated BearWare.DesktopInput stucts. If value is different from `nDesktopInputCount` then some `uKeyCode` values could not be translated and have been assigned the value BearWare.DesktopInputConstants.DESKTOPINPUT_KEYCODE_IGNORE.

See also
  TeamTalkBase.SendDesktopInput()
  WindowsHelper.Execute()

Definition at line 9224 of file TeamTalk.cs.

## ◆ DesktopInputExecute()

static int BearWare.WindowsHelper.DesktopInputExecute | ( | DesktopInput[] | lpDesktopInputs | ) |

static

Execute desktop (mouse or keyboard) input.

When executed either a key-press, key-release or mouse move will take place on the computer running the client instance. Remember to calculate the offsets for the mouse cursor prior to this call. The mouse position will be relative to the screen resolution.

The content of the BearWare.DesktopInput struct must been translated to the platform's key-code format prior to this call. I.e. uKeyCode must be a either a Windows scan-code, Mac OS X Carbon key-code or one of the mouse buttons: BearWare.DesktopInputConstants.DESKTOPINPUT_KEYCODE_LMOUSEBTN, BearWare.DesktopInputConstants.DESKTOPINPUT_KEYCODE_RMOUSEBTN, BearWare.DesktopInputConstants.DESKTOPINPUT_KEYCODE_MMOUSEBTN.

Parameters

  lpDesktopInputs | The mouse or keyboard inputs.

Returns
  The number of mouse and keyboard events inserted.

See also
  WindowsHelper.KeyTranslate()

Definition at line 9254 of file TeamTalk.cs.