A brief summary since 2025-04-13 08:46:10 UTC
Ui.Vision, AI & OCR Community Forums
 

Since your last visit
3 2 20
New Topics Unread Notifications New Users
Popular Topics

HowTo

April 16

Inhibit click and xclick to scroll?

jamacoe
Jan Coenen

jamacoe

Before using click and xclick I have an executeScript_Sandbox (javascript) that checks if the element is visible and if not, smoothy scrolls to ‘nearest’. Then I want the click or xclick to click just there and not to scroll the element to center. Somewhere I read that I should set !waitForVisible to false, which I tried, but that didn’t work.

likes  1 replies  3 Read More
 

HowTo

April 16

Can I still use the internal variable !FOLDER?

Caeanis
Marc Tucker

Caeanis

I wrote the following macro to rename macros in a specified folder but when I try to store the name of the folder to work on I get the error:
[error]: Not allowed to write to ‘!FOLDER’
Here is the code I used:
{
“Name”: “RemoveCasePrefix”,
“CreationDate”: “2025-4-16”,
“Commands”: [
{
“Command”: “store”,
“Target”: “A_Favorite”,
“Value”: “!FOLDER”,
“Description”: “Set the folder to the A Group of Top Favorites folder”
},
{
“Command”: “executeScript_Sandbox”,
“Target”: “var fs = require(‘fs’); var folder = ${!FOLDER}; var files = fs.readdirSync(folder).filter(f => f.endsWith(‘.json’)); files;”,
“Value”: “fileList”,
“Description”: “Get a list of all macro files (.json)”
},
{
“Command”: “forEach”,
“Target”: “fileList”,
“Value”: “fileName”,
“Description”: “Loop through each macro file”
},
{
“Command”: “store”,
“Target”: “${fileName}”,
“Value”: “currentFileName”,
“Description”: “Store the current file name”
},
{
“Command”: “executeScript_Sandbox”,
“Target”: “var fileName = ${currentFileName}; var newFileName = fileName.startsWith(‘Case.’) ? fileName.substring(5) : fileName; newFileName;”,
“Value”: “newFileName”,
“Description”: “Check if the filename starts with ‘Case.’, if yes then remove the prefix, else retain the old name.”
},
{
“Command”: “if”,
“Target”: “${currentFileName} != ${newFileName}”,
“Value”: “”,
“Description”: “Check if new file name is different from old name”
},
{
“Command”: “executeScript_Sandbox”,
“Target”: “var fs = require(‘fs’); var oldPath = ${!FOLDER} + ‘/’ + ${currentFileName}; var newPath = ${!FOLDER} + ‘/’ + ${newFileName}; fs.renameSync(oldPath, newPath);”,
“Value”: “”,
“Description”: “Rename the file”
},
{
“Command”: “echo”,
“Target”: “Renamed ${currentFileName} to ${newFileName}”,
“Value”: “”,
“Description”: “Log the rename”
},
{
“Command”: “else”,
“Target”: “”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “echo”,
“Target”: “Skipping ${currentFileName}”,
“Value”: “”,
“Description”: “Log the skip”
},
{
“Command”: “end”,
“Target”: “”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “end”,
“Target”: “”,
“Value”: “”,
“Description”: “End for each loop”
}
]
}

likes  0 replies  2 Read More
 

Bug Reports

April 16

Backup seems to no longer be working

Caeanis
Marc Tucker

Caeanis

My backup files used to back up to the download folder on my PC. I would also see themin the download notification in Chrome. I no longer get that notification and when I look in the download folder I don’t see any new ones. I have done a global search on my PC to find those zip files but I don’t see anything.

likes  0 replies  3 Read More
 
 
This summary is sent from Ui.Vision, AI & OCR Community Forums when we haven't seen you in a while. Change your email settings, or click here to unsubscribe.