Search found 796 matches

by iPhilip
Today, 01:55
Forum: Ask for Help (v2)
Topic: Get Windows UWP icons Topic is solved
Replies: 8
Views: 148

Re: Get Windows UWP icons Topic is solved

a_bolog wrote:
Today, 01:49
@iPhilip What would be a good way to identify if the app is UWP?
This conditional statement should work.

Code: Select all

if WinGetClass(hWnd) = 'ApplicationFrameWindow'
   IconImg := LoadPicture(GetLargestUWPLogoPath(hWnd), 'Icon1', &IMAGE_ICON)
by iPhilip
Yesterday, 09:04
Forum: Ask for Help (v2)
Topic: Get Windows UWP icons Topic is solved
Replies: 8
Views: 148

Re: Get Windows UWP icons Topic is solved

You are welcome. :)
by iPhilip
25 Mar 2024, 01:21
Forum: Ask for Help (v2)
Topic: Get Windows UWP icons Topic is solved
Replies: 8
Views: 148

Re: Get Windows UWP icons Topic is solved

What you posted works for me. See the screenshot below.
Screenshot 2024-03-24 232018.png
Screenshot 2024-03-24 232018.png (164.71 KiB) Viewed 99 times
by iPhilip
24 Mar 2024, 23:25
Forum: Ask for Help (v2)
Topic: Get Windows UWP icons Topic is solved
Replies: 8
Views: 148

Re: Get Windows UWP icons Topic is solved

Any ideas how could one get the 256px icon from UWP apps? Settings, Calculator, Store, etc. You can't - by design. Windows 10 apps don't have their icons stored as a resource in their executable. Their icons reside in resource files that make up the package for the app. For example, Calculator has ...
by iPhilip
23 Mar 2024, 01:48
Forum: Bug Reports
Topic: Obscure GUI Picture-related bug Topic is solved
Replies: 7
Views: 2034

Re: Obscure GUI Picture-related bug Topic is solved

Thank you. I appreciate the change.
by iPhilip
15 Mar 2024, 11:03
Forum: Scripts and Functions (v1)
Topic: SystemProcessInformation
Replies: 5
Views: 2191

Re: SystemProcessInformation

:thumbup:
by iPhilip
10 Mar 2024, 12:04
Forum: Bug Reports
Topic: Obscure GUI Picture-related bug Topic is solved
Replies: 7
Views: 2034

Re: Obscure GUI Picture-related bug Topic is solved

Looks like the issue for 256x256 icons has been addressed but the scaling issue is still not resolved in AHK v2. Source code from util.cpp: for (int i = 0; i < resCount; ++i) { int this_width = resDir[i].Icon.Width; if (!this_width) // Workaround for 256x256 icons. this_width = 256; // Find the clos...
by iPhilip
27 Feb 2024, 02:24
Forum: Scripts and Functions (v1)
Topic: [Function] SplashText
Replies: 18
Views: 6092

Re: [Function] SplashText

You are welcome! :)
by iPhilip
26 Feb 2024, 14:07
Forum: Scripts and Functions (v1)
Topic: Simple Windows Drag - Easily snap, move and resize windows
Replies: 8
Views: 1631

Re: Simple Windows Drag - Easily snap, move and resize windows

Appreciate your help to fix this. Below is a fix for the GetMonitorIndexFromWindow function: GetMonitorIndexFromWindow(windowHandle) { ; Starts with 1. monitorIndex := 1 monitorInfo := Buffer(40) NumPut('UInt', 40, monitorInfo) if (monitorHandle := DllCall("MonitorFromWindow", "Ptr", windowHandle, ...
by iPhilip
26 Feb 2024, 11:51
Forum: Scripts and Functions (v1)
Topic: [Function] SplashText
Replies: 18
Views: 6092

Re: [Function] SplashText

Pareidol wrote:
26 Feb 2024, 07:17
Maybe you can pinpoint me my last error in this example.
Yes. You must use the new version (see the original post) that allows for a Timeout parameter. In your post you used the previous version of the SpashText function.
by iPhilip
25 Feb 2024, 11:45
Forum: Scripts and Functions (v2)
Topic: Simple function to calculate standard deviation
Replies: 3
Views: 216

Re: Simple function to calculate standard deviation

You are welcome! Great comparison work! :)
by iPhilip
24 Feb 2024, 14:14
Forum: Scripts and Functions (v2)
Topic: Simple function to calculate standard deviation
Replies: 3
Views: 216

Re: Simple function to calculate standard deviation

Banaanae , The version below is 10-20% faster. It uses the for-loop instead of the normal loop . StandardDeviation(arr) { mean := sd2 := 0 for val in arr mean += val mean /= arr.Length for val in arr sd2 += (val - mean) ** 2 return sqrt(sd2 / arr.Length) } If you were interested in using properties...
by iPhilip
17 Feb 2024, 10:41
Forum: Scripts and Functions (v1)
Topic: [Function] SplashText
Replies: 18
Views: 6092

Re: [Function] SplashText

Really handy. I wonder if its possible to write it all in one single line, without the need to set the variables for title, text and options separately. Yes, it's possible. With the updated function (see above ), the following lines: Text := "Hello world!`nHow are you?" Title := "My Title" Options ...
by iPhilip
19 Jan 2024, 03:22
Forum: Wish List
Topic: => throw(Error())
Replies: 5
Views: 378

Re: => throw(Error())

Thank you. Since throw was listed in the Alphabetical Function Index, I thought it was a function in v2.0 as well.
by iPhilip
19 Jan 2024, 03:12
Forum: Bug Reports
Topic: [2.1 alpha8] Question re Array.Pop() and unset?
Replies: 4
Views: 453

Re: [2.1 alpha8] Question re Array.Pop() and unset?

It seems that the Length property ignores any "trailing" unset elements. I will take responsibility for that statement. Trailing commas are ignored at the syntax level. However, it is possible for an array to contain trailing unset elements: by explicitly setting Length, by using unset , or perhaps...
by iPhilip
18 Jan 2024, 02:36
Forum: Wish List
Topic: => throw(Error())
Replies: 5
Views: 378

Re: => throw(Error())

Thank you. I wasn't aware of that. Much appreciated.
by iPhilip
17 Jan 2024, 22:26
Forum: Wish List
Topic: => throw(Error())
Replies: 5
Views: 378

=> throw(Error())

It seems as if throw is not allowed after the fat arrow character => . It generates the following load error: The following reserved word must not be used as a variable name: "throw" Assuming there are no breaking changes, it would be convenient if it was. Below is a simple use case for it: class fo...
by iPhilip
08 Jan 2024, 20:38
Forum: Ask for Help (v2)
Topic: Can't Overlap GUI Images Topic is solved
Replies: 1
Views: 178

Re: Can't Overlap GUI Images Topic is solved

It can work if you use positioning coordinates, i.e.

Code: Select all

MyGui.Add("Picture", "x324 y324 w641 h324", A_ScriptDir "\image.png")  ; <--- adjust coordinates as necessary
MenuBG := MyGui.Add("ActiveX", "x0 y0 w1920 h1080", A_ScriptDir "\menubg.gif")

Go to advanced search