Search found 801 matches

by iPhilip
47 minutes ago
Forum: Ask for Help (v2)
Topic: Get Windows UWP icons Topic is solved
Replies: 17
Views: 201

Re: Get Windows UWP icons Topic is solved

Thank you. There are a couple of issues you might want to look into: 1. The "Get Icon" logic doesn't seem right to me. In my opinion, this code ; Get Icon if (LogoPath := GetLargestUWPLogoPath(hwnd)) ; if UWP IconImg := LoadPicture(LogoPath, 'Icon1', &IMAGE_ICON) ; Get UWP Icon else ; Get System Ico...
by iPhilip
Today, 13:10
Forum: Ask for Help (v2)
Topic: Get Windows UWP icons Topic is solved
Replies: 17
Views: 201

Re: Get Windows UWP icons Topic is solved

Can you post your latest code?
by iPhilip
Today, 12:11
Forum: Ask for Help (v2)
Topic: Get Windows UWP icons Topic is solved
Replies: 17
Views: 201

Re: Get Windows UWP icons Topic is solved

See my P.S. above.

Changing

Code: Select all

if (Path := GetLargestUWPLogoPath(hwnd)) ; if UWP
   IconImg := LoadPicture(Path, 'Icon1', &IMAGE_ICON) ; Get UWP Icon
to

Code: Select all

if (LogoPath := GetLargestUWPLogoPath(hwnd)) ; if UWP
   IconImg := LoadPicture(LogoPath, 'Icon1', &IMAGE_ICON) ; Get UWP Icon
should fix it.
by iPhilip
Today, 11:32
Forum: Ask for Help (v2)
Topic: Get Windows UWP icons Topic is solved
Replies: 17
Views: 201

Re: Get Windows UWP icons Topic is solved

Hmm it doesn't work it says it cant read the file. Error: (2) The system cannot find the file specified. 056: { 057: SplitPath(Path, , &Dir) ▶ 058: If !RegExMatch(FileRead(Dir '\AppxManifest.xml', 'UTF-8'), '<Logo>(.*)</Logo>', &Match) 059: Throw Error('Unable to read logo information from file.', ...
by iPhilip
Today, 10:46
Forum: Ask for Help (v2)
Topic: Get Windows UWP icons Topic is solved
Replies: 17
Views: 201

Re: Get Windows UWP icons Topic is solved

Thank you for reporting the additional testing. I updated the above post to include a AppHasPackage function to check if the window is UWP.

Let me know if this works for you.
by iPhilip
Today, 01:55
Forum: Ask for Help (v2)
Topic: Get Windows UWP icons Topic is solved
Replies: 17
Views: 201

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: 17
Views: 201

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: 17
Views: 201

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 152 times
by iPhilip
24 Mar 2024, 23:25
Forum: Ask for Help (v2)
Topic: Get Windows UWP icons Topic is solved
Replies: 17
Views: 201

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

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

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.

Go to advanced search