mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
add get main title check isValid()
This commit is contained in:
parent
1bb08731d1
commit
de0ebaaf3c
@ -571,6 +571,9 @@ void CloseWin(void){
|
|||||||
}
|
}
|
||||||
|
|
||||||
char* get_main_title(){
|
char* get_main_title(){
|
||||||
|
// Check if the window is valid
|
||||||
|
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