robotgo/docs/doc.md

542 lines
10 KiB
Markdown
Raw Permalink Normal View History

2017-03-15 08:25:55 +00:00
# Methods:
##### [GetVersion](#GetVersion)
## [Keyboard](#Keyboard)
##### [Keys](https://github.com/go-vgo/robotgo/blob/master/docs/keys.md)
2017-04-03 13:37:22 +00:00
##### [SetKeyboardDelay](#SetKeyDelay) (Equivalent to SetKeyDelay, Wno-deprecated)
2017-03-15 08:25:55 +00:00
##### [SetKeyDelay](#SetKeyDelay)
##### [KeyTap](#KeyTap)
##### [KeyToggle](#KeyToggle)
##### [TypeString](#TypeString)
2017-04-03 13:37:22 +00:00
##### [TypeStringDelayed](#TypeStrDelay) (Equivalent to TypeStrDelay, Wno-deprecated)
2017-03-15 08:25:55 +00:00
##### [TypeStrDelay](#TypeStrDelay)
## [Mouse](#Mouse)
##### [SetMouseDelay](#SetMouseDelay)
##### [MoveMouse](#MoveMouse)
2017-04-03 13:37:22 +00:00
##### [Move](#MoveMouse) (Equivalent to MoveMouse)
2017-03-15 08:25:55 +00:00
##### [MoveMouseSmooth](#MoveMouseSmooth)
2017-04-03 13:37:22 +00:00
##### [MoveSmooth](#MoveMouseSmooth) (Equivalent to MoveMouseSmooth)
2017-03-15 08:25:55 +00:00
##### [MouseClick](#MouseClick)
2017-04-03 13:37:22 +00:00
##### [Click](#MouseClick) (Equivalent to MouseClick)
2017-03-15 08:25:55 +00:00
##### [MoveClick](#MoveClick)
##### [MouseToggle](#MouseToggle)
##### [DragMouse](#DragMouse)
2017-04-03 13:37:22 +00:00
##### [Drag](#DragMouse) (Equivalent to DragMouse)
2017-03-15 08:25:55 +00:00
##### [GetMousePos](#GetMousePos)
##### [ScrollMouse](#ScrollMouse)
## [Screen](#Screen)
##### [GetPixelColor](#GetPixelColor)
##### [GetScreenSize](#GetScreenSize)
##### [CaptureScreen](#CaptureScreen)
##### [GetXDisplayName(Linux)](#GetXDisplayName)
##### [SetXDisplayName(Linux)](#SetXDisplayName)
## [Bitmap](#Bitmap)
2016-10-08 12:45:18 +00:00
This is a work in progress.
2016-10-08 10:38:54 +00:00
2017-03-15 08:25:55 +00:00
##### [FindBitmap](#FindBitmap)
##### [OpenBitmap](#OpenBitmap)
##### [SaveBitmap](#SaveBitmap)
##### [TostringBitmap](#TostringBitmap)
##### [GetPortion](#GetPortion)
##### [Convert](#Convert)
2016-10-08 12:34:12 +00:00
2017-03-15 08:25:55 +00:00
## [Event](#Event)
2016-10-30 13:35:01 +00:00
2017-04-03 13:37:22 +00:00
##### [LEvent](#LEvent) (Equivalent to AddEvent, Wno-deprecated)
2017-03-15 08:25:55 +00:00
##### [AddEvent](#AddEvent)
##### [StopEvent](#StopEvent)
2016-10-30 13:35:01 +00:00
2017-03-15 08:25:55 +00:00
## [Window](#Window)
2016-11-07 08:46:22 +00:00
This is a work in progress.
2017-03-15 08:25:55 +00:00
##### [ShowAlert](#ShowAlert)
##### [CloseWindow](#CloseWindow)
##### [IsValid](#IsValid)
##### [SetActive](#SetActive)
##### [GetActive](#GetActive)
##### [SetHandle](#SetHandle)
##### [GetHandle](#GetHandle)
##### [GetBHandle](#GetHandle)
##### [GetTitle](#GetTitle)
##### [GetPID](#GetPID)
### <h3 id="GetVersion">.GetVersion()</h3>
2017-03-24 15:14:55 +00:00
Get robotgo version
2016-10-30 13:35:01 +00:00
2017-03-15 08:25:55 +00:00
## <h2 id="Keyboard">Keyboard</h2>
2016-10-24 13:34:42 +00:00
2017-03-15 08:25:55 +00:00
### <h3 id="SetKeyDelay">.SetKeyDelay(ms)</h3>
2016-10-08 12:34:12 +00:00
Sets the delay in milliseconds to sleep after a keyboard event. This is 10ms by default.
2017-03-15 08:25:55 +00:00
#### Arguments:
2016-10-08 12:34:12 +00:00
ms - Time to sleep in milliseconds.
2016-10-24 13:41:59 +00:00
###<h3 id="KeyTap">.KeyTap(key, modifier)</h3>
2016-10-08 12:34:12 +00:00
Press a single key.
2017-03-15 08:25:55 +00:00
#### Arguments:
2016-10-08 12:34:12 +00:00
2017-02-24 18:40:10 +00:00
key - See [keys](https://github.com/go-vgo/robotgo/blob/master/docs/keys.md).
2017-02-24 17:34:13 +00:00
modifier (optional, string or array) - Accepts alt, command (win), control, and shift.
2016-10-08 12:34:12 +00:00
2017-03-15 08:25:55 +00:00
#### Examples:
2016-11-14 10:20:43 +00:00
```Go
2017-03-15 08:25:55 +00:00
robotgo.KeyTap("h", "command")
robotgo.KeyTap("i", "alt", "command")
arr := []string{"alt", "command"}
robotgo.KeyTap("i", arr)
2016-11-14 10:20:43 +00:00
```
2017-03-15 08:25:55 +00:00
### <h3 id="KeyToggle">.KeyToggle(key, down, modifier)</h3>
2016-10-08 12:34:12 +00:00
Hold down or release a key.
2017-03-15 08:25:55 +00:00
#### Arguments:
2016-10-08 12:34:12 +00:00
2017-02-24 18:40:10 +00:00
key - See [keys](https://github.com/go-vgo/robotgo/blob/master/docs/keys.md).
down - Accepts 'down' or 'up'.
2017-02-24 17:34:13 +00:00
modifier (optional, string or array) - Accepts alt, command (mac), control, and shift.
2016-10-08 12:34:12 +00:00
2017-03-15 08:25:55 +00:00
#### Return:
2016-12-30 09:13:21 +00:00
return KeyToggle status
2017-03-15 08:25:55 +00:00
### <h3 id="TypeString">.TypeString(string)</h3>
2016-10-08 12:34:12 +00:00
2017-03-15 08:25:55 +00:00
#### Arguments:
2016-10-08 12:34:12 +00:00
string - The string to send.
2017-03-15 08:25:55 +00:00
### <h3 id="TypeStrDelay">.TypeStrDelay(string, cpm)</h3>
2016-10-08 12:34:12 +00:00
2017-03-15 08:25:55 +00:00
#### Arguments:
2016-10-08 12:34:12 +00:00
string - The string to send.
cpm - Characters per minute.
2017-03-15 08:25:55 +00:00
## <h2 id="Mouse">Mouse</h2>
2016-10-24 13:34:42 +00:00
2017-03-15 08:25:55 +00:00
### <h3 id="SetMouseDelay">.SetMouseDelay(ms)</h3>
2016-10-08 12:34:12 +00:00
Sets the delay in milliseconds to sleep after a mouse event. This is 10ms by default.
2017-03-15 08:25:55 +00:00
#### Arguments:
2016-10-08 12:34:12 +00:00
ms - Time to sleep in milliseconds.
2017-03-15 08:25:55 +00:00
### <h3 id="MoveMouse">.MoveMouse(x, y)</h3>
2016-10-08 12:34:12 +00:00
Moves mouse to x, y instantly, with the mouse button up.
2017-03-15 08:25:55 +00:00
#### Arguments:
2016-10-08 12:34:12 +00:00
2017-03-24 15:14:55 +00:00
x, y
2016-10-08 12:34:12 +00:00
2017-03-15 08:25:55 +00:00
#### Examples:
2016-10-08 12:34:12 +00:00
```Go
2017-03-15 08:25:55 +00:00
// Move the mouse to 100, 100 on the screen.
2016-10-23 11:51:10 +00:00
robotgo.MoveMouse(100, 100)
2016-10-08 12:34:12 +00:00
```
2017-03-15 08:25:55 +00:00
### <h3 id="MoveMouseSmooth">.MoveMouseSmooth(x, y)</h3>
2016-10-08 12:34:12 +00:00
Moves mouse to x, y human like, with the mouse button up.
2017-03-15 08:25:55 +00:00
#### Arguments:
2016-10-08 12:34:12 +00:00
2017-03-24 15:14:55 +00:00
x, y
lowspeed, highspeed
2016-11-12 14:15:30 +00:00
2017-03-15 08:25:55 +00:00
#### Examples:
2016-11-12 14:15:30 +00:00
```Go
2017-03-15 08:25:55 +00:00
robotgo.MoveMouseSmooth(100, 200)
robotgo.MoveMouseSmooth(100, 200, 1.0, 100.0)
2016-11-12 14:15:30 +00:00
```
2016-10-08 12:34:12 +00:00
2017-03-15 08:25:55 +00:00
### <h3 id="MouseClick">.MouseClick(button, double)</h3>
2016-10-08 12:34:12 +00:00
Clicks the mouse.
2017-03-15 08:25:55 +00:00
#### Arguments:
2016-10-08 12:34:12 +00:00
2016-11-12 13:24:19 +00:00
button (optional) - Accepts "left", "right", or "center". Defaults to left.
2016-10-08 12:34:12 +00:00
double (optional) - Set to true to perform a double click. Defaults to false.
2017-03-15 08:25:55 +00:00
#### Examples:
2016-10-08 12:34:12 +00:00
```Go
2017-03-15 08:25:55 +00:00
robogo.MouseClick()
robogo.MouseClick("left", true)
2017-01-03 10:39:22 +00:00
```
2017-03-15 08:25:55 +00:00
### <h3 id="MoveClick">.MoveClick(x, y, button, double)</h3>
2017-01-03 10:39:22 +00:00
Move and click the mouse.
2017-03-15 08:25:55 +00:00
#### Arguments:
2017-01-03 10:39:22 +00:00
x,
y,
button (optional) - Accepts "left", "right", or "center". Defaults to left.
double (optional) - Set to true to perform a double click. Defaults to false.
2017-03-15 08:25:55 +00:00
#### Examples:
2017-01-03 10:39:22 +00:00
```Go
2017-03-15 08:25:55 +00:00
robogo.MoveClick(10, 20)
robogo.MoveClick(10, 20, "left", true)
2016-10-08 12:34:12 +00:00
```
2017-03-15 08:25:55 +00:00
### <h3 id="MouseToggle">.MouseToggle(down, button)</h3>
2016-10-08 12:34:12 +00:00
Toggles mouse button.
2017-03-15 08:25:55 +00:00
#### Arguments:
2016-10-08 12:34:12 +00:00
down (optional) - Accepts down or up. Defaults to down.
2016-11-12 13:24:19 +00:00
button (optional) - Accepts "left", "right", or "center". Defaults to left.
2016-10-08 12:34:12 +00:00
2017-03-15 08:25:55 +00:00
#### Examples:
2016-10-08 12:34:12 +00:00
```Go
2016-10-23 11:51:10 +00:00
robotgo.MouseToggle("down")
2016-11-12 13:24:19 +00:00
robotgo.MouseToggle("down", "right")
2016-10-08 12:34:12 +00:00
```
2017-03-15 08:25:55 +00:00
### <h3 id="DragMouse">.DragMouse(x, y)</h3>
2016-10-08 12:34:12 +00:00
Moves mouse to x, y instantly, with the mouse button held down.
2017-03-15 08:25:55 +00:00
#### Arguments:
2016-10-08 12:34:12 +00:00
2017-03-24 15:14:55 +00:00
x, y
2016-10-08 12:34:12 +00:00
2017-03-15 08:25:55 +00:00
#### Examples:
2016-10-08 12:34:12 +00:00
```Go
2017-03-04 16:15:14 +00:00
// Mouse down at 0, 0 and then drag to 100, 100 and release.
2016-10-23 11:51:10 +00:00
robotgo.MoveMouse(0, 0)
robotgo.MouseToggle("down")
robotgo.DragMouse(100, 100)
robotgo.MouseToggle("up")
2016-10-08 12:34:12 +00:00
```
2017-03-15 08:25:55 +00:00
### <h3 id="GetMousePos">.GetMousePos()</h3>
2016-10-08 12:34:12 +00:00
Gets the mouse coordinates.
2017-03-15 08:25:55 +00:00
#### Return:
2016-10-08 12:34:12 +00:00
Returns an object with keys x and y.
2017-03-15 08:25:55 +00:00
#### Examples:
2016-10-08 12:34:12 +00:00
```Go
2016-10-23 11:51:10 +00:00
x,y := robotgo.GetMousePos()
2016-10-08 12:34:12 +00:00
fmt.Println("pos:", x, y)
```
2017-03-15 08:25:55 +00:00
### <h3 id="ScrollMouse">.ScrollMouse(magnitude, direction)</h3>
2016-10-08 12:34:12 +00:00
Scrolls the mouse either up or down.
2017-03-15 08:25:55 +00:00
#### Arguments:
2016-10-08 12:34:12 +00:00
magnitude - The amount to scroll.
direction - Accepts down or up.
2017-03-15 08:25:55 +00:00
#### Examples:
2016-10-08 12:34:12 +00:00
```Go
2016-10-23 11:51:10 +00:00
robotgo.ScrollMouse(50, "up")
2016-10-08 12:34:12 +00:00
2016-10-23 11:51:10 +00:00
robotgo.ScrollMouse(50, "down")
2016-10-08 12:34:12 +00:00
```
2017-03-15 08:25:55 +00:00
## <h2 id="Screen">Screen</h2>
2016-10-24 13:34:42 +00:00
2017-03-15 08:25:55 +00:00
### <h3 id="GetPixelColor">.GetPixelColor(x, y)
2016-10-08 12:34:12 +00:00
Gets the pixel color at x, y. This function is perfect for getting a pixel or two, but if you'll be reading large portions of the screen use screen.capture.
2017-03-15 08:25:55 +00:00
#### Arguments:
2016-10-08 12:34:12 +00:00
2017-03-24 15:14:55 +00:00
x, y
2016-10-08 12:34:12 +00:00
2017-03-15 08:25:55 +00:00
#### Return:
2016-10-08 12:34:12 +00:00
Returns the hex color code of the pixel at x, y.
2017-03-15 08:25:55 +00:00
### <h3 id="GetScreenSize">.GetScreenSize()</h3>
2016-10-08 12:34:12 +00:00
Gets the screen width and height.
2017-03-15 08:25:55 +00:00
#### Return:
2016-10-08 12:34:12 +00:00
Returns an object with .width and .height.
2017-03-15 08:25:55 +00:00
### <h3 id="CaptureScreen">.CaptureScreen</h3>
2017-03-04 16:15:14 +00:00
// CaptureScreen
2016-10-08 12:34:12 +00:00
Gets part or all of the screen.
2016-12-11 09:14:14 +00:00
BCaptureScreen Returns a go struct
2017-03-24 15:14:55 +00:00
Capture_Screen (Drop support)
2016-11-12 14:45:42 +00:00
2017-03-15 08:25:55 +00:00
#### Arguments:
2016-10-08 12:34:12 +00:00
x (optional)
y (optional)
height (optional)
width (optional)
2016-10-16 10:32:57 +00:00
If no arguments are provided, screencapture will get the full screen.
2016-10-08 12:34:12 +00:00
2017-03-15 08:25:55 +00:00
#### Return:
2016-10-08 12:34:12 +00:00
Returns a bitmap object.
2017-03-15 08:25:55 +00:00
## <h2 id="Bitmap">Bitmap</h2>
2016-10-08 12:34:12 +00:00
This is a work in progress.
2016-10-20 11:57:28 +00:00
2017-03-15 08:25:55 +00:00
### <h3 id="FindBitmap">.FindBitmap</h3>
2016-10-20 11:57:28 +00:00
find bitmap.
2017-03-15 08:25:55 +00:00
#### Arguments:
2016-10-20 11:57:28 +00:00
2016-10-23 15:53:20 +00:00
bitmap;
rect(optional): x, y, w, h
2016-10-20 11:57:28 +00:00
2017-03-15 08:25:55 +00:00
#### Return:
2016-10-20 11:57:28 +00:00
Returns a position x and y
2017-03-15 08:25:55 +00:00
### <h3 id="OpenBitmap">.OpenBitmap</h3>
2016-10-20 11:57:28 +00:00
2017-03-04 16:15:14 +00:00
open bitmap.
2016-10-20 11:57:28 +00:00
2017-03-15 08:25:55 +00:00
#### Arguments:
2016-10-20 11:57:28 +00:00
2016-10-30 11:26:56 +00:00
bitmap image path,
2017-03-24 15:14:55 +00:00
MMImageType (optional)
2016-10-20 11:57:28 +00:00
2017-03-15 08:25:55 +00:00
#### Return:
2016-10-20 11:57:28 +00:00
Returns a bitmap
2017-03-15 08:25:55 +00:00
### <h3 id="SaveBitmap">.SaveBitmap</h3>
2016-10-20 11:57:28 +00:00
2017-03-24 15:14:55 +00:00
Save a image with bitmap.
2016-10-20 11:57:28 +00:00
2017-03-15 08:25:55 +00:00
#### Arguments:
2016-10-20 11:57:28 +00:00
bitmap,
path,
2017-03-24 15:14:55 +00:00
imagetype (int)
2016-10-20 11:57:28 +00:00
2017-03-15 08:25:55 +00:00
#### Return:
2016-10-20 11:57:28 +00:00
2016-12-30 09:13:21 +00:00
return save image status
2016-10-20 11:57:28 +00:00
2017-03-15 08:25:55 +00:00
### <h3 id="TostringBitmap">.TostringBitmap</h3>
2016-10-20 11:57:28 +00:00
2016-10-22 11:29:41 +00:00
bitmap to string
2016-10-20 11:57:28 +00:00
2017-03-15 08:25:55 +00:00
#### Arguments:
2016-10-20 11:57:28 +00:00
bitmap
2017-03-15 08:25:55 +00:00
#### Return:
2016-10-20 11:57:28 +00:00
2016-10-23 15:53:20 +00:00
Return a sting bitmap
2017-03-15 08:25:55 +00:00
### <h3 id="GetPortion">.GetPortion</h3>
2016-10-23 15:53:20 +00:00
bitmap from a portion
2017-03-15 08:25:55 +00:00
#### Arguments:
2016-10-23 15:53:20 +00:00
bitmap,
rect: x, y, w, h
2017-03-15 08:25:55 +00:00
#### Return:
2016-10-23 15:53:20 +00:00
2016-10-30 11:26:56 +00:00
Returns new bitmap object created from a portion of another
2017-03-15 08:25:55 +00:00
### <h3 id="Convert">.Convert(openpath, savepath,MMImageType)</h3>
2016-10-30 11:26:56 +00:00
Convert the image format
2017-03-15 08:25:55 +00:00
#### Arguments:
2016-10-30 11:26:56 +00:00
openpath,
savepath,
2017-03-24 15:14:55 +00:00
MMImageType (optional)
2016-10-30 11:26:56 +00:00
2017-03-15 08:25:55 +00:00
#### Examples:
2016-10-30 11:26:56 +00:00
```Go
2017-03-15 08:50:45 +00:00
robotgo.Convert("test.png", "test.tif")
2016-10-30 11:26:56 +00:00
```
2016-10-30 13:35:01 +00:00
2017-03-15 08:25:55 +00:00
## <h2 id="Event">Event</h2>
2016-10-30 13:35:01 +00:00
2017-03-15 08:25:55 +00:00
### <h3 id="AddEvent">.AddEvent(string)</h3>
2016-10-30 13:35:01 +00:00
Listening global event
2017-03-15 08:25:55 +00:00
#### Arguments:
2016-10-30 13:35:01 +00:00
string
2017-03-24 15:14:55 +00:00
(mosue arguments: mleft, mright, wheelDown, wheelUp, wheelLeft, wheelRight)
2016-10-30 13:41:10 +00:00
2017-03-15 08:25:55 +00:00
#### Return:
2016-10-30 13:35:01 +00:00
if listened return 0
2017-03-15 08:25:55 +00:00
#### Examples:
2016-10-30 13:35:01 +00:00
```Go
package main
import (
2017-03-04 16:19:09 +00:00
"fmt"
2016-10-30 13:35:01 +00:00
"github.com/go-vgo/robotgo"
)
func main() {
2016-11-12 07:56:07 +00:00
keve := robotgo.AddEvent("k")
2016-10-30 13:35:01 +00:00
if keve == 0 {
2017-03-04 16:19:09 +00:00
fmt.Println("you press...", "k")
2016-10-30 13:35:01 +00:00
}
2016-11-12 07:56:07 +00:00
mleft := robotgo.AddEvent("mleft")
2016-10-30 13:35:01 +00:00
if mleft == 0 {
2017-03-04 16:19:09 +00:00
fmt.Println("you press...", "mouse left button")
2016-10-30 13:35:01 +00:00
}
}
2016-12-30 09:04:50 +00:00
```
2017-03-15 08:25:55 +00:00
### <h3 id="StopEvent">.StopEvent()</h3>
2016-12-30 09:04:50 +00:00
stop listen global event
2016-11-07 08:46:22 +00:00
2017-03-15 08:25:55 +00:00
## <h2 id="Window">Window</h2>
2016-11-07 08:46:22 +00:00
2017-03-15 08:25:55 +00:00
### <h3 id="ShowAlert">.ShowAlert(title, msg,defaultButton,cancelButton string)</h3>
2016-11-07 08:46:22 +00:00
Displays alert with the given attributes. If cancelButton is not given, only the defaultButton is displayed
2017-03-15 08:25:55 +00:00
#### Arguments:
2016-11-07 08:46:22 +00:00
2017-03-24 15:14:55 +00:00
title (string),
msg (string),
defaultButton (optional string),
cancelButton (optional string)
2016-11-07 08:46:22 +00:00
2017-03-15 08:25:55 +00:00
#### Return:
2016-11-07 08:46:22 +00:00
2016-11-07 14:36:28 +00:00
Returns 0(True) if the default button was pressed, or 1(False) if cancelled.
2016-11-10 11:17:34 +00:00
2017-03-15 08:25:55 +00:00
### <h3 id="CloseWindow">.CloseWindow()</h3>
2016-11-10 11:17:34 +00:00
Close the Window
2017-03-15 08:25:55 +00:00
#### Arguments:
2017-01-24 15:56:57 +00:00
None
2016-11-10 11:17:34 +00:00
2017-03-15 08:25:55 +00:00
#### Return:
2017-01-24 15:56:57 +00:00
None
2016-11-10 11:17:34 +00:00
2017-03-15 08:25:55 +00:00
### <h3 id="IsValid">.IsValid()</h3>
2016-11-10 11:17:34 +00:00
Valid the Window
2017-03-15 08:25:55 +00:00
#### Arguments:
2017-01-24 15:56:57 +00:00
None
2016-11-10 11:17:34 +00:00
2017-03-15 08:25:55 +00:00
#### Return:
2016-11-10 11:17:34 +00:00
Returns true if a window has been selected
2017-03-15 08:25:55 +00:00
### <h3 id="SetActive">.SetActive()</h3>
2016-11-23 12:40:28 +00:00
Set the Active Window
2017-03-15 08:25:55 +00:00
#### Arguments:
2017-01-24 15:56:57 +00:00
hwnd
2016-11-23 12:40:28 +00:00
2017-03-15 08:25:55 +00:00
#### Return:
2016-11-23 12:40:28 +00:00
void
2017-03-15 08:25:55 +00:00
### <h3 id="GetActive">.GetActive()</h3>
2016-11-10 11:17:34 +00:00
Get the Active Window
2017-03-15 08:25:55 +00:00
#### Arguments:
2017-01-24 15:56:57 +00:00
None
2016-11-10 11:17:34 +00:00
2017-03-15 08:25:55 +00:00
#### Return:
2016-11-10 11:17:34 +00:00
Returns hwnd
2017-03-15 08:25:55 +00:00
### <h3 id="SetHandle">.SetHandle()</h3>
2016-11-28 12:41:15 +00:00
Set the Window Handle
2017-03-15 08:25:55 +00:00
#### Arguments:
2016-11-28 12:41:15 +00:00
int
2017-03-15 08:25:55 +00:00
#### Return:
2016-11-28 12:41:15 +00:00
bool
2017-03-15 08:25:55 +00:00
### <h3 id="GetHandle">.GetHandle()</h3>
2016-11-10 11:17:34 +00:00
Get the Window Handle
2017-03-15 08:25:55 +00:00
#### Arguments:
2017-01-24 15:56:57 +00:00
None
2016-11-10 11:17:34 +00:00
2017-03-15 08:25:55 +00:00
#### Return:
2016-11-10 11:17:34 +00:00
Returns hwnd
2017-03-15 08:25:55 +00:00
### <h3 id="GetTitle">.GetTitle()</h3>
2016-11-10 11:17:34 +00:00
Get the Window Title
2017-03-15 08:25:55 +00:00
#### Arguments:
2017-01-24 15:56:57 +00:00
None
2016-11-10 11:17:34 +00:00
2017-03-15 08:25:55 +00:00
#### Return:
2017-01-18 12:41:39 +00:00
Returns Window Title
2017-03-15 08:25:55 +00:00
### <h3 id="GetPID">.GetPID()</h3>
2017-01-18 12:41:39 +00:00
Get the process id
2017-03-15 08:25:55 +00:00
#### Arguments:
2017-01-24 15:56:57 +00:00
None
2017-01-18 12:41:39 +00:00
2017-03-15 08:25:55 +00:00
#### Return:
2017-01-18 12:41:39 +00:00
Returns the process id
2016-11-07 14:36:28 +00:00