Search found 3337 matches

by JRL
Mon May 04, 2020 4:18 pm
Forum: Technical / Scripting
Topic: Designing Radio Buttons
Replies: 3
Views: 1124

Re: Designing Radio Buttons

Not sure I have your logic perfect but here is an example Dialog>Dialog1 object Dialog1: TForm Left = 613 Top = 189 HelpContext = 5000 BorderIcons = [biSystemMenu] Caption = 'CustomDialog' ClientHeight = 185 ClientWidth = 476 Color = clBtnFace Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText...
by JRL
Fri May 01, 2020 7:24 pm
Forum: Technical / Scripting
Topic: SMTPSendMail Help Error
Replies: 1
Views: 843

SMTPSendMail Help Error

Web Manual says:
"If TLS is needed you can set how it should be used by setting SSL_USETLS as follows:"

Should say:
"If TLS is needed you can set how it should be used by setting SMTP_USETLS as follows:"
by JRL
Mon Apr 06, 2020 1:45 pm
Forum: Technical / Scripting
Topic: Max length integer 19 positions
Replies: 2
Views: 905

Re: Max length integer 19 positions

Not really a bug. More a consequence of not needing to declare variables and their type. This topic has been discussed since the early days of Macro Scheduler time. Numbers are not supposed to be quoted in a complex expression. The long ago concluded solution is/was to append some text onto the numb...
by JRL
Wed Mar 25, 2020 6:45 pm
Forum: Beginners
Topic: Press CTRL and Home keys
Replies: 2
Views: 1529

Re: Press CTRL and Home keys

This works for me.

Code: Select all

SetFocus>Excel*

Press ctrl
Press Home
Release ctrl
by JRL
Mon Mar 16, 2020 10:25 pm
Forum: The Water Cooler
Topic: Working from home?
Replies: 7
Views: 10915

Re: Working from home?

We are making the option available for a few. We are a manufacturing facility and the machines are not mobile. If the time comes that an employee shows any symptoms, the responsible thing for that employee is to stay home. Shop floor employees will have no option to work from home. Certain "key" emp...
by JRL
Tue Feb 18, 2020 2:11 pm
Forum: Technical / Scripting
Topic: Radio button question
Replies: 3
Views: 1106

Re: Radio button question

In Dialog Designer, right clicking on an object produces a menu that has "List Event Names" as the fourth item. Clicking that produces a list of the events associated with this particular object. Left click to highlight an item in the list then right click the highlighted item (yes you must do both ...
by JRL
Mon Feb 17, 2020 1:59 pm
Forum: Technical / Scripting
Topic: Radio button question
Replies: 3
Views: 1106

Re: Radio button question

Not sure how this accomplishes anything but here's an example Dialog>Dialog1 object Dialog1: TForm Left = 557 Top = 96 HelpContext = 5000 BorderIcons = [biSystemMenu] Caption = 'CustomDialog' ClientHeight = 211 ClientWidth = 476 Color = clBtnFace Font.Charset = DEFAULT_CHARSET Font.Color = clWindowT...
by JRL
Mon Feb 10, 2020 10:01 pm
Forum: Beginners
Topic: Set return value of dialog1 to dialoge2
Replies: 2
Views: 1109

Re: Set return value of dialog1 to dialoge2

First to set code to display properly in the forum, highlight the code then press the </> button located just above the text box. With the code: - Dialogs created using Macro Scheduler version 12 and beyond no longer need ResetDialogAction> - You have created a variable named "Text". "Text" is the n...
by JRL
Mon Feb 10, 2020 9:04 pm
Forum: Technical / Scripting
Topic: GetWindowSize returns size of combobox
Replies: 4
Views: 1104

Re: GetWindowSize returns size of combobox

I can't explain why what you've posted does what it does. It's bizarre and seems to me to be a bug. We'll have to wait and see if Marcus weighs in. I did some experimenting and found that if you change the text of the combobox prior to getting the window size, you get the size of the selected window...
by JRL
Thu Feb 06, 2020 5:31 am
Forum: Enhancement Suggestions
Topic: [documentation] Windows Key Event
Replies: 2
Views: 2654

Re: [documentation] Windows Key Event

As is the case with all 5 modifier keys. Using Key_down,VK16 for a shift key press detection does not work if the modifier parameter is anything but 1 which is the shift key modifier parameter. Etc. /* 91,92,16,17,18 lwin,rwin,shift,ctrl,alt */ OnEvent>key_down,VK16,1,quit OnEvent>key_down,VK17,2,qu...
by JRL
Tue Feb 04, 2020 2:21 pm
Forum: Technical / Scripting
Topic: Determining if a Macro is already running
Replies: 10
Views: 1868

Re: Determining if a Macro is already running

I like to use a dialog. If a dialog block is encountered the dialog becomes an existing window that can be detected. Put this code at the start of your script, if the window specified in the code already exists, a consecutive start of your executable will stop. If the running executable stops, the p...
by JRL
Tue Feb 04, 2020 4:30 am
Forum: Beginners
Topic: If statement help
Replies: 2
Views: 1204

Re: If statement help

You have a space between the second "If" and its affiliated ">". Basically, making the line a remark that is ignored.
by JRL
Mon Feb 03, 2020 6:07 pm
Forum: Beginners
Topic: Kernel32 readprocessmemory
Replies: 1
Views: 978

Re: Kernel32 readprocessmemory

AFAIK, if the windows API wants you to set a "pointer", the function will not work within Macro Scheduler. I have wondered whether "memory pointer needed" APIs might work using Python in Macro Scheduler but I have not yet tried. Read Marcus' comments in THIS THREAD. Maybe something like THIS will help
by JRL
Mon Feb 03, 2020 5:31 pm
Forum: Technical / Scripting
Topic: How do I create a button that doesn't close a dialog?
Replies: 5
Views: 1351

Re: How do I create a button that doesn't close a dialog?

Fixed the dialog. Sorry for any confusion. You are correct that the modalresult property must be set to zero. Its been so long since I've used the pre-version 12 dialog format that I'd forgotten about that. It is important to note that you will never see the modal result until the dialog closes. If ...
cron
Sign up to our newsletter for free automation tips, tricks & discounts