VNCScreen => How to click ?
Following code works well until I try the click:
I can see the mouse on the MAIN screen moving & clicking, not the one in the VNC session :-(
( You can see in trace what the click is done on the main screen )
Does vnc.click() is implemented ?
-------
import shutil
import os
print ('Establish a VNC connection to %s on port %d' % ("frlesvmhostqa
import java.net.Socket as Socket
import edu.unh.
s = Socket(
s.setSoTimeout(
s.setKeepAlive(1); #some socket configuration
SocketList = []
SocketList.
cc = ConnectionContr
cc.openConnecti
cc.setPixelForm
cc.start(0); #start thread that keeps BufferedImage updated by polling server for remote desktop changes
Sikuli.wait(2); #wait for buffered image to be updated before we do sikuli
import edu.unh.
vnc = VNCScreen()
print('Main Screen size is %d,%d' % (Region(
print('VNC Screen size is %d,%d' % (vnc.getW(
vnc.showMonitors()
test = vnc.find(
Larger = test.nearby(100)
img = vnc.capture(Larger)
shutil.
print ('BBBBBBBBBBBBB
click(test)
print ('CCCCCCCCCCCCC
vnc.click(test)
print ('DDDDDDDDDDDDD
-------
output :
Establish a VNC connection to frlesvmhostqa02 on port 9105
Main Screen size is 1680,1050
VNC Screen size is 1280,768
[info] *** monitor configuration [ 1 VNCScreen(s)] ***
[info] *** Primary is VNCScreen 0
[info] Screen 0: S(0)[0,0 1280x768]
[info] *** end monitor configuration ***
AAAAAAAAAAAAAAA
BBBBBBBBBBBBBBB
[log] CLICK on L(885,589)@S(0)[0,0 1680x1050]
CCCCCCCCCCCCCCC
[log] CLICK on L(885,589)@S(0)[0,0 1680x1050]
DDDDDDDDDDDDDDD
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask David ENJOLRAS for more information if necessary.