Search found 495 matches

by Phil Pendlebury
Sat Jul 09, 2022 8:03 pm
Forum: Technical / Scripting
Topic: setting the active page on a v12 Dialog PageControl object
Replies: 5
Views: 6740

Re: setting the active page on a v12 Dialog PageControl object

Interestingly:

Code: Select all

Let>Dialog1.PageControl1=4
ResetDialogAction>Dialog1
Still works with V14

Whereas any amount of:

Code: Select all

SetDialogProperty>Dialog1,PageControl1,ActivePage,Name
etc. Does not seem to work at all.
by Phil Pendlebury
Sat Jul 09, 2022 1:32 pm
Forum: Technical / Scripting
Topic: GetWindowHandle Timeout?
Replies: 10
Views: 6018

GetWindowHandle Timeout?

Well, the forum is quiet at the moment so why not keep posting: In my code I have a number of "GetWindowHandle>" commands and if one fails the next one takes over etc. However, because there is a number of different windows to search for I would like to set the time spent searching much lower than t...
by Phil Pendlebury
Fri Jul 08, 2022 9:50 pm
Forum: Technical / Scripting
Topic: Window Handles and Finding Windows...
Replies: 2
Views: 3086

Re: Window Handles and Finding Windows...

Hi hagchr, Thanks ever so much for taking the time to check this and for spotting that. I had used one of the online Regcheckers to build the Regex (I am generally pretty good with Regex but usually use the online tools in order to check my work, like this one): https://regex101.com/ Of course I had...
by Phil Pendlebury
Fri Jul 08, 2022 7:00 pm
Forum: Technical / Scripting
Topic: Window Handles and Finding Windows...
Replies: 2
Views: 3086

Window Handles and Finding Windows...

An example: Let>hWndParent=0 Let>cubpat=Cubase .+ Let>nuepat=Nuendo .+ Let>WIN_REGEX=1 GetWindowHandle>%cubpat%,hWndParent The actual code will first look for window that starts with Cubase and if it is not found it will look for a window that starts with Nuendo . At least that is what is supposed t...
by Phil Pendlebury
Fri Jul 08, 2022 5:42 pm
Forum: Technical / Scripting
Topic: Always On Top Trick - Hints Hidden
Replies: 2
Views: 3170

Re: Always On Top Trick - Hints Hidden

Thanks JRL, great idea.
by Phil Pendlebury
Fri Jul 08, 2022 7:15 am
Forum: Technical / Scripting
Topic: Always On Top Trick - Hints Hidden
Replies: 2
Views: 3170

Always On Top Trick - Hints Hidden

Hi guys, Using JRL's great trick to keep a compiled dialog always on top, (and using panels as buttons), I am finding that Hints are hidden behind the dialog. Has anyone come across this previously? Show>Dialog1 Label>Loop Wait>0.01 //The next four lines only needed for compiled scripts Let>WIN_USEH...
by Phil Pendlebury
Thu Jul 07, 2022 7:03 pm
Forum: Technical / Scripting
Topic: Any way to get which item has been clicked in a dialog?
Replies: 8
Views: 5064

Re: Any way to get which item has been clicked in a dialog?

@hagchr This is fascinating and very cool thanks for the insights. These are all things that I have never really considered doing with Dialogs before. I wonder if this will be my key to let the user name the page1 page2 etc in my ini file. (if nothing else). As we are basically talking about reading...
by Phil Pendlebury
Thu Jul 07, 2022 6:24 pm
Forum: Technical / Scripting
Topic: Any way to get which item has been clicked in a dialog?
Replies: 8
Views: 5064

Re: Any way to get which item has been clicked in a dialog?

Thank you again JRL. These thing that I have discovered in the past but as you can see, I am rusty these days. Your message arrived in the nick of time as I was just about to move to excel in order to try and automate typing of 128 lines. I just spent the last 2 hours adding 64 new panels). https://...
by Phil Pendlebury
Thu Jul 07, 2022 11:38 am
Forum: Technical / Scripting
Topic: Stopping a compiled script from running more than once
Replies: 2
Views: 3079

Re: Stopping a compiled script from running more than once

JRL to the rescue once again... Will search and find. Thank you. :)
by Phil Pendlebury
Thu Jul 07, 2022 5:16 am
Forum: Technical / Scripting
Topic: Stopping a compiled script from running more than once
Replies: 2
Views: 3079

Stopping a compiled script from running more than once

Compile script which contains on line 1: ProcessExists>NAME OF COMPILED SCRIPT.exe,res The idea was to check if the exe was running and if it was, do not allow it run again. The problem is of course logical failure, in that in order to check if it exists, it already exists. So the app will never sta...
by Phil Pendlebury
Thu Jul 07, 2022 5:03 am
Forum: Technical / Scripting
Topic: Any way to get which item has been clicked in a dialog?
Replies: 8
Views: 5064

Re: Any way to get which item has been clicked in a dialog?

Hi guys, yes: Let>d=0 While>d<24 Add>d,1 AddDialogHandler>Dialog1,Panel%d%,OnClick,DOKEY(%d%) EndWhile Works for that area. The problem is there are so many other areas that have to be declared manually. For example: In my ini file I have feilds: key1txt=Mix 1 key1mod=CTRL+ALT key1key=114 key1col=Gr...
by Phil Pendlebury
Thu Jul 07, 2022 4:57 am
Forum: Technical / Scripting
Topic: Keeping a Dialog Always On Top - Compiled Script
Replies: 2
Views: 3100

Re: Keeping a Dialog Always On Top - Compiled Script

Thanks JRL. Funny coincidence is that this is one of the rare cases where I did not use the loop method for my dialog. :lol: Still having issues with focus though. It's a conundrum for sure. I am using ObjectSendKeys (as the main dialog is AOT but the modifier keys just do not work. So I am sending ...
by Phil Pendlebury
Sun Jul 03, 2022 3:35 pm
Forum: Technical / Scripting
Topic: Any way to get which item has been clicked in a dialog?
Replies: 8
Views: 5064

Re: Any way to get which item has been clicked in a dialog?

Thanks that looks intriguing. I will have play about and post back. :-)
by Phil Pendlebury
Sun Jul 03, 2022 8:37 am
Forum: Technical / Scripting
Topic: ObjectSendKeys Ideas
Replies: 3
Views: 3369

Re: ObjectSendKeys Ideas

Hi thanks, Yes I already have a list compiled but thanks for that anyway, As mentioned originally, I really don't want to use that method, as it has to be called too often. Your suggestion for improvement would be great though. :D Really this question was more about the ObjectSendKeys and why it see...
by Phil Pendlebury
Sat Jul 02, 2022 7:59 am
Forum: Technical / Scripting
Topic: Keeping a Dialog Always On Top - Compiled Script
Replies: 2
Views: 3100

Keeping a Dialog Always On Top - Compiled Script

I have the line:

Code: Select all

FormStyle = fsStayOnTop
In my dialog and it works fine when testing the script.

But when the script is compiled it seems that the dialog gets knocked out of focus.

Has anyone any thoughts on this one?
Sign up to our newsletter for free automation tips, tricks & discounts