Search found 1348 matches

by Dorian (MJT support)
Tue Oct 13, 2020 7:31 pm
Forum: Beginners
Topic: How to check the shared drives can be connected
Replies: 2
Views: 2801

Re: How to check the shared drives can be connected

Can you use GetFileList and perform one action if the file count is >0 and another if it isn't? Or is that too simplistic?

Code: Select all

GetFileList>c:\doesnotexist\*.*,files
Separate>files,;,file_names

If>%file_names_count%>0
  messagemodal>I found files
Else
  messagemodal>Nothing here
Endif
by Dorian (MJT support)
Wed Oct 07, 2020 3:52 pm
Forum: Technical / Scripting
Topic: Getting values from "VSFlexGrid8L"
Replies: 3
Views: 5126

Re: Getting values from "VSFlexGrid8L"

It's a control embedded in another app so it's very unlikely you'll be able to get the data you need.

You might be able to get all the text with the UIAccessibleList functions or similar. But that's probably about it.
by Dorian (MJT support)
Tue Oct 06, 2020 7:28 pm
Forum: Technical / Scripting
Topic: Getting values from "VSFlexGrid8L"
Replies: 3
Views: 5126

Re: Getting values from "VSFlexGrid8L"

If it's an application I suggest trying the Find Object Wizard on it.
by Dorian (MJT support)
Tue Oct 06, 2020 4:23 pm
Forum: Beginners
Topic: New User
Replies: 1
Views: 4596

Re: New User

I suggest trying the Find Object Wizard on it. It'll generate the code for you.
by Dorian (MJT support)
Thu Oct 01, 2020 6:54 am
Forum: Technical / Scripting
Topic: Returning file through MsNet API call
Replies: 5
Views: 5473

Re: Returning file through MsNet API call

Once the PDF is created (and uploaded), simply set the Macro_Result to be the HTML to embed a PDF let>Macro_result=<html><body><embed src="https://d3hk78fplavsbl.cloudfront.net/brochures/VirginHolidays-USAandCANADA-Touring2020.pdf" type="application/pdf" width="100%" height="600px" /></body></html> ...
by Dorian (MJT support)
Wed Sep 30, 2020 5:44 pm
Forum: Technical / Scripting
Topic: Returning file through MsNet API call
Replies: 5
Views: 5473

Re: Returning file through MsNet API call

I downloaded and installed the free trial of Total Doc Converter (the full version is not free but the utility looks excellent). I was able to automate converting the txt output to pdf via the CLI using : runprogram>C:\Program Files\CoolUtils\TotalDocConverter\DocConverter64.exe "d:\macro-result.txt...
by Dorian (MJT support)
Wed Sep 30, 2020 4:52 pm
Forum: Technical / Scripting
Topic: Returning file through MsNet API call
Replies: 5
Views: 5473

Re: Returning file through MsNet API call

I'm not 100% sure this is answering your question, but you could certainly use WriteLn to output to a text file. hour>TheHour min>TheMin sec>TheSec let>Macro_result=Processed at %TheHour%:%TheMin%:%TheSec% WriteLn>d:\macro-result.txt,,Macro_Result Macro Scheduler can't natively create a pdf, but it ...
by Dorian (MJT support)
Tue Sep 29, 2020 11:34 am
Forum: Technical / Scripting
Topic: Quotes in if statements, blog solution not working.
Replies: 3
Views: 4091

Re: Quotes in if statements, blog solution not working.

I'm currently investigating this, and have asked Marcus for his input. Although the current version when that article was written in 2008 was v10, and it was changed in v12. Version 12.0.0.30 17/05/2010 Quotes in strings passed to complex expressions are now automatically escaped However, I am still...
by Dorian (MJT support)
Tue Sep 22, 2020 2:07 pm
Forum: Technical / Scripting
Topic: Find Text
Replies: 1
Views: 3313

Re: Find Text

Can you post a screenshot of what you're trying to detect? It's likely there's a few ways, and it would help us determine which may be best. Specifically the if/else/endif part of the code would be something like this : If>a condition is met do this else do that endif So for example, if a=1, do some...
by Dorian (MJT support)
Fri Sep 11, 2020 11:48 am
Forum: Beginners
Topic: ArrayCount
Replies: 3
Views: 5298

Re: ArrayCount

I have made Marcus aware of our findings and of this thread, and we'll see what he comes up with.
by Dorian (MJT support)
Thu Sep 10, 2020 6:59 pm
Forum: Beginners
Topic: ArrayCount
Replies: 3
Views: 5298

Re: ArrayCount

If I run your code without any arrays, I just get MDL returning zero 20 times. However, if I use ArrayDim to create 20 arrays, mine hangs on ArrayCount too. In fact it hangs even if I simply create 1 array, and use ArrayCount in conjunction with a variable. This hangs : ArrayCount>Array%k%,itemCount...
by Dorian (MJT support)
Wed Sep 09, 2020 3:56 pm
Forum: Beginners
Topic: Add two numbers
Replies: 2
Views: 4305

Re: Add two numbers

In the Help File it says "Deprecated by Let for numeric calculations"

Therefore :

Code: Select all

let>t=1.23
let>tt=0.009
Let>xx=t+tt
xx = 1.239 as required.
by Dorian (MJT support)
Mon Sep 07, 2020 9:09 am
Forum: Technical / Scripting
Topic: Finding all files in subfolders?
Replies: 3
Views: 4582

Re: Finding all files in subfolders?

Hi Phil,

GetFileList still isn't recursive.
by Dorian (MJT support)
Thu Sep 03, 2020 2:49 pm
Forum: Technical / Scripting
Topic: problem with SRT start and end mismatch
Replies: 6
Views: 7649

Re: problem with SRT start and end mismatch

I've never managed to get to the bottom of it. I've experienced it too.
Sign up to our newsletter for free automation tips, tricks & discounts