Search found 3455 matches

by JRL
Thu Mar 18, 2021 1:21 pm
Forum: General Discussion
Topic: Embed animated gif in dialog/window
Replies: 5
Views: 21000

Re: Embed animated gif in dialog/window

...need to know how to get "image data" from an image file. 1) Open a bright, shiny, new script in the editor. 2) Select the "Tools" menu item at the top of the script editor. 3) Second item down the list is "Import binary File". Select that. 4) At the bottom right of the file selection window is a...
by JRL
Wed Mar 10, 2021 7:24 pm
Forum: Technical / Scripting
Topic: RegEx
Replies: 6
Views: 3843

Re: RegEx

So... what was the solution?
by JRL
Fri Feb 26, 2021 10:20 pm
Forum: Scripts and Tips
Topic: Lock Key Status
Replies: 0
Views: 37086

Lock Key Status

Yes. Sort of a pun. In any case my keyboard's LEDs have stopped working and I'm tired of not knowing whether my caps lock in on or off. This opens a little dialog that tells you. Left to right is Caps lock, Num Lock and Scroll Lock status. This little script demos a few advanced dialog capabilities....
by JRL
Thu Feb 18, 2021 5:14 am
Forum: Enhancement Suggestions
Topic: Keyboard commands
Replies: 14
Views: 18525

Re: Keyboard commands

Grovkillen,
Thank you for the clarification.
by JRL
Wed Feb 17, 2021 7:23 pm
Forum: Enhancement Suggestions
Topic: Keyboard commands
Replies: 14
Views: 18525

Re: Keyboard commands

CTRL+C = if no selection; copy the row you're on to clipboard CTRL+X = if no selection; cut the row you're on to clipboard CTRL+/ (7) = block comment, if no selection; comment out row I would use these three 100 times a day if they existed. Not sure I understand the first one. Working from home for...
by JRL
Fri Jan 08, 2021 6:02 pm
Forum: Beginners
Topic: How to handle system errors?
Replies: 7
Views: 6939

Re: How to handle system errors?

Here's a sample script that implements both of the methods I mentioned might be possible. Oddly the Last_Error_Line variable does not record the correct line number. Instead it records the last line of the OnEvent sampling subroutine Let>Last_Error= Let>Last_Error_Line= Let>vVarMonTest=new DeleteFil...
by JRL
Fri Jan 08, 2021 2:00 pm
Forum: Technical / Scripting
Topic: How to remove macro scheduler logo and name in input dialogue box
Replies: 6
Views: 3758

Re: How to remove macro scheduler logo and name in input dialogue box

Here is a custom input box with a little extra. DeleteFile>%temp_Dir%IconProducerScript.scp DeleteFile>%temp_dir%Blank.ico ExportData>WHITE.TXT_DATA,%temp_dir%Blank.ico LabelToVar>IconProducer,vData WriteLn>%temp_Dir%IconProducerScript.scp,wres,vData Wait>0.1 ExecuteFile>%temp_Dir%IconProducerScript...
by JRL
Fri Jan 08, 2021 1:32 pm
Forum: Beginners
Topic: How to handle system errors?
Replies: 7
Views: 6939

Re: How to handle system errors?

However, in general do you know any method to capture system errors within MS? There are two variables created after the error is closed (assuming the script continues). Last_Error and Last_Error_Line . The first provides the text of the error that was displayed and the second provides the line num...
by JRL
Wed Jan 06, 2021 7:41 pm
Forum: Technical / Scripting
Topic: How to remove macro scheduler logo and name in input dialogue box
Replies: 6
Views: 3758

Re: How to remove macro scheduler logo and name in input dialogue box

Though I agree using a dialog is the way to go, I wanted to point out that it is possible to alter just about any window, including the Input window. Let>INPUT_BROWSE=1 Let>INPUT_BROWSE_FILTER=Excel files (*.xlsx)|*.XLSX DeleteFile>%temp_dir%RenameInput.scp LabelToVar>ProgramToWrite,vData WriteLn>%t...
by JRL
Tue Jan 05, 2021 10:43 pm
Forum: Technical / Scripting
Topic: Get the parent directory path of the exe file
Replies: 3
Views: 2675

Re: Get the parent directory path of the exe file

Long story short. The variable Script_Dir will contain the location from which your executable was run.
by JRL
Sat Jan 02, 2021 8:22 pm
Forum: Beginners
Topic: How to handle system errors?
Replies: 7
Views: 6939

Re: How to handle system errors?

Grovkillen wrote:So my take is to always use a watchdog.
Me too.
by JRL
Sat Jan 02, 2021 8:18 pm
Forum: The Water Cooler
Topic: Happy 15th forum birthday to JRL
Replies: 8
Views: 19088

Re: Happy 15th forum birthday to JRL

We're all still in THE '20s.
Happy new year!
by JRL
Thu Dec 17, 2020 4:32 pm
Forum: Technical / Scripting
Topic: Virtual key press, possible?
Replies: 1
Views: 1609

Re: Virtual key press, possible?

From: https://help.mjtnet.com/article/262-virtual-key-codes
VK_MEDIA_PLAY_PAUSE (179): Windows 2000/XP: Play/Pause Media key
This works for me on youtube

Send>VK179
Sign up to our newsletter for free automation tips, tricks & discounts