Search found 475 matches

by Phil Pendlebury
Tue Aug 16, 2022 4:54 pm
Forum: Technical / Scripting
Topic: Any MSFS2020 Users here?
Replies: 1
Views: 1677

Any MSFS2020 Users here?

I am only asking because I am trying to so simply send a key to this application and whatever I do fails. I have tried as admin and not as admin (actually admin should not be required, but tried it anyway). Just trying to send a single key PRESS DOWN (and loop it every 5 seconds) To test this I also...
by Phil Pendlebury
Wed Jul 20, 2022 5:26 am
Forum: Technical / Scripting
Topic: Highlight Conundrum
Replies: 2
Views: 1766

Re: Highlight Conundrum

Try this and let us know. Create this array somewhere before the dialog opens ArrayDim>buttcol,112 Replace your subroutines with these SRT>OHighLight Let>hbutt=%OHighLight_Var_1% Let>value=buttcol_%hbutt% If>%value%>/ Else GetDialogProperty>Dialog1,Panel%hbutt%,Color,vButtcol Let>buttcol_%hbutt%=vB...
by Phil Pendlebury
Tue Jul 19, 2022 12:41 pm
Forum: Technical / Scripting
Topic: Highlight Conundrum
Replies: 2
Views: 1766

Highlight Conundrum

Hi all, here is another puzzle I have been working on. Using panels as buttons Using OnMouseEnter/Leave to trigger the subroutines as below with variable per button (there are 112 buttons) Using "highlight" subroutine to highlight them a specific colour (which also reads their current colour) Using ...
by Phil Pendlebury
Tue Jul 12, 2022 1:16 pm
Forum: Technical / Scripting
Topic: GetWindowHandle Timeout?
Replies: 10
Views: 2950

Re: GetWindowHandle Timeout?

Very neat. I will do some more tests and post back again. Thank you. I am sure this will be helpful to others too. :D
by Phil Pendlebury
Tue Jul 12, 2022 11:23 am
Forum: Technical / Scripting
Topic: GetWindowHandle Timeout?
Replies: 10
Views: 2950

Re: GetWindowHandle Timeout?

Hi hagchr, Thanks, it is super interesting but still confusing eh. Yes now that window I am trying to find does indeed appear in that list. (res). I was trying to think of away to get names from classes and your script seems to have solved it. It is odd that getwindowhandle finds the window but getw...
by Phil Pendlebury
Tue Jul 12, 2022 7:20 am
Forum: Technical / Scripting
Topic: GetWindowHandle Timeout?
Replies: 10
Views: 2950

Re: GetWindowHandle Timeout?

OK so after a brief search of the forum for how it works, I borrowed some code and adjusted it slightly to make a rough code that demos how this works: It will show a counter in message form every .5 seconds. Meanwhile trying to find the handle of a (notepad++) window named "new 4 (any other text)" ...
by Phil Pendlebury
Tue Jul 12, 2022 4:49 am
Forum: Technical / Scripting
Topic: setting the active page on a v12 Dialog PageControl object
Replies: 5
Views: 4911

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

Hi JRL,

That was the key:

Code: Select all

TabIndex
I was using ActivePage and some other things but did not find any documentation about TabIndex. I did search the forums.

Thank you, as always, for enlightening me. :-)
by Phil Pendlebury
Sun Jul 10, 2022 10:07 pm
Forum: Technical / Scripting
Topic: GetWindowHandle Timeout?
Replies: 10
Views: 2950

Re: GetWindowHandle Timeout?

Thank you sir. I will look up custom events. I have a vague memory of using this method sometime many years ago.

Thanks again for taking the time to read through my story.

I’ll post back…
by Phil Pendlebury
Sun Jul 10, 2022 11:56 am
Forum: Technical / Scripting
Topic: GetWindowHandle Timeout?
Replies: 10
Views: 2950

Re: GetWindowHandle Timeout?

I am sorry for me previously brief answer. I was trying to type on phone. I am using Regex to search for the Windows. (See here): https://www.mjtnet.com/forum/viewtopic.php?f=2&t=11182 There a re few issues: There is only ever 1 window with the relevant name open and it does not appear in get Window...
by Phil Pendlebury
Sun Jul 10, 2022 6:50 am
Forum: Technical / Scripting
Topic: GetWindowHandle Timeout?
Replies: 10
Views: 2950

Re: GetWindowHandle Timeout?

I am using regex already. :-)

This is not the point tbh.
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: 4911

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: 2950

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: 1764

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: 1764

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: 1742

Re: Always On Top Trick - Hints Hidden

Thanks JRL, great idea.
Sign up to our newsletter for free automation tips, tricks & discounts