You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found that the Variant struct has an error when handling array types. I'll fix that in the next version.
Now, you can use get_bounding_rectangle() instead. This will return a Rect struct.
For example:
let window = unsafe{GetForegroundWindow()};if window.0 == 0{return;}let automation = UIAutomation::new().unwrap();let element = automation.element_from_handle(window.into()).unwrap();let rect = element.get_bounding_rectangle().unwrap();println!("Window Rect = {}", rect);
I tried get bound with get_property_value.
the println out put
arr : false false false VARENUM(8197)
.and
thread 'main' panicked at 'called
Result::unwrap()
on anErr
value: Error { code: 4, message: "" }', src\main.rs:110:20hr.get_array().unwrap();
I think it be an
double*
or SAFEARRAY.I'm sorry for my poor English. I would like to know how to obtain the position and size of the top window
The text was updated successfully, but these errors were encountered: