mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-03 07:33:55 +00:00
update code style
This commit is contained in:
parent
022e79d6d3
commit
3d4f723800
@ -57,6 +57,7 @@ int showAlert(const char *title, const char *msg, const char *defaultButton,
|
|||||||
cancelButtonTitle,
|
cancelButtonTitle,
|
||||||
NULL,
|
NULL,
|
||||||
&responseFlags);
|
&responseFlags);
|
||||||
|
|
||||||
if (alertHeader != NULL) CFRelease(alertHeader);
|
if (alertHeader != NULL) CFRelease(alertHeader);
|
||||||
if (alertMessage != NULL) CFRelease(alertMessage);
|
if (alertMessage != NULL) CFRelease(alertMessage);
|
||||||
if (defaultButtonTitle != NULL) CFRelease(defaultButtonTitle);
|
if (defaultButtonTitle != NULL) CFRelease(defaultButtonTitle);
|
||||||
|
@ -560,7 +560,7 @@ void close_window_by_PId(uintptr pid, uintptr isHwnd){
|
|||||||
// CloseWindow
|
// CloseWindow
|
||||||
void close_window_by_Id(MData m_data){
|
void close_window_by_Id(MData m_data){
|
||||||
// Check window validity
|
// Check window validity
|
||||||
if (!IsValid()) {return;}
|
if (!IsValid()) { return; }
|
||||||
#if defined(IS_MACOSX)
|
#if defined(IS_MACOSX)
|
||||||
AXUIElementRef b = NULL;
|
AXUIElementRef b = NULL;
|
||||||
|
|
||||||
@ -591,7 +591,7 @@ void close_window_by_Id(MData m_data){
|
|||||||
|
|
||||||
char* get_main_title(){
|
char* get_main_title(){
|
||||||
// Check if the window is valid
|
// Check if the window is valid
|
||||||
if (!IsValid()) {return "IsValid failed.";}
|
if (!IsValid()) { return "IsValid failed."; }
|
||||||
|
|
||||||
return get_title_by_hand(mData);
|
return get_title_by_hand(mData);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user