mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-04 16:03:54 +00:00
update window code style
This commit is contained in:
parent
e7f841be68
commit
22fbae18dd
@ -68,7 +68,7 @@ void set_active(const MData win){
|
|||||||
DWORD dwProcessId = 0;
|
DWORD dwProcessId = 0;
|
||||||
GetWindowThreadProcessId(hWnd, &dwProcessId);
|
GetWindowThreadProcessId(hWnd, &dwProcessId);
|
||||||
|
|
||||||
if(dwProcessId == pInfo->dwPid){
|
if(dwProcessId == pInfo->dwPid) {
|
||||||
pInfo->hWnd = hWnd;
|
pInfo->hWnd = hWnd;
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
@ -298,9 +298,9 @@ void initWindow(uintptr handle){
|
|||||||
|
|
||||||
bool IsValid(){
|
bool IsValid(){
|
||||||
initWindow(initHandle);
|
initWindow(initHandle);
|
||||||
if(!IsAxEnabled(true)){
|
if (!IsAxEnabled(true)) {
|
||||||
printf("%s\n", "Window:Accessibility API is disabled!\n
|
printf("%s\n", "Window:Accessibility API is disabled!\n"
|
||||||
Failed to enable access for assistive devices.");
|
"Failed to enable access for assistive devices.");
|
||||||
}
|
}
|
||||||
MData actdata = GetActive();
|
MData actdata = GetActive();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user