I like using LabelToVar to store a powershell script that relies on the winscp assembly.
https://winscp.net/eng/docs/library_powershell#example
Search found 17 matches
- Fri Aug 09, 2024 5:04 am
- Forum: General Discussion
- Topic: SFTP in Macro Scheduler
- Replies: 3
- Views: 9823
- Fri Apr 26, 2024 7:40 pm
- Forum: Technical / Scripting
- Topic: RegEx Pattern Help
- Replies: 3
- Views: 5427
Re: RegEx Pattern Help
It sounds like you want a positive lookahead group. Let>string=2;7;49;4;16;19;42;38;39;1;8;17;13;12;39;51;9;20;29;35;36;37;10;50; Let>pattern=\d+(?=;13|;29) Regex>pattern,string,0,matches,num_matches,0 \d+ means 1 one more consecutive digits. (?=;13) is the positive lookahead, means, only match \d+ ...
- Fri Apr 26, 2024 12:24 am
- Forum: Scripts and Tips
- Topic: Getting Rid of chrome is being controlled by...
- Replies: 11
- Views: 22901
Re: Getting Rid of chrome is being controlled by...
Make sure you have the required variables setup to use ChromeStart and ChromeExecute. CHROMEDRIVEREXE=c:\path\to\chromedriver.exe CHROMEDRIVERPORT=a valid port number CHROMEDRIVEROPTIONS=any parameters you want to pass to chrome such as --incognito I use the chrome builds at https://googlechromelabs...
- Thu Apr 25, 2024 10:11 pm
- Forum: Enhancement Suggestions
- Topic: Command to check if chrome session exists
- Replies: 1
- Views: 8555
Command to check if chrome session exists
I am looking for a better way to shutdown and clean up chromedriver based sessions. When I use ChromeQuit and reference a Chrome Session ID that does not exist, it crashes the compiled macro scheduler process. On infrequent but persistent occasions, I find that chromedriver will not launch a new ses...
- Thu Apr 25, 2024 9:59 pm
- Forum: Enhancement Suggestions
- Topic: RegEx replace match [UNDOCUMENTED FEATURE?]
- Replies: 9
- Views: 36810
Re: RegEx replace match [UNDOCUMENTED FEATURE?]
What do you mean by 'global match'? Do you mean the number of groups captured? Do you mean have each capture group's content stored in an array? I think I originally used the perl documentation to figure out the syntax for referencing capture groups ( \1 \2 etc) https://perldoc.perl.org/perlre#Captu...
- Wed Apr 24, 2024 7:36 pm
- Forum: Technical / Scripting
- Topic: How to Compile Includes from the command line?
- Replies: 8
- Views: 8494
Re: How to Compile Includes from the command line?
In my first post in this topic, my example Include contains a hard-coded path. I tried Includes both ways: hardcoded and based on SCRIPT_DIR and neither includes the subroutine content when I compile from the command line. I promise I read through every post related to compiling and msrt that I coul...
- Wed Apr 24, 2024 4:53 pm
- Forum: Technical / Scripting
- Topic: How to Compile Includes from the command line?
- Replies: 8
- Views: 8494
Re: How to Compile Includes from the command line?
When I compile from the command line--not via the Editor--it looks like the INCLUDES=1 logic is ignored. From this, I infer that I cannot 'Compile Includes' without the Editor. Is this accurate? I am trying to determine if msrt.exe will 'Compile Includes', or if I must concatenate the included scrip...
- Tue Apr 23, 2024 9:17 pm
- Forum: Technical / Scripting
- Topic: How to Compile Includes from the command line?
- Replies: 8
- Views: 8494
Re: How to Compile Includes from the command line?
Does msrt.exe read the first line of the scp to determine whether it should compile includes?
- Tue Apr 23, 2024 6:53 pm
- Forum: Technical / Scripting
- Topic: CHROMERIVER_EXE variable name typo in documentation
- Replies: 1
- Views: 4037
CHROMERIVER_EXE variable name typo in documentation
In the link https://www.mjtnet.com/manuals/b/v15/topics/chromestart.htm which redirects to https://www.mjtnet.com/manuals/b/v15/index.htm?context=4320 It reads: CHROMERIVER_EXE on the 2nd line when it should say CHROMEDRIVER_EXE Also, in the time since this page was created, there is a new channel o...
- Sat Apr 20, 2024 2:31 am
- Forum: Technical / Scripting
- Topic: WaitScreenImage Not Working With ScreenShot
- Replies: 3
- Views: 5918
Re: WaitScreenImage Not Working With ScreenShot
Try changing the images you use to find more stable areas of the screen or change when you capture the images. The color depth, screen resolution, and so many other things make it a real challenge, as JRL and Grovkillen explained. The percentage of times that it fails when carefully used is amazingl...
- Sat Apr 20, 2024 2:16 am
- Forum: Enhancement Suggestions
- Topic: CopyFile documentation
- Replies: 5
- Views: 18370
Re: CopyFile documentation
I have had similar questions while debugging enough times that I now remember to lookup the decimal to hex conversion, to lookup the error meaning of the CF_RESULT_CODE decimal value on the Microsoft documentation page that is mentioned in the CopyFile documentation: https://learn.microsoft.com/en-u...
- Fri Apr 19, 2024 4:38 pm
- Forum: Technical / Scripting
- Topic: How to Compile Includes from the command line?
- Replies: 8
- Views: 8494
Re: How to Compile Includes from the command line?
I tested this on 3 different computers with Windows 10, I am still seeing the same problem: After moving the Included scp files to a different path after compiling, the exe encounters the error 'Subroutine/Label subroutine1 Not Found!' when it tries to execute the subroutine. This only happens when ...
- Thu Apr 18, 2024 7:56 pm
- Forum: Technical / Scripting
- Topic: How to Compile Includes from the command line?
- Replies: 8
- Views: 8494
How to Compile Includes from the command line?
I intend to compile multiple scp files in a custom deployment script, instead of using the Macro Scheduler Pro Editor to compile each scp individually. These scp files all reference the same set of Included subroutines. Is there a parameter or other means to 'Compile Includes' from the command line?...
- Thu Nov 09, 2023 10:10 pm
- Forum: Technical / Scripting
- Topic: chromedriver log errors to file
- Replies: 2
- Views: 12453
Re: chromedriver log errors to file
Thank you! I tried this and it does create a chromedriver.log file but it doesn't have much info in it, I think it's not working as expected. My attempt based on your example: KillProcess>chromedriver.exe KillProcess>chrome.exe Let>TargetURL=https://www.tide.com Let>CHROMEDRIVER_EXE=C:\ChromeForTest...
- Thu Nov 09, 2023 9:25 pm
- Forum: Technical / Scripting
- Topic: stolen_codes
- Replies: 2
- Views: 9922
Re: stolen_codes
Thank you! I will do that. The company bought new licenses and I used the new installers on the new server. I think it is the older MS14 version that may be inappropriately cloned. I will get it resolved and ensure the company is 100% compliant and paying for the correct licenses. I wanted the IT de...