Search found 3454 matches

by JRL
Tue Apr 19, 2022 6:53 pm
Forum: Technical / Scripting
Topic: Naming Tabsheets
Replies: 11
Views: 4299

Re: Naming Tabsheets

Good news is using SetControlText> and SetObjectText> both work to change the name of the tab. Bad news is that changing the name doesn't cause the displayed name to change. You can run this, use the edit field and button to change the name of "Tab 2". Leave the dialog open and use "View System Wind...
by JRL
Fri Apr 15, 2022 6:38 pm
Forum: The Water Cooler
Topic: The Unofficial Macro Scheduler Puzzler #13
Replies: 17
Views: 49477

The Unofficial Macro Scheduler Puzzler #13

Its been more than 4 years since Puzzler #12 . Hopefully I've been forgiven. The game this time is to use the DateStamp> function to produce a nice clean result. something that looks like this: 2022-04-15:12:14: 00:000 - result Such that when DateStamp> writes it's data, it writes it within a millis...
by JRL
Tue Apr 12, 2022 7:04 pm
Forum: Technical / Scripting
Topic: Checkboxes behaving sporadically
Replies: 4
Views: 3216

Re: Checkboxes behaving sporadically

Hi Phil, Never noticed that type of issue. I threw together the following to test. Pick the "Flipping Checkboxes" button and whatever state each checkbox is in will be reversed. Pick the "Enable / Disable" button and any checkbox that is checked will be disabled. I don't see any issues. That said yo...
by JRL
Mon Apr 11, 2022 11:00 am
Forum: Technical / Scripting
Topic: ftp issue
Replies: 3
Views: 2530

Re: ftp issue

Then it just hangs up Is that more or less what happens when using your original code? From the info you sent it looks like you got logged in ok. you changed directories ok. It fails the moment the download begins. For giggles see if Binary works. I don't see an image in your original post but I'm ...
by JRL
Fri Apr 01, 2022 6:24 pm
Forum: Technical / Scripting
Topic: ftp issue
Replies: 3
Views: 2530

Re: ftp issue

A little longer than yours. Using DOS rather than Macro Scheduler functions for the FTP. I use this twice a day every day and I've never had an issue. DeleteFile>%temp_dir%DownloadFTP.bat DeleteFile>%temp_Dir%NewFTP.txt Let>vSite=ftp.edocfile.com Let>vFTPPath=/kpassaur/keys/ Let>vFile=keys.txt Let>v...
by JRL
Mon Mar 07, 2022 1:54 pm
Forum: Technical / Scripting
Topic: Mouse clicking start button not working, solution: run macro as admin
Replies: 8
Views: 3872

Re: Mouse clicking start button not working, works with debug step

Can you use the tab key in the application to manually move from button to button? If you land on the button after pressing tab does pressing "Enter" then actuate the button? If these answers are yes, then perhaps a script using keyboard functions might work. SetFocus>WindowName Press Tab /* Specifi...
by JRL
Fri Mar 04, 2022 2:53 pm
Forum: Technical / Scripting
Topic: Mouse clicking start button not working, solution: run macro as admin
Replies: 8
Views: 3872

Re: Mouse clicking start button not working, works with debug step

Why does the Lclick I perform with debug step differ from running the whole code (even if the code would have exactly same lines, nothing more nothing less in it)? Timing. My guess is the you're automated software doesn't have enough time to recognize that the mouse has arrived before you make the ...
by JRL
Wed Feb 16, 2022 9:46 pm
Forum: Technical / Scripting
Topic: Find Window With No Title and Variable Class Name
Replies: 1
Views: 1734

Re: Find Window With No Title and Variable Class Name

Try this. I took it from my " Enumerate All Windows " post. You would set the portion of the class name you want to discover to the "vPartClass" variable (Line one). As written the vPartClass variable value will be case sensitive. If found the "DetectPortion" Subroutine will display the Window Handl...
by JRL
Tue Jan 11, 2022 2:06 pm
Forum: Technical / Scripting
Topic: My javascript script not working
Replies: 4
Views: 2875

Re: My javascript script not working

I have no idea how to make your java script run within Macro Scheduler. I'm also unsure what all you are looking to accomplish but hex and octal and decimal and ansi conversion examples are all over the internet in vbscript. Vbscript, of course, runs natively in Macro Scheduler I've had this one for...
by JRL
Mon Dec 27, 2021 6:17 pm
Forum: The Water Cooler
Topic: A little word game for the holidays
Replies: 1
Views: 9917

A little word game for the holidays

Fire this script up and when the dialog is finished loading you can start to play. The timer will start when you type your first character guess and will finish when you enter a correct answer into the solution edit field. The idea is to enter one character at a time and then try to guess the hidden...
by JRL
Mon Dec 20, 2021 2:01 pm
Forum: Enhancement Suggestions
Topic: Arithmetic Operators as variables
Replies: 5
Views: 10905

Re: Arithmetic Operators as variables

Nice solution! I like it!
by JRL
Wed Dec 15, 2021 9:20 pm
Forum: Enhancement Suggestions
Topic: Arithmetic Operators as variables
Replies: 5
Views: 10905

Re: Arithmetic Operators as variables

This works for me.

Code: Select all

Let>OPERATOR=+
Let>TERM_1=20
Let>TERM_2=12
LabelToVar>Full_Function,vCode

IncludeFromVar>vCode
MDL>res


Let>OPERATOR=-
Let>TERM_1=44
Let>TERM_2=19
LabelToVar>Full_Function,vCode

IncludeFromVar>vCode
MDL>res

/*
Full_Function:
  Let>RES={(%Term_1% %OPERATOR% %Term_2%)}
*/
by JRL
Mon Dec 13, 2021 1:32 pm
Forum: Technical / Scripting
Topic: A component named Dialog1 already exists [Resolved]
Replies: 2
Views: 2041

Re: A component named Dialog1 already exists

Make sure your Dialog1 has a name (Caption = 'This is my Dialog')

Put these three lines at the top of your script:

Code: Select all

IfWindowOpen>This is my Dialog*
  Exit>0
EndIf
by JRL
Wed Dec 01, 2021 10:43 pm
Forum: Technical / Scripting
Topic: Folder path verification
Replies: 4
Views: 4050

Re: Folder path verification

PepsiHog wrote:Also, I did not know you knew vb, but I do now. Source noted.
muy pequeño
Also, about as much Spanish as I know.
by JRL
Tue Nov 30, 2021 4:29 pm
Forum: Technical / Scripting
Topic: Folder path verification
Replies: 4
Views: 4050

Re: Folder path verification

I could not make your found routine work so I wrote a new one. returns "1" if the folder exists and "0" if it does not I have a question for you: Why are you not using IfDirExists> which is native? VBSTART function ShowParentFolderName(filespec) set fso = CreateObject("Scripting.FileSystemObject") f...
Sign up to our newsletter for free automation tips, tricks & discounts