Search found 11 matches

by minx
14 Feb 2021, 16:49
Forum: Support
Topic: File.exists()
Replies: 1
Views: 88

File.exists()

The documentation for File does not mention .exists , but it is part of the File object as a function. So this works: if (File.exists(filename)) { ... } Wondering if this is a stable feature as it is not documented. There is a mention here , and the work has perhaps been done? actiona --version Acti...
by minx
13 Feb 2021, 13:02
Forum: Requests and ideas
Topic: How to use Iframe as code
Replies: 1
Views: 764

Re: How to use Iframe as code

Not sure if this is what you are looking for, but you can open QWebView:

Code: Select all

var view = new QWebView();
view.url = 'some url'
view.show();
Not sure where to find documentation for the object, but you can dump properties by for example:

Code: Select all

for (p in view)
    Stdio.println('[' + p + '] ' + view[p]);
by minx
06 Feb 2021, 03:53
Forum: Requests and ideas
Topic: Time condition - question/improvement
Replies: 8
Views: 641

Re: Time condition - question/improvement

The ascr file and sample results. Using JavaScript Here time was set at: 02:34:50.000Z actiona-timer-test-using_js.png «Next script» has a delay of 12ms. The test script calling the continue at function has a delay of 0ms. Using Time Condition Here time was set at: 02:50:00Z actiona-timer-test-using...
by minx
06 Feb 2021, 03:48
Forum: Requests and ideas
Topic: Time condition - question/improvement
Replies: 8
Views: 641

Re: Time condition - question/improvement

An example that is more tailored for Actiona GUI: The Time Condition element has an overhead that can be eliminated using pure JavaScript. NB! Using this script the execution completely halts. That is: you can not stop the script once running. Only way is to kill the process. Thus make sure you save...
by minx
05 Feb 2021, 12:24
Forum: Requests and ideas
Topic: Time condition - question/improvement
Replies: 8
Views: 641

Re: Time condition - question/improvement

Did a test using Execution.sleep(ms) Test code reads text file holding target time. Parses it, set up a date object with set time, sleep the difference, then call a function printing the time at execution / the target time. As you can see below it is pretty accurate. One would typically have to star...
by minx
28 Jan 2021, 21:05
Forum: Requests and ideas
Topic: Detatch Notify
Replies: 0
Views: 69

Detatch Notify

When issuing a notification by Notify, GNU/Linux only, the notification is closed if the Actiona process ends. Actiona Wiki Notify I suggest one have an option to .show() a notification, or create a Notify object in «detached mode», or by other manners solve this. Could the notify process be detatch...
by minx
26 Jan 2021, 21:50
Forum: Support
Topic: How to use applyFilter?
Replies: 7
Views: 223

Re: How to use applyFilter?

Most of the discussions are in French forum. Perhaps post there for an answer? I have not found applyFilter in my searching. Wish I knew French :wink: I use Google translate on the French forum to read but can not ask or answer. I once started to learn, but did not get very long, too many projects ...
by minx
26 Jan 2021, 15:07
Forum: Tutorials & examples
Topic: Fine tune samples and configuration. Highlight matches in sample image.
Replies: 1
Views: 377

Re: Fine tune samples and configuration. Highlight matches in sample image.

If you want to add labels, one have to either use an external tool or modify the source code. At least from what I have found. I have never written C++ code so use this with caution :wink: , but add if you want to test. The code below adds a function to Image: Image.setLabel( int x, int y, str label...
by minx
25 Jan 2021, 19:22
Forum: Tutorials & examples
Topic: Fine tune samples and configuration. Highlight matches in sample image.
Replies: 1
Views: 377

Fine tune samples and configuration. Highlight matches in sample image.

A simple script for looping files (needles) and searching a window (haystack) for matches. Can be fine for fine-tuning parameters and image selections. Purpose is for debugging and testing matches. Should be easy to both extend. Not the most beautiful code :lol: but perhaps some find it fun to look ...
by minx
25 Jan 2021, 06:32
Forum: Bug reports
Topic: DOC: Return value for RawData.left and RawData.right
Replies: 0
Views: 98

DOC: Return value for RawData.left and RawData.right

Return value for RawData.left and RawData.right looks to have wrong information. From what I read it should be: Returns (RawData) the leftmost len bytes of this RawData but it say: Returns (integer) the leftmost len bytes of this RawData https://wiki.actiona.tools/doku.php?id=en:code:core:rawdata#le...
by minx
25 Jan 2021, 06:20
Forum: Support
Topic: How to use applyFilter?
Replies: 7
Views: 223

How to use applyFilter?

I am trying to use `applyFilter` on an Image. Have tested with various, but for example: var x = img.applyFilter("Negative" /*, { filerChannels: "r,g,b,a" }*/); img.saveToFile(test-filter.jpg); x.saveToFile('test-x-filter.jpg'); img.saveToFile(test-filter.png'); x.saveToFile('test-x-filter.png'); Ha...