[check] WinUtil.cc: suggestions for enhancements and fixes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
In Progress
|
Medium
|
RaiMan |
Bug Description
focusWinByAppName in WinUtil.cc attempts to use GetWindowModule
1. GetWindowModule
2. GetWindowModule
3. focusWinByAppName does not initialise the "filename" variable and it does not check to see whether GetWindowModule
One consequence of this is that if I run Sikuli from a path containing the word "Foo" and then I try to call App.focus('Foo') with the intention of focusing an application with that word in the title bar, Sikuli may set the focus to the wrong window, depending on the order of windows returned by EnumWindows().
I am using Sikuli IDE 1.0.1 on Windows Server 2008 R2 (64-bit).
Changed in sikuli: | |
status: | Fix Committed → In Progress |
milestone: | 1.1.0 → 2.0.0 |
summary: |
- Sikuli focuses the wrong application + [1.1.0.] WinUtil.cc: suggestions for enhancements and fixes |
Changed in sikuli: | |
milestone: | 2.0.0 → 2.1.0 |
importance: | High → Medium |
summary: |
- [1.1.0.] WinUtil.cc: suggestions for enhancements and fixes + [check] WinUtil.cc: suggestions for enhancements and fixes |
Thanks for finding and the suggestion