Search found 3455 matches

by JRL
Wed Mar 22, 2023 3:30 pm
Forum: The Water Cooler
Topic: Pet Peeves
Replies: 2
Views: 7249

Pet Peeves

Everybody has them (PP). Something that is insignificant yet makes you cringe. Like the F150 I seen (PP) parked sideways in front of an EV charging station. A deliberate ICING event using a known gas hog. Or the misuse of "there" - a position vs "their" - belonging to them vs "they're" - a contracti...
by JRL
Fri Mar 17, 2023 6:05 pm
Forum: Beginners
Topic: Yesterday date
Replies: 6
Views: 7736

Re: Yesterday date

I don't want to change my regional date setting to test but as I recall GetDate> presents in the format specified in regional settings. For Add> and Sub> to work with a date the date has to be in month/day/year format. No other format will work. You can use 1 digit month and day as well as 2 digit y...
by JRL
Fri Mar 17, 2023 1:54 pm
Forum: Beginners
Topic: Yesterday date
Replies: 6
Views: 7736

Re: Yesterday date

This should work in version 4 onward. //Pure Macro Scheduler Month>mm Day>dd Year>yyyy Let>today=%mm%/%dd%/%yyyy% Sub>today,1 //Variable today is now yesterday's date. MDL>today //Or VBScript VBStart VBEnd VBEval>now-1,yesterday MDL>yesterday //The result is date and time //To have only the date Sep...
by JRL
Tue Feb 21, 2023 8:03 pm
Forum: Technical / Scripting
Topic: Text File Locking with MS 15? (Resolved!!)
Replies: 5
Views: 2771

Re: Text File Locking with MS 15?

Can someone offer a suggestion as to what else I can test or look at? Windows Defender??? I have not kept official data but I have executables in version 15 that Defender has not only stopped/prevented from running but deleted the compiled file. I don't recall that ever happening with any previous ...
by JRL
Mon Feb 13, 2023 5:28 pm
Forum: Technical / Scripting
Topic: Capturing output from program in console
Replies: 4
Views: 3541

Re: Capturing output from program in console

Open a command prompt. Select "Properties" from the menu when you right click the command icon in the upper left corner. Make sure "Use legacy console..." is unchecked. Above that, make sure "Enable Ctrl Key Shortcuts" is checked. Close save and close any command windows you have open. From now forw...
by JRL
Thu Nov 03, 2022 9:07 pm
Forum: Scripts and Tips
Topic: Is Process Running Elevated?
Replies: 1
Views: 11085

Is Process Running Elevated?

For 30 years I was either the lone IT guy or the lead IT guy. In either case User Account Control or logging in to my desktop as Administrator or other administrative decisions were mine. Those days are gone. Probably a good thing. I may have been careless. But I did get away with it for 30 years. T...
by JRL
Tue Nov 01, 2022 9:37 pm
Forum: The Water Cooler
Topic: The Unofficial Macro Scheduler Puzzler #14
Replies: 5
Views: 14261

Re: The Unofficial Macro Scheduler Puzzler #14

I believe prime number discovery was an excuse to have a reason to learn how to decipher square roots. Or was that square root deciphering was a reason to have a book full of prime numbers? Here we are at the end of October or more precisely the start of November. Its time to announce the "winner" ...
by JRL
Thu Oct 27, 2022 9:12 pm
Forum: Scripts and Tips
Topic: Post an image on the forum via script
Replies: 1
Views: 8717

Post an image on the forum via script

So you've got a problem and you want to be able to post an image on the forum to help others diagnose your issue. But you can't. What you can do is post a link to an image that you place on some other web page. And most images currently posted on the forum seem to work as well as the one above. They...
by JRL
Fri Oct 14, 2022 9:26 pm
Forum: The Water Cooler
Topic: The Unofficial Macro Scheduler Puzzler #14
Replies: 5
Views: 14261

Re: The Unofficial Macro Scheduler Puzzler #14

@hagchr, I've not yet examined your latest offering. Hopefully get to it before Monday. @The World Here is what I started with. It is as I was taught when these were done longhand using paper and pencil. I believe prime number discovery was an excuse to have a reason to learn how to decipher square ...
by JRL
Wed Oct 12, 2022 2:35 pm
Forum: The Water Cooler
Topic: The Unofficial Macro Scheduler Puzzler #14
Replies: 5
Views: 14261

Re: The Unofficial Macro Scheduler Puzzler #14

hagchr, Thanks for playing. I like your concept. The only downside I see is that the request was for the first 10,000 prime numbers and you instead used the ten thousandth prime number as your limiter. Not difficult when the value is provided to you but when the request comes in for the first 1,000,...
by JRL
Fri Oct 07, 2022 9:51 pm
Forum: The Water Cooler
Topic: The Unofficial Macro Scheduler Puzzler #14
Replies: 5
Views: 14261

The Unofficial Macro Scheduler Puzzler #14

I just did a forum search and found zero references to this topic. It is an otherwise very well covered subject that I've personally never had much interest in. Almost everybody has heard of it and almost no one knows what its good for. I'm talking about prime numbers. For puzzler #14 we wonder how ...
by JRL
Thu Oct 06, 2022 7:51 pm
Forum: Technical / Scripting
Topic: Strange Error Message
Replies: 8
Views: 7674

Re: Strange Error Message

That line has been in the default dialog definition since v12 was introduced. Here's a 12 year old example. https://www.mjtnet.com/forum/viewtopic.php?f=9&t=6187&p=27423&hilit=HelpContext#p27423 Does the HelpContext line accomplish anything? Until now, never heard of it causing any issues. Unless I ...
by JRL
Wed Sep 21, 2022 2:19 pm
Forum: Technical / Scripting
Topic: Image Recording with Mouse Click
Replies: 7
Views: 5923

Re: Image Recording with Mouse Click

Sorry I don't have time to write this for you but I think you're on the right track. What I would do is: - Invoke the semi-transparent dialog and click on the dialog. - Capture the click location and directly after move the mouse to a safe location. - Directly after that close the semi-transparent d...
by JRL
Wed Sep 07, 2022 7:39 pm
Forum: General Discussion
Topic: Installer Interaction with Macro
Replies: 4
Views: 8667

Re: Installer Interaction with Macro

One thing not mentioned in the "Controlling Apps that Run as Admin" blog is that any program started by a program that is elevated is also elevated. What I've done in cases such as yours is to create my Macro Scheduler executable such that it requires running as admin so I don't forget that it needs...
by JRL
Wed Sep 07, 2022 7:17 pm
Forum: General Discussion
Topic: Create and show multiple dialogs
Replies: 6
Views: 9778

Re: Create and show multiple dialogs

Glad the previous code sample is working for you. For a different perspective. Because I usually use modal dialogs I use the MoveWindow> function to preset dialog positions. Don't need a loop after the dialog calls. Changed the x position for Dialog3 as I only have one monitor. Dialog>Dialog1 object...
Sign up to our newsletter for free automation tips, tricks & discounts