Search found 677 matches

by Dorian (MJT support)
Tue Jul 28, 2020 11:32 am
Forum: Technical / Scripting
Topic: Image Recog. - Can't read the image
Replies: 7
Views: 63

Re: Image Recog. - Can't read the image

Always happy to help. A lot of people miss that. Although it is in the helpfile it is quite easy to miss. To be honest, I missed it too when that feature was introduced. :)
by Dorian (MJT support)
Tue Jul 28, 2020 11:30 am
Forum: Technical / Scripting
Topic: Window focus based upon a notification sound
Replies: 15
Views: 99

Re: Window focus based upon a notification sound

That sounds like a good option. In the Trigger section I linked above, look for Custom Triggers. I see no reason why you can't make a custom trigger which monitors a file to see if it's updated.
by Dorian (MJT support)
Tue Jul 28, 2020 10:13 am
Forum: Technical / Scripting
Topic: Window focus based upon a notification sound
Replies: 15
Views: 99

Re: Window focus based upon a notification sound

Is the notification only a sound? Or is there some kind of popup or another kind of visual change in any way?

If it's a notification pop-up, then depending on the popup, maybe. Look at Triggers. The Window Event trigger may be what you need, if it is indeed a window event.
by Dorian (MJT support)
Tue Jul 28, 2020 10:00 am
Forum: Technical / Scripting
Topic: Image Recog. - Can't read the image
Replies: 7
Views: 63

Re: Image Recog. - Can't read the image

Yes, if you look at the help file for FindImagePos you'll see it says : " Each method has benefits and drawbacks. CCOEFF is more intelligent and more tolerant but is slower and will return only one match. EXACT is faster and can return multiple matches but is precise and therefore less portable and ...
by Dorian (MJT support)
Mon Jul 27, 2020 10:32 am
Forum: Technical / Scripting
Topic: Image Recog. - Can't read the image
Replies: 7
Views: 63

Re: Image Recog. - Can't read the image

I'm not experiencing any difficulties with Image Recognition using this image. Certainly incorporating the blue band in your needle image is a good idea, as I've found that sometimes a very subtle image can be a challege. Both of these were able to identify the (attached) image when I had the image ...
by Dorian (MJT support)
Mon Jul 27, 2020 9:16 am
Forum: Technical / Scripting
Topic: Image Recog. - Can't read the image
Replies: 7
Views: 63

Re: Image Recog. - Can't read the image

Is it possible the image is changing somehow? The image isn't attached to your post so I can't test. Can you point us to the web page?
by Dorian (MJT support)
Sun Jul 26, 2020 3:24 pm
Forum: Technical / Scripting
Topic: Pasting to a range of cells in Excel
Replies: 4
Views: 90

Re: Pasting to a range of cells in Excel

Of course for those who don't like using vba and XLRunCode, there's also the option to use XLGetCell and XLSetCell in a nested loop.
by Dorian (MJT support)
Sun Jul 26, 2020 3:22 pm
Forum: Technical / Scripting
Topic: Let>RP_WAIT=1 work with CopyFolder>
Replies: 4
Views: 54

Re: Let>RP_WAIT=1 work with CopyFolder>

I just experimented with this using 10000 files, and (as I expected) the next line does not seem to be executed until CopyFolder has completed. But just for good measure you could always wait for a second after moving, and then only delete the folder if CF_Result = True. You'll need to change the pa...
by Dorian (MJT support)
Sun Jul 26, 2020 2:58 pm
Forum: Technical / Scripting
Topic: Best ways to deal with image detection in loop
Replies: 1
Views: 34

Re: Best ways to deal with image detection in loop

hi, to answer the question about multiple instances, yes you can. This thread will help you.

Maybe also consider pixel color detection if a certain pixel changes to a certain color with an unwanted popup. You could do this with an OnEvent.
by Dorian (MJT support)
Sun Jul 26, 2020 1:38 pm
Forum: Technical / Scripting
Topic: Let>RP_WAIT=1 work with CopyFolder>
Replies: 4
Views: 54

Re: Let>RP_WAIT=1 work with CopyFolder>

Hi, no RP_Wait is only for RunProgram.
by Dorian (MJT support)
Sun Jul 26, 2020 1:37 pm
Forum: Technical / Scripting
Topic: Pasting to a range of cells in Excel
Replies: 4
Views: 90

Re: Pasting to a range of cells in Excel

It sounds like what you need to use is XLRunCode.

This post describes how to get started.
by Dorian (MJT support)
Thu Jul 23, 2020 7:24 am
Forum: Technical / Scripting
Topic: If TimeOut
Replies: 4
Views: 105

Re: If TimeOut

Hi, you're correct, those commands are just for IE.
by Dorian (MJT support)
Wed Jul 22, 2020 4:18 pm
Forum: Technical / Scripting
Topic: If TimeOut
Replies: 4
Views: 105

Re: If TimeOut

I like to use IEWaitForText to check that a page has loaded. IEWaitForText>IE[0],,{"Log in"},0,20,result If it times out, the result will be 0, so we can then refresh. Depending on your application, the following structure may not be the best one for you. This simply uses a Goto. But the command exa...
by Dorian (MJT support)
Wed Jul 22, 2020 9:55 am
Forum: Enhancement Suggestions
Topic: Function for Fiscal Week Numbering
Replies: 3
Views: 183

Re: Function for Fiscal Week Numbering

Something along these lines should be enough to get you started : //Get Today's date GetDate>today //Set the year start Let>YearStart=2020-04-23 //How many weeks have elapsed? Datediff>today,YearStart,W,WeekNumber MDL>Week Number %WeekNumber% //What day of the week was the year start. Credit : JRL. ...
by Dorian (MJT support)
Wed Jul 22, 2020 7:28 am
Forum: Enhancement Suggestions
Topic: Function for Fiscal Week Numbering
Replies: 3
Views: 183

Re: Function for Fiscal Week Numbering

I'd imagine this can be achieved with DateDiff, if I understand correctly.
Sign up to our newsletter for free automation tips, tricks & discounts