BioCore  4.0.1
A .NET library & program for annotating, editing various microscopy imaging formats using Bioformats supported images. Including whole slide, pyramidal, and series.
All Classes Namespaces Functions Enumerations Properties
BioCore.Win32 Class Reference

Classes

struct  Rect
 

Public Member Functions

static short GetAsyncKeyState (System.Windows.Forms.Keys vKey)
 
static IntPtr GetForegroundWindow ()
 
static int GetWindowText (IntPtr hWnd, StringBuilder text, int count)
 
static bool SetForegroundWindow (IntPtr hWnd)
 
static void mouse_event (int dwFlags, int dx, int dy, int dwData, int dwExtraInfo)
 
static bool GetWindowRect (IntPtr hwnd, ref Rect rectangle)
 

Static Public Member Functions

static bool GetKeyState (System.Windows.Forms.Keys vKey)
 
static void MouseWheelUp ()
 "MouseWheelUp()" is a function that simulates a mouse wheel up event. More...
 
static void MouseWheelDown ()
 MouseWheelDown() simulates a mouse wheel down event. More...
 
static void SetFocus (string process)
 
static bool RunningOnWine ()
 
static string GetActiveWindowTitle ()
 

Static Public Attributes

const int WM_KEYDOWN = 0x100
 
const int WM_KEYUP = 0x101
 
const int MOUSEEVENTF_ABSOLUTE = 0x8000
 
const int MOUSEEVENTF_LEFTDOWN = 0x0002
 
const int MOUSEEVENTF_LEFTUP = 0x0004
 
const int MOUSEEVENTF_MIDDLEDOWN = 0x0020
 
const int MOUSEEVENTF_MIDDLEUP = 0x0040
 
const int MOUSEEVENTF_MOVE = 0x0001
 
const int MOUSEEVENTF_RIGHTDOWN = 0x0008
 
const int MOUSEEVENTF_RIGHTUP = 0x0010
 
const int MOUSEEVENTF_WHEEL = 0x0800
 
const int MOUSEEVENTF_XDOWN = 0x0080
 
const int MOUSEEVENTF_XUP = 0x0100
 
const int MOUSEEVENTF_HWHEEL = 0x01000
 

Detailed Description

Definition at line 7 of file Win32.cs.

Member Function Documentation

◆ GetActiveWindowTitle()

static string BioCore.Win32.GetActiveWindowTitle ( )
static

It gets the title of the active window

Returns
The title of the active window.

Definition at line 105 of file Win32.cs.

◆ GetKeyState()

static bool BioCore.Win32.GetKeyState ( System.Windows.Forms.Keys  vKey)
static

It returns true if the key is pressed, and false if it isn't

Parameters
vKeyThe key you want to check.
Returns
The return value is a short integer with the high order bit set if the key is down and the low order bit set if the key was pressed after the previous call to GetAsyncKeyState.

Definition at line 20 of file Win32.cs.

◆ GetWindowRect()

static bool BioCore.Win32.GetWindowRect ( IntPtr  hwnd,
ref Rect  rectangle 
)

GetWindowRect() returns the coordinates of the window's upper-left and lower-right corners in screen coordinates.

Parameters
IntPtrA pointer to a window handle.
RectA struct that contains the coordinates of the upper-left and lower-right corners of the rectangle.

◆ MouseWheelDown()

static void BioCore.Win32.MouseWheelDown ( )
static

MouseWheelDown() simulates a mouse wheel down event.

Definition at line 76 of file Win32.cs.

◆ MouseWheelUp()

static void BioCore.Win32.MouseWheelUp ( )
static

"MouseWheelUp()" is a function that simulates a mouse wheel up event.

Definition at line 71 of file Win32.cs.

◆ RunningOnWine()

static bool BioCore.Win32.RunningOnWine ( )
static

If the process "winlogon" is running, then we are on Windows. If it is not running, then we are on Wine

Returns
The return value is a boolean value.

Definition at line 93 of file Win32.cs.

◆ SetFocus()

static void BioCore.Win32.SetFocus ( string  process)
static

It takes a string as a parameter, and then sets the focus to the process that matches the string

Parameters
processThe name of the process you want to focus on.

Definition at line 84 of file Win32.cs.

Member Data Documentation

◆ MOUSEEVENTF_ABSOLUTE

const int BioCore.Win32.MOUSEEVENTF_ABSOLUTE = 0x8000
static

Definition at line 48 of file Win32.cs.

◆ MOUSEEVENTF_HWHEEL

const int BioCore.Win32.MOUSEEVENTF_HWHEEL = 0x01000
static

Definition at line 59 of file Win32.cs.

◆ MOUSEEVENTF_LEFTDOWN

const int BioCore.Win32.MOUSEEVENTF_LEFTDOWN = 0x0002
static

Definition at line 49 of file Win32.cs.

◆ MOUSEEVENTF_LEFTUP

const int BioCore.Win32.MOUSEEVENTF_LEFTUP = 0x0004
static

Definition at line 50 of file Win32.cs.

◆ MOUSEEVENTF_MIDDLEDOWN

const int BioCore.Win32.MOUSEEVENTF_MIDDLEDOWN = 0x0020
static

Definition at line 51 of file Win32.cs.

◆ MOUSEEVENTF_MIDDLEUP

const int BioCore.Win32.MOUSEEVENTF_MIDDLEUP = 0x0040
static

Definition at line 52 of file Win32.cs.

◆ MOUSEEVENTF_MOVE

const int BioCore.Win32.MOUSEEVENTF_MOVE = 0x0001
static

Definition at line 53 of file Win32.cs.

◆ MOUSEEVENTF_RIGHTDOWN

const int BioCore.Win32.MOUSEEVENTF_RIGHTDOWN = 0x0008
static

Definition at line 54 of file Win32.cs.

◆ MOUSEEVENTF_RIGHTUP

const int BioCore.Win32.MOUSEEVENTF_RIGHTUP = 0x0010
static

Definition at line 55 of file Win32.cs.

◆ MOUSEEVENTF_WHEEL

const int BioCore.Win32.MOUSEEVENTF_WHEEL = 0x0800
static

Definition at line 56 of file Win32.cs.

◆ MOUSEEVENTF_XDOWN

const int BioCore.Win32.MOUSEEVENTF_XDOWN = 0x0080
static

Definition at line 57 of file Win32.cs.

◆ MOUSEEVENTF_XUP

const int BioCore.Win32.MOUSEEVENTF_XUP = 0x0100
static

Definition at line 58 of file Win32.cs.

◆ WM_KEYDOWN

const int BioCore.Win32.WM_KEYDOWN = 0x100
static

Definition at line 11 of file Win32.cs.

◆ WM_KEYUP

const int BioCore.Win32.WM_KEYUP = 0x101
static

Definition at line 12 of file Win32.cs.


The documentation for this class was generated from the following file: