Search found 495 matches

by Phil Pendlebury
Sat Jul 02, 2022 7:57 am
Forum: Technical / Scripting
Topic: ObjectSendKeys Ideas
Replies: 3
Views: 3429

ObjectSendKeys Ideas

I have just discovered the ObjectSendKeys command, it is great! One issue I always had was setting focus to various things in order to send key to them. However I have had to do this kind of thing in order to get it to work. Example from ini file /////////////////////////////////////////////////////...
by Phil Pendlebury
Sat Jul 02, 2022 7:46 am
Forum: Technical / Scripting
Topic: Any way to get which item has been clicked in a dialog?
Replies: 8
Views: 5135

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

Hi all, Always some new challenges eh... I have a dialog that contains 24 small panels that behave as buttons. (Thanks JRL, indeed panels make great colourful buttons.) object Panel1: TPanel Left = 8 Top = 8 Width = 65 Height = 25 Caption = '1' ParentBackground = False TabOrder = 0 TabStop = True en...
by Phil Pendlebury
Sat Jun 25, 2022 9:16 am
Forum: General Discussion
Topic: Set color for Button
Replies: 7
Views: 18681

Re: Set color for Button

JRL to the rescue again!
by Phil Pendlebury
Fri Jun 24, 2022 2:50 pm
Forum: Technical / Scripting
Topic: Set BG Colour of Button?
Replies: 1
Views: 2693

Set BG Colour of Button?

Hi all,

Is there anyway to simply set the background colour of a button, without using a graphic?

I have tried various permutations of:

Code: Select all

SetDilaogProperty>DIALOG,BUTTON1,COLOR,RGB
But the button does not seem to want to take on any colouring.
by Phil Pendlebury
Fri Jun 17, 2022 4:55 am
Forum: Technical / Scripting
Topic: Virus Total False Positives
Replies: 8
Views: 5354

Re: Virus Total False Positives

Encrypting was no use for me in this case as it is a specific distribution site that insists on the files being cleared by Virus Total. (Which I suppose is fair enough). If you do this a lot, it is worth taking the time to contact the AV vendors. I was frankly surprised about how efficient and helpf...
by Phil Pendlebury
Wed Jun 01, 2022 5:30 am
Forum: Technical / Scripting
Topic: Virus Total False Positives
Replies: 8
Views: 5354

Re: Virus Total False Positives

Well good news is that after a very laborious process of submitting my installer to all the vendors that were producing false positives, I finally got the all clear. I am still not sure if I will have to resubmit every time I update the application but we'll see. https://flightsim.to/file/31716/admi...
by Phil Pendlebury
Mon May 23, 2022 10:31 am
Forum: Technical / Scripting
Topic: Virus Total False Positives
Replies: 8
Views: 5354

Re: Virus Total False Positives

I wish I could afford a certificate and of course the time to figure out how it works... :-)
by Phil Pendlebury
Mon May 23, 2022 10:30 am
Forum: Technical / Scripting
Topic: Reading from a Google Sheet
Replies: 3
Views: 3258

Re: Reading from a Google Sheet

Thanks Dorian, yes I found that pasting a text file to Githib and reading it RAW works really well.
by Phil Pendlebury
Mon May 23, 2022 9:47 am
Forum: Technical / Scripting
Topic: Virus Total False Positives
Replies: 8
Views: 5354

Re: Virus Total False Positives

Thanks Dorian, I had read all that after searching the forum. So not entirely. I fully understand all of it of course but take my example case: Free Application for Gamers. So buying a certificate is out of the q. Gaming site requires verification by a tool that uses hundreds of Virus Sigs form vari...
by Phil Pendlebury
Sat May 21, 2022 8:03 am
Forum: Technical / Scripting
Topic: Dealing with Windows Scaling
Replies: 4
Views: 2063

Re: Dealing with Windows Scaling

And for graphics we need to do this, after making different graphics for each resolution and naming them for example 100logo.jpg 125logo.jpg etc.:

Code: Select all

SetDialogProperty>Dialog1,MSImage1,LoadImage,%SCRIPT_DIR%/%logos%/%ResPerc%logo.jpg
by Phil Pendlebury
Sat May 21, 2022 7:50 am
Forum: Technical / Scripting
Topic: Dealing with Windows Scaling
Replies: 4
Views: 2063

Re: Dealing with Windows Scaling

So for the memo field we only need to adjust height:

Code: Select all

GetDialogProperty>Dialog1,MSMemo1,Height,memoheight
Let>xboxdimx=memoheight/100
Let>xboxdimx=xboxdimx*ResPerc
SetDialogProperty>Dialog1,MSMemo1,Height,xboxdimx
For graphics I think we need different res graphics for all percentages.
by Phil Pendlebury
Sat May 21, 2022 7:50 am
Forum: Technical / Scripting
Topic: Dealing with Windows Scaling
Replies: 4
Views: 2063

Re: Dealing with Windows Scaling

So for the memo field we only need to adjust height:

Code: Select all

GetDialogProperty>Dialog1,MSMemo1,Height,memoheight
Let>xboxdimx=memoheight/100
Let>xboxdimx=xboxdimx*ResPerc
SetDialogProperty>Dialog1,MSMemo1,Height,xboxdimx
For graphics I think we need different res graphics for all percentages.
by Phil Pendlebury
Sat May 21, 2022 7:32 am
Forum: Technical / Scripting
Topic: Dealing with Windows Scaling
Replies: 4
Views: 2063

Re: Dealing with Windows Scaling

Ok I found a post about scaling and added some info: // 96 – Smaller 100% // 120 – Medium 125% // 144 – Larger 150% // 192 – Extra Large 200% // 240 – Custom 250% // 288 – Custom 300% // 384 – Custom 400% // 480 – Custom 500% LibFunc>User32,GetDC,hDC,0 LibFunc>GDI32,GetDeviceCaps,Result,hDC,88 // Te...
by Phil Pendlebury
Sat May 21, 2022 7:31 am
Forum: Scripts and Tips
Topic: Get scale/zoom percentage setting.
Replies: 2
Views: 14367

Re: Get scale/zoom percentage setting.

Additionally if we want to find the actual percentage scale factor and then do some stuff with it.: // 96 – Smaller 100% // 120 – Medium 125% // 144 – Larger 150% // 192 – Extra Large 200% // 240 – Custom 250% // 288 – Custom 300% // 384 – Custom 400% // 480 – Custom 500% LibFunc>User32,GetDC,hDC,0 ...
Sign up to our newsletter for free automation tips, tricks & discounts