#include <winextras.h>
◆ WinExtras()
WinExtras::WinExtras |
( |
QObject * |
parent = 0 | ) |
|
|
explicitprotected |
◆ containsFileAssociationinRegistry()
bool WinExtras::containsFileAssociationinRegistry |
( |
| ) |
|
|
static |
◆ correctVirtualKey()
unsigned int WinExtras::correctVirtualKey |
( |
unsigned int |
scancode, |
|
|
unsigned int |
virtualkey |
|
) |
| |
|
static |
Obtain a more specific virtual key (unsigned int) for a key grab event.
- Parameters
-
Scan | code obtained from a key grab event |
Virtual | key obtained from a key grab event |
- Returns
- Corrected virtual key as an unsigned int
◆ disablePointerPrecision()
void WinExtras::disablePointerPrecision |
( |
| ) |
|
|
static |
Temporarily disable "Enhanced Pointer Precision".
◆ elevateAntiMicro()
bool WinExtras::elevateAntiMicro |
( |
| ) |
|
|
static |
Attempt to elevate process using runas.
- Returns
- Execution status
◆ enablePointerPrecision()
void WinExtras::enablePointerPrecision |
( |
| ) |
|
|
static |
If "Enhanced Pointer Precision" is currently disabled and the setting has not been changed explicitly by the user while the program has been running, re-enable "Enhanced Pointer Precision". Return the mouse behavior to normal.
◆ getCurrentWindowText()
QString WinExtras::getCurrentWindowText |
( |
| ) |
|
|
static |
Get the window text of the window currently in focus.
- Returns
- Window title of application in focus.
◆ getCursorPos()
QPoint WinExtras::getCursorPos |
( |
| ) |
|
|
static |
◆ getDisplayString()
QString WinExtras::getDisplayString |
( |
unsigned int |
virtualkey | ) |
|
|
static |
◆ getForegroundWindowExePath()
QString WinExtras::getForegroundWindowExePath |
( |
| ) |
|
|
static |
Check foreground window (window in focus) and obtain the corresponding exe file path.
- Returns
- File path of executable
◆ getVirtualKey()
unsigned int WinExtras::getVirtualKey |
( |
QString |
codestring | ) |
|
|
static |
◆ grabCurrentPointerPrecision()
void WinExtras::grabCurrentPointerPrecision |
( |
| ) |
|
|
static |
Get the value of "Enhanced Pointer Precision" when the program first starts. Needed to not override setting if the option has been disabled in Windows by the user.
◆ IsRunningAsAdmin()
bool WinExtras::IsRunningAsAdmin |
( |
| ) |
|
|
static |
Check if the application is running with administrative privileges.
- Returns
- Status indicating administrative privileges
◆ isUsingEnhancedPointerPrecision()
bool WinExtras::isUsingEnhancedPointerPrecision |
( |
| ) |
|
|
static |
Used to check if the "Enhance Pointer Precision" Windows option is currently enabled.
- Returns
- Status of "Enhanced Pointer Precision"
◆ populateKnownAliases()
void WinExtras::populateKnownAliases |
( |
| ) |
|
|
protected |
◆ raiseProcessPriority()
bool WinExtras::raiseProcessPriority |
( |
| ) |
|
|
static |
◆ removeFileAssociationFromRegistry()
void WinExtras::removeFileAssociationFromRegistry |
( |
| ) |
|
|
static |
◆ scancodeFromVirtualKey()
unsigned int WinExtras::scancodeFromVirtualKey |
( |
unsigned int |
virtualkey, |
|
|
unsigned int |
alias = 0 |
|
) |
| |
|
static |
Convert a virtual key into the corresponding keyboard scan code.
- Parameters
-
Windows | virtual key |
Qt | key alias |
- Returns
- Keyboard scan code as an unsigned int
◆ writeFileAssocationToRegistry()
void WinExtras::writeFileAssocationToRegistry |
( |
| ) |
|
|
static |
◆ _instance
◆ EXTENDED_FLAG
const unsigned int WinExtras::EXTENDED_FLAG = 0x100 |
|
static |
◆ knownAliasesVKStrings
QHash<unsigned int, QString> WinExtras::knownAliasesVKStrings |
|
protected |
◆ knownAliasesX11SymVK
QHash<QString, unsigned int> WinExtras::knownAliasesX11SymVK |
|
protected |
◆ originalMouseAccel
int WinExtras::originalMouseAccel = 0 |
|
staticprotected |
The documentation for this class was generated from the following files: