Search found 6998 matches

by Marcus Tettmar
Mon Jan 16, 2023 11:54 am
Forum: Technical / Scripting
Topic: To print a window on a dialog image
Replies: 5
Views: 2648

Re: To print a window on a dialog image

The PrintWindow function is only going to work if the application in question responds to the WM_PRINT message and does something useful with it. Do you know if it does that? My bet is it doesn't. Most are unlikely to care. Most likely to be able to print a screenshot version of itself it also needs...
by Marcus Tettmar
Wed Nov 23, 2022 4:43 pm
Forum: Technical / Scripting
Topic: Reading Json response from clipboard
Replies: 1
Views: 1998

Re: Reading Json response from clipboard

Hi,

Remove the % characters around the clipboard variable in the JSONParse line. You can also remove Let and the format value.

Code: Select all

GetClipBoard>v_clipboardData
JSONParse>v_clipboardData,$.errorCode,v_jsonErrorCode
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: 1857

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: 7662

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: 3319

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: 14312

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: 9943

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: 18228

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: 2651

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: 2578

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: 3924

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: 4910

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: 22494

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: 22494

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...
Sign up to our newsletter for free automation tips, tricks & discounts