Here is another handy module from extreme-vb.net. This one covers eleven (11) API-based functions.
Notice
This content originally appeared on on extreme-vb.net. Permission from Bob Schwarz has been granted to included it here for archival purposes.
We can’t reach the future without a bridge to the past.
The below table contains a list of the functions, along with a brief explanation of what each one does.
Function Name | Description | Input | Output |
---|---|---|---|
Pause | Puts the app to sleep for the given number of milliseconds | Long Integer | |
ExitWindows | Logoff, shutdown, or reboot the computer. | Long Integer | |
GetUserName | Return the username of the logged on user | String | |
GetComputerName | Return the name of the local computer | String | |
GetActiveWindowTitle | Returns the title of the active window | Boolean | String |
HideTaskBar | Hides the taskbar | ||
ShowTaskBar | Un-hides the taskbar | ||
GetActiveWindow | Returns the handle of the active window | Boolean | Long |
GetWindowTitle | Return the title of a window given its hwnd | Long | String |
TopMostForm | Makes a form the top window if top = True. When top = False it removes this property | object (form), boolean | |
AboutBox | Generates a standard windows About box | object (form), Variant |
Attachments
File | Uploaded | Size |
---|---|---|
389-20190407-062702-basAPI.zip | 4/7/2019 6:27:03 AM | 1583 |