Search found 1352 matches

by Dorian (MJT support)
Tue Oct 29, 2019 11:22 pm
Forum: General Discussion
Topic: Best way to avoid an error if an Internet Explorer Element is not found
Replies: 3
Views: 5542

Re: Best way to avoid an error if an Internet Explorer Element is not found

I just responded to this question via your support ticket, as your question there contained more specifics.
by Dorian (MJT support)
Fri Oct 25, 2019 2:14 pm
Forum: Technical / Scripting
Topic: Calculation problem
Replies: 3
Views: 2294

Re: Calculation problem

I see exactly what you mean. Thank you for bringing this to our attention. We've added it to the list of things for dev to look at.
by Dorian (MJT support)
Thu Oct 24, 2019 11:00 am
Forum: Technical / Scripting
Topic: Calculation problem
Replies: 3
Views: 2294

Re: Calculation problem

I tried your code and didn't experience any performance issues, so it's difficult to test, but there are two things I might try. #1. I'm wondering if your use of n as a variable is interfering with the n in format. Format still seems to be working though, so this may be a red herring. See if this is...
by Dorian (MJT support)
Wed Oct 23, 2019 2:53 pm
Forum: Technical / Scripting
Topic: Error: "Cannot Run Dialog. Not Found"
Replies: 3
Views: 4990

Re: Error: "Cannot Run Dialog. Not Found"

It ran fine for me in 14.5.5. It gave me that error as soon as I clicked any buttons, but adding some empty subroutines fixed that. To answer your other question, nothing relating to Dialogs has been changed in 14.5.5. let>strLastFolder=Z:\ Dialog>Dialog1 object Dialog1: TForm Left = 635 Top = 307 H...
by Dorian (MJT support)
Mon Oct 21, 2019 10:27 am
Forum: Technical / Scripting
Topic: Problem with XLOpen & XLGet with SharePoint?
Replies: 2
Views: 1999

Re: Problem with XLOpen & XLGet with SharePoint?

I'm quite surprised that your method worked in the first place. I don't think we've ever had any support requests from anyone using XLOpen that way. Your assumptions are correct. The update now checks for the file. Being able to open remote files appears to be an undocumented side effect of Macro Sc...
by Dorian (MJT support)
Mon Oct 21, 2019 10:15 am
Forum: Enhancement Suggestions
Topic: Trigonometric functions
Replies: 2
Views: 6793

Re: Trigonometric functions

I consulted Marcus about this, and he suggests it's a perfect candidate for python. A good starting point would be PyExec
by Dorian (MJT support)
Mon Oct 21, 2019 9:53 am
Forum: General Discussion
Topic: MS Keeps Crashing
Replies: 1
Views: 4304

Re: MS Keeps Crashing

We answered this via support. :D
by Dorian (MJT support)
Thu Oct 10, 2019 3:36 pm
Forum: Technical / Scripting
Topic: xlGetSheetDims returns wrong number of rows
Replies: 4
Views: 3115

Re: xlGetSheetDims returns wrong number of rows

I think Grovkillen is on the right track. I wouldn't mind betting if you were to copy and paste those 1061x18 into a new sheet it'll find the correct dimensions.
by Dorian (MJT support)
Tue Oct 08, 2019 10:19 am
Forum: Technical / Scripting
Topic: Logging scripts makes it slow. Need an alternative
Replies: 4
Views: 2757

Re: Logging scripts makes it slow. Need an alternative

Another possible method is the to use the "_WRITE_LOG_FILE" system variable. When it is set to "0" logging is suspended until you reset it back to "1". If the script always fails in the same place or places, those may be the only places that need to be logged. Let>_WRITE_LOG_FILE=0 //Lines of code ...
by Dorian (MJT support)
Mon Oct 07, 2019 12:49 pm
Forum: Beginners
Topic: Trying to click the "desktop" image in a Internet Explorer "Choose file to upload" window
Replies: 1
Views: 2468

Re: Trying to click the "desktop" image in a Internet Explorer "Choose file to upload" window

I'd be more inclined to use GetFileList to get the list of files in the folder, then enter each path and filename as you loop through all the files.
by Dorian (MJT support)
Mon Oct 07, 2019 12:46 pm
Forum: Technical / Scripting
Topic: Pressing two keys simultaneously
Replies: 5
Views: 4403

Re: Pressing two keys simultaneously

I think I just answered this question via the help desk, so you'll see a more in-depth answer there.

Code: Select all

Press Shift
Press Tab
Release Shift
by Dorian (MJT support)
Mon Oct 07, 2019 12:42 pm
Forum: Technical / Scripting
Topic: Logging scripts makes it slow. Need an alternative
Replies: 4
Views: 2757

Re: Logging scripts makes it slow. Need an alternative

The System Variable _LINE_NUM returns the current line being executed and may be a good starting point for what you're trying to do.

See it in action :

Code: Select all

MessageModal>%_LINE_NUM%
by Dorian (MJT support)
Fri Oct 04, 2019 8:59 am
Forum: Technical / Scripting
Topic: Calculation problem
Replies: 3
Views: 2084

Re: Calculation problem

I asked Marcus about this and his response it's because the numbers are floating point numbers internally.
by Dorian (MJT support)
Wed Oct 02, 2019 2:12 pm
Forum: Technical / Scripting
Topic: A few scripting questions :) for a Noob
Replies: 2
Views: 1950

Re: A few scripting questions :) for a Noob

1. Is there a good way to automate clicking a button on a webpage, when a) the button is not currently shown on the page - it is scrolled down a few pages? and b) if the mouse is hovering over the button causing the tiny little pop up box to pop up and "cover" up the button... (in the situation whe...
by Dorian (MJT support)
Wed Oct 02, 2019 1:42 pm
Forum: General Discussion
Topic: everyday logon and print
Replies: 3
Views: 5376

Re: everyday logon and print

Hi,

I think this article might answer your question : https://help.mjtnet.com/article/14-why- ... logged-out
Sign up to our newsletter for free automation tips, tricks & discounts