02-08-2023, 03:11 PM
Using just title can be dangerous. It could find and kill some other process. Therefore I also added class in the example. Also you can add program name.
int w1 = win("*name" "" "" 1) ;;dangerous
int w1 = win("*name" "class" "" 1) ;;ok
int w1 = win("*name" "" "program" 1) ;;ok
int w1 = win("*name" "class" "program" 1) ;;ok, this is the safest
int w1 = win("*name" "" "" 1) ;;dangerous
int w1 = win("*name" "class" "" 1) ;;ok
int w1 = win("*name" "" "program" 1) ;;ok
int w1 = win("*name" "class" "program" 1) ;;ok, this is the safest