Search found 6996 matches

by Marcus Tettmar
Thu Nov 17, 2022 12:58 pm
Forum: Technical / Scripting
Topic: Problem while reading Json from a text file
Replies: 2
Views: 1815

Re: Problem while reading Json from a text file

You're getting this error because that is not valid JSON.

If you fix the JSON it will work. Here's the correct version:

Code: Select all

{
  "errorCode": "0",
  "isRunning": "False",
  "exeFileChecked": "C:\\Program Files (x86)program\\Program.exe"
}
by Marcus Tettmar
Thu Oct 06, 2022 2:20 pm
Forum: Technical / Scripting
Topic: Strange Error Message
Replies: 8
Views: 7604

Re: Strange Error Message

HelpContext is set to 5000. It is therefore trying to load a help topic from a non existent help file. Try changing that value to 0 or just remove the line altogether.
by Marcus Tettmar
Mon Aug 15, 2022 11:49 am
Forum: Technical / Scripting
Topic: HTTPrequest does not work for SOAP (XML)
Replies: 2
Views: 3272

Re: HTTPrequest does not work for SOAP (XML)

Hi, HTTP_CUSTOM_HEADERS needs the list CRLF delimited. So try this: Let>HTTP_CUSTOM_HEADERS=Content-Type: text/xml; charset=utf-8%CRLF%SOAPAction: That should mirror the headers you're sending via Curl, in case that is the issue. If that doesn't work I'd really need to be able to try it. If you're a...
by Marcus Tettmar
Tue Aug 09, 2022 11:24 am
Forum: Enhancement Suggestions
Topic: Support for sockets
Replies: 4
Views: 14148

Re: Support for sockets

Hi, VBScript and VB are very different. There's no built in support for sockets in VBScript. There used to be mswinsck.ocx which I'm guessing it *may* have been possible to use with VBScript, but I'm not sure if it even exists any more. Another option might be to use the socket library with Python: ...
by Marcus Tettmar
Tue Dec 28, 2021 1:02 pm
Forum: The Water Cooler
Topic: A little word game for the holidays
Replies: 1
Views: 9808

Re: A little word game for the holidays

Thanks JRL! So who has tried it and how did you do?
by Marcus Tettmar
Tue Dec 14, 2021 12:03 pm
Forum: General Discussion
Topic: 4K UHD
Replies: 8
Views: 18003

Re: 4K UHD

In Macro Scheduler 15.0.20 we have increased the zoom threshold at which we switch to the larger icons from 101% to 150%. It shouldn't look quite so 'comical' now at 125% zoom.
by Marcus Tettmar
Tue Dec 14, 2021 12:01 pm
Forum: Technical / Scripting
Topic: How to access chrome child window
Replies: 2
Views: 2558

Re: How to access chrome child window

Version 15.0.20 now has native ChromeGetWIndows and ChromeSwitchWindow functions.
by Marcus Tettmar
Mon Oct 04, 2021 2:05 pm
Forum: Technical / Scripting
Topic: How to control webpage popups
Replies: 2
Views: 2516

Re: How to control webpage popups

That pop up looks like regular html inside the page, so you would control it the same as any other html element.
by Marcus Tettmar
Mon Sep 27, 2021 12:44 pm
Forum: Technical / Scripting
Topic: Cursor for HTMLViewer isn't working
Replies: 8
Views: 3847

Re: Cursor for HTMLViewer isn't working

If you set the HTML of the HTMLViewer and put some text in it you'll notice the cursor changes to the hand pointer when you move over the text. It works with other visible objects too. So it seems you need a visible HTML element in the HTML for the cursor to change. I tried setting the css cursor pr...
by Marcus Tettmar
Tue Aug 31, 2021 2:39 pm
Forum: Technical / Scripting
Topic: Issues with ChromeDriver.exe used on multiple RDP's on Server
Replies: 7
Views: 4809

Re: Issues with ChromeDriver.exe used on multiple RDP's on Server

Hi, Probably just isn't possible. ChromeDriver runs a small http server. I guess only one instance of it can run per machine. And when it gets a response it fires up Chrome. So I can see why it won't play well in a server context where you might have multiple users. The first one will already be run...
by Marcus Tettmar
Mon Aug 16, 2021 2:55 pm
Forum: Enhancement Suggestions
Topic: WriteLn is great but...
Replies: 15
Views: 22203

Re: WriteLn is great but...

Anything that 'rewrites' a file actually deletes it and creates a new one. There's no such thing as rewriting a file. You either create a new one then delete the old one and rename the new one or you delete the old one and write out the new one with the same name. Whatever way we do this it would st...
by Marcus Tettmar
Thu Aug 12, 2021 9:52 pm
Forum: Enhancement Suggestions
Topic: WriteLn is great but...
Replies: 15
Views: 22203

Re: WriteLn is great but...

Just DeleteFile and then WriteLn with WLN_NOCRLF set (if you don't want it adding a line break at the end). Really this is all any WriteFile command would do anyway. So why not make a subroutine: SRT>WriteFile DeleteFile>WriteFile_Var_1 Let>WLN_NOCRLF=1 WriteLn>WriteFile_Var_1,wres,WriteFile_Var_2 L...
by Marcus Tettmar
Sun Jun 27, 2021 8:43 am
Forum: Technical / Scripting
Topic: how can a script receive http requests?
Replies: 2
Views: 3352

Re: how can a script receive http requests?

Macro Scheduler Enterprise includes a plug-in called msNet which makes Macro Scheduler listen for HTTP requests, allowing scripts to be executed via http and data returned in the response ...
by Marcus Tettmar
Sun Jun 27, 2021 8:41 am
Forum: Technical / Scripting
Topic: Gettextinit freezes debugger
Replies: 20
Views: 22646

Re: Gettextinit freezes debugger

To read a text file just use ReadFile ...
cron
Sign up to our newsletter for free automation tips, tricks & discounts