nvda
e8fdfbf8 - Global commands: restore commands affected by division operator differences between Python 2 and 3 (#9748)

Commit
6 years ago
Global commands: restore commands affected by division operator differences between Python 2 and 3 (#9748) * Global commands/mouse to navigator object: use two slashes to guarantee integers for mouse coordinates. Re #9641. Move mouse to navigator object command fails in Python 3 because of ytpe differences: user32::SetCursorPos wants integers, but because one slash is used, it'll get floats, causing errors to be logged. Thus guarantee inteers via floor division, thus restoring the said command. * Global commands/battery status: hours and minutes must be integers. Re #9641. With just one slash, hours nad minutes for remaining time on battery will get floats when the text format specifies integers. Thus use floor division, restoring battery status command in Python 3.
Author
Committer
Parents
Loading