Search found 19 matches

by DreamTheater
Fri Feb 28, 2020 6:08 am
Forum: Technical / Scripting
Topic: My script thinks a window is open when it's not?
Replies: 5
Views: 700

Re: My script thinks a window is open when it's not?

Some web systems have hidden windows in the background which could cause this, especially Siebel based systems.
by DreamTheater
Mon Feb 17, 2020 6:09 am
Forum: General Discussion
Topic: Sneak Peak of new functions..
Replies: 8
Views: 1904

Re: Sneak Peak of new functions..

Looking forward to being able to use full VBA, that'll give me a good enough reason to learn it for workarounds and stuff!
by DreamTheater
Fri Feb 07, 2020 6:13 am
Forum: Beginners
Topic: WriteLn Command
Replies: 5
Views: 702

Re: WriteLn Command

I'm not sure if I understand exactly what you mean, but if you don't want it to include the line break for each WriteLn> you can use:

Code: Select all

Let>WLN_NOCRLF=1
//Do stuff
Let>WLN_NOCRLF=0
by DreamTheater
Thu Feb 06, 2020 3:36 am
Forum: Technical / Scripting
Topic: Unable to open Variable Code Explorer properly
Replies: 2
Views: 352

Re: Unable to open Variable Code Explorer properly

After an energy drink and a bit more testing I have found and replicated the root cause. IEGetTagPos>IE_MAX_PICKR,_swepopcontent,span,id,%PICKR_OKID%,PICKR_X,PICKR_Y Try create a new .SCP file with that line and open the Variable Code Explorer and the error should appear. I can step through this par...
by DreamTheater
Thu Feb 06, 2020 2:42 am
Forum: Technical / Scripting
Topic: Unable to open Variable Code Explorer properly
Replies: 2
Views: 352

Unable to open Variable Code Explorer properly

Hi, I'm putting some final touches on a script I've been working on and when I tried to check the variables from the variable code explorer (CTRL ALT V) I receive an error message and the variables do not appear. After trying to open the explorer it hangs for about 5-10 seconds and then returns a po...
by DreamTheater
Tue Feb 04, 2020 2:29 am
Forum: Technical / Scripting
Topic: Determining if a Macro is already running
Replies: 10
Views: 973

Re: Determining if a Macro is already running

Have you tried something like this?

Code: Select all

ProcessExists>Process_Name.exe,res

If>res=True
    MDL>Process is already running.
    Exit>0
EndIf>
by DreamTheater
Wed Jan 29, 2020 6:43 am
Forum: Technical / Scripting
Topic: search area determined by previous image location
Replies: 2
Views: 336

Re: search area determined by previous image location

The FindObject Wizard under Window Objects may be useful.
If it's a website then try the IE Element Wizard under WebRecorder Functions.


What sort of application/website is it? I try to use image recognition as a last resort, there might be an easier way to achieve this, especially if it's a website.
by DreamTheater
Fri Jan 24, 2020 6:51 am
Forum: Technical / Scripting
Topic: Remove blank lines when there are more than one of them
Replies: 10
Views: 898

Re: Remove blank lines when there are more than one of them

In my experience for Regex you need to do a lot of testing, what returns results in some engines doesn't always seem to in Macro Scheduler. I use Regex101 for all of my testing, that engine by default has multiline and global mode enabled by default. I've had issues with forgetting to enable multili...
by DreamTheater
Wed Jan 22, 2020 3:53 am
Forum: Technical / Scripting
Topic: Function to retrieve dimensions of a bmp/png/jpg image
Replies: 3
Views: 387

Re: Function to retrieve dimensions of a bmp/png/jpg image

I haven't had to do this before and I'm not sure, but if there's a way of accessing the metadata of the image you can read the dimensions from there. (Right click > Properties > Details tab > Dimensions | on WIN7)
by DreamTheater
Wed Jan 22, 2020 3:47 am
Forum: Technical / Scripting
Topic: Remove blank lines when there are more than one of them
Replies: 10
Views: 898

Re: Remove blank lines when there are more than one of them

This might not be the best way, but should do what you're after: //Variable to remove extra lines from Let>TEST=Paragraph1%CRLF%%CRLF%%CRLF%%CRLF%Paragraph2%CRLF%Paragraph3. //Separate using CRLF Separate>TEST,%CRLF%,TEST_ARR //Result will be the new variable without extra breaks - concat the first ...
by DreamTheater
Sun Jan 19, 2020 11:03 pm
Forum: Beginners
Topic: Close active tab Chorme
Replies: 5
Views: 922

Re: Close active tab Chorme

Ensure focus is set on the Chrome window then press CTRL+F4 to close a single tab.
by DreamTheater
Fri Jan 17, 2020 4:56 am
Forum: Technical / Scripting
Topic: Finding an image that has changed size
Replies: 3
Views: 429

Re: Finding an image that has changed size

In some older scripts I had different paths and things to check depending on screen res, after a while I stopped and made them 1080p only. GetScreenRes>nWidth,nHeight If>nWidth<>1920 Goto>ScreenResError Endif> If>nHeight<>1080 Goto>ScreenResError Endif> If there's an alternate method to search for t...
by DreamTheater
Sun Jan 05, 2020 11:48 pm
Forum: Technical / Scripting
Topic: Complex Expression Length() issue?
Replies: 9
Views: 830

Re: Complex Expression Length() issue?

I don't think it's possible to set as a string in the first instance as it's using CSVFileToArray to grab the data.

Referring to it as a string ("%Var%") and the complex expression does work as intended, cheers.
by DreamTheater
Fri Dec 20, 2019 12:00 am
Forum: Technical / Scripting
Topic: Complex Expression Length() issue?
Replies: 9
Views: 830

Re: Complex Expression Length() issue?

Thanks guys,

I haven't used Format> much so I'll have a play around with that.

Happy holidays!
by DreamTheater
Thu Dec 19, 2019 1:29 am
Forum: Technical / Scripting
Topic: Complex Expression Length() issue?
Replies: 9
Views: 830

Re: Complex Expression Length() issue?

Hi Dorian, Thanks for your reply, I believe the Complex Expression is working (without an error message), but not as expected and ConCat is working as expected. Essentially my goal with this is to confirm that the value in the array is either 9 or 10 digits. The MSN variable (Mobile Service Number) ...
Sign up to our newsletter for free automation tips, tricks & discounts