Oh, the "release=true" in the first command was a typo. It should have been "release=false" as you correctly figured out.
I tested the sequence with the RFB logging on:
1. Go to Edit->Preferences and select the "RFB (VNC) 3.x Client" panel
2. Set the "Console debug logging" at least to "Init, config & client messages"
3. Check the console (command prompt) or the application log of the sequence of mouse & keyboard events.
The log for the code above shows this:
- Code: Select all
C2S: Processing key event: [KEY_PRESSED,keyCode=18,keyText=Alt,keyChar=Undefined keyChar,keyLocation=KEY_LOCATION_STANDARD,rawCode=0,primaryLevelUnicode=0,scancode=0]
C2S: KeyEvent sent at 15:50:56,922: pressed ALT, [0]
C2S: Mouse event sent at 15:50:57,698, [MOUSE_MOVED,(85,139),absolute(0,0),button=0,clickCount=1] X [5, 0, 0, 85, 0, -117, 0]
C2S: Mouse event sent at 15:50:57,729, [MOUSE_MOVED,(89,129),absolute(0,0),button=0,clickCount=1] X [5, 0, 0, 89, 0, -127, 0]
C2S: Mouse event sent at 15:50:57,760, [MOUSE_MOVED,(92,120),absolute(0,0),button=0,clickCount=1] X [5, 0, 0, 92, 0, 120, 0]
C2S: Mouse event sent at 15:50:57,791, [MOUSE_MOVED,(96,110),absolute(0,0),button=0,clickCount=1] X [5, 0, 0, 96, 0, 110, 0]
C2S: Mouse event sent at 15:50:57,822, [MOUSE_PRESSED,(100,100),absolute(0,0),button=1,modifiers=Button1,clickCount=1] X [5, 1, 0, 100, 0, 100, 0]
C2S: Mouse event sent at 15:50:58,125, [MOUSE_RELEASED,(100,100),absolute(0,0),button=1,modifiers=Button1,clickCount=1] X [5, 0, 0, 100, 0, 100, 0]
C2S: Processing key event: [KEY_RELEASED,keyCode=18,keyText=Alt,keyChar=Undefined keyChar,keyLocation=KEY_LOCATION_STANDARD,rawCode=0,primaryLevelUnicode=0,scancode=0]
C2S: KeyEvent sent at 15:50:58,357: released ALT, [0]
This proves that the Alt key gets pressed before and released after the mouse click. There are two points to try out:
1. Perhaps the server doesn't like the Alt key being pressed before the mouse gets moved to the click location. Can you try with this code?
Mouse move to=x:100,y:100Press Alt release="false" wait=100Mouse click to=x:100,y:100Press Alt release="true"2. If even this doesn't work could you please enable the log and then post the logs for (1) manual Alt+click and (2) the automated Alt+click using the code above? This would clearly show whether there is any difference.
Thanks a lot!