Gadzilla
14 years agoContributor
Sys.Desktop.KeyUp() does not work on XP platform
In my test cases I need to click some icon in the system tray by the right-mouse button with pressed right shift key.
I am use the following code:
...
Sys.Desktop.KeyDown(Win32API.VK_RSHIFT);
BuiltIn.Delay(500);
SystemTrayIcons.ClickItemR(myIconLabel + "*", false);
BuiltIn.Delay(500);
Sys.Desktop.KeyUp(Win32API.VK_RSHIFT);
....
This code works perfect on all Windows platforms exclude XP Pro.
After execution of this code on XP Pro all other clicks executed with pressed Shift key. Looks like Sys.Desktop.KeyUp works not correctly on XP platform.
I also try to execute the following code Sys.Desktop.Keys("![ReleaseLast]") instead of using "KeyUp" method, but this is also not work.
Could someone help me to solve the problem?
I am use the following code:
...
Sys.Desktop.KeyDown(Win32API.VK_RSHIFT);
BuiltIn.Delay(500);
SystemTrayIcons.ClickItemR(myIconLabel + "*", false);
BuiltIn.Delay(500);
Sys.Desktop.KeyUp(Win32API.VK_RSHIFT);
....
This code works perfect on all Windows platforms exclude XP Pro.
After execution of this code on XP Pro all other clicks executed with pressed Shift key. Looks like Sys.Desktop.KeyUp works not correctly on XP platform.
I also try to execute the following code Sys.Desktop.Keys("![ReleaseLast]") instead of using "KeyUp" method, but this is also not work.
Could someone help me to solve the problem?