PT7
July 9, 2023, 6:22am
1
Can you help? I’ve been running this code for months. But as of this morning every XClick is offset vertically so it clicks 2 lines above. I’ve tried restarts. two browsers, two PCs and two different websites. Every time the XClick highlights the correct xpath then clicks the screen above it.
(I’m clicking on a channel in Slack and a conversation in Whatapp. These are both in sidebars. The xpath was working until this morning)
It’s doing my head in!
Any suggestions?
PT7
July 13, 2023, 11:26pm
2
{
“Command”: “bringBrowserToForeground”,
“Target”: “”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “XClick”,
“Target”: “xpath=(//span[@title=‘Testing Golf’])”,
“Value”: “”,
“Description”: “Select Golf group thread”
},
{
“Command”: “pause”,
“Target”: “300”,
“Value”: “”,
“Description”: “Select Golf group thread”
},
{
“Command”: “XType”,
“Target”: “${KEY_CTRL+KEY_V}”,
“Value”: “”,
“Description”: “paste”
},
{
“Command”: “XType”,
“Target”: “${KEY_ENTER}”,
“Value”: “”,
“Description”: “paste”
},
{
“Command”: “XClick”,
“Target”: “xpath=//span[@title=‘Golf 2’]”,
“Value”: “”,
“Description”: “Select Golf group thread”
},
{
“Command”: “pause”,
“Target”: “500”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “XType”,
“Target”: “${KEY_CTRL+KEY_V}”,
“Value”: “”,
“Description”: “paste”
},
{
“Command”: “XType”,
“Target”: “${KEY_ENTER}”,
“Value”: “”,
“Description”: “paste”
},
}
PT7
July 13, 2023, 11:37pm
4
My workaround is to add a ‘Testing Golf’ conversation. By xclicking on the ‘Testing Golf’ I can get a click on the ‘Golf’ conversation.
I’m only using one monitor.
PT7
September 19, 2023, 3:33am
5
Finally found a solution. Change the Zoom on the ui.vision extension window to 100%.
Wow, I’ve had all these crazy workarounds for weeks!
thanks to…
This is exactly what I meant, that Xclick is making browsers animations less reliable. I had the same issue where my browser was set to 100% and it still would not hit the target. It took me a week to find out what was going on and I hope that issue applies to you to:
Make sure the kantu browser where you have all your scripts stored is also set to 100%. I must have had it changed by accident and did not even know it had anything like a zoom setting.
[image]