Search found 51 matches

by neogna2
29 Dec 2019, 11:24
Forum: Ask For Help
Topic: Lag/freeze problem in DllCall to extract many icons for display in ListView
Replies: 13
Views: 823

Re: Lag/freeze problem in DllCall to extract many icons for display in ListView

I found that programs including task manager that extract icons will lag or freeze when it loads, close task manager if you have it open, load it and you will see. programs like process explorer pre load icons before they show you the gui, try running it, you will see before the gui loads takes som...
by neogna2
29 Dec 2019, 05:44
Forum: Ask For Help
Topic: Lag/freeze problem in DllCall to extract many icons for display in ListView
Replies: 13
Views: 823

Re: Lag/freeze problem in DllCall to extract many icons for display in ListView

Still trying to solve this. I searched for mentions of similar problems with ExtractAssociatedIcon in other programming languages but found no similar case. I next tested if doing something else with the files before the icon extraction would help. Tried both of these before the icon extraction. Fil...
by neogna2
25 Dec 2019, 04:40
Forum: Ask For Help
Topic: Desktop (ahk_class Progman ahk_exe explorer.exe) not seen as active by AutoHotkey after icon hide
Replies: 0
Views: 114

Desktop (ahk_class Progman ahk_exe explorer.exe) not seen as active by AutoHotkey after icon hide

If we in Win10 hide the Desktop icons and then click on the Desktop (the void where the Desktop icons were) then AutoHotkey sometimes does not detect ahk_class Progman ahk_exe explorer.exe as the active window. As a result hotkeys that use #IfWinActive ahk_class Progman do nothing after that click. ...
by neogna2
23 Dec 2019, 15:47
Forum: Scripts and Functions
Topic: [Class] LV_Colors - 1.1.04.01 (2016-05-03)
Replies: 134
Views: 36218

Re: [Class] LV_Colors - 1.1.04.01 (2016-05-03)

I found a thread from the old forum with code to change the font weight (and maybe also other font characteristics such as italic, underline, strikethrough) of individual rows in a GUI ListView. https://autohotkey.com/board/topic/17007-change-font-weight-in-listview-row-using-customdraw/ It would be...
by neogna2
23 Dec 2019, 11:15
Forum: Ask For Help
Topic: Lag/freeze problem in DllCall to extract many icons for display in ListView
Replies: 13
Views: 823

Re: Lag/freeze problem in DllCall to extract many icons for display in ListView

I have done a bunch of further tests using the other DllCall extraction methods. The same lag problem occurs with all of them. :( To test the issue with these other methods replace this line hIcon := DllCall("Shell32\ExtractAssociatedIcon", "Ptr", 0, "Str", A_LoopFilePath, "ShortP", iIndex := 0, "Pt...
by neogna2
17 Dec 2019, 07:01
Forum: Ask For Help
Topic: Lag/freeze problem in DllCall to extract many icons for display in ListView
Replies: 13
Views: 823

Re: Lag/freeze problem in DllCall to extract many icons for display in ListView

I'm using Ahk apps as much as I can, but for this task I still use third party app (even if a bit old). Maybe it will give you some comparing data. Thanks, I'll have a look. Do you use that tool also when you want to quickly add icons to ListViews inside an AutoHotkey script? That's my use case here.
by neogna2
17 Dec 2019, 06:50
Forum: Ask For Help
Topic: Lag/freeze problem in DllCall to extract many icons for display in ListView
Replies: 13
Views: 823

Re: Lag/freeze problem in DllCall to extract many icons for display in ListView

Here are test scripts for others to reproduce the issue. speedtest_hicon_dllcall.ahk #NoEnv SetBatchLines, -1 ; speedtest_hicon_dllcall.ahk ; testscript to reproduce lag/freeze in DllCall icon extraction on first extraction (per file) after a PC reboot ; How to use ;- First create 20 compiled dummy ...
by neogna2
16 Dec 2019, 18:11
Forum: Ask For Help
Topic: Lag/freeze problem in DllCall to extract many icons for display in ListView
Replies: 13
Views: 823

Re: Lag/freeze problem in DllCall to extract many icons for display in ListView

I don't think the problem is the real-time protection. Some other factor could very well be the root cause of the problem, but excluding the test folder in real-time protection does make the issue go away here. I've verified that multiple times on two PCs. But perhaps there is some particular issue...
by neogna2
16 Dec 2019, 08:21
Forum: Ask For Help
Topic: Lag/freeze problem in DllCall to extract many icons for display in ListView
Replies: 13
Views: 823

Re: Lag/freeze problem in DllCall to extract many icons for display in ListView

Using ANSI-version of winapi does not make sense with unicode AHK. Try this: Thanks. I really need to sit down and learn how to use DllCall properly :oops: The corrected unicode DllCall code you posted does not solve the problem however. Some files still lag/freeze during the call. After more tests...
by neogna2
15 Dec 2019, 13:32
Forum: Ask For Help
Topic: Lag/freeze problem in DllCall to extract many icons for display in ListView
Replies: 13
Views: 823

Lag/freeze problem in DllCall to extract many icons for display in ListView

I run into lag/freeze issues when extracting many icons for use in a GUI ListView. For example the problem is very noticeable on my PC in a folder with ~300 files, many of which are .exe files. This sample code isolates the problem on my PC. For some files the ExtractAssociatedIconA step is very fas...
by neogna2
15 Dec 2019, 13:09
Forum: Ask For Help
Topic: Get filepath to file(s) used by a process, without handle.exe Topic is solved
Replies: 7
Views: 477

Re: Get filepath to file(s) used by a process, without handle.exe Topic is solved

To add some features I inject into it AutoHotkey.dll with my code. Such inject causes GetFinalPathNameByHandle hanging. However, handle.exe works without any troubles. Ok, that's beyond my troubleshooting ability. The function has worked fine in my VLC script so far. If the function only runs into ...
by neogna2
13 Dec 2019, 08:05
Forum: Ask For Help
Topic: Get filepath to file(s) used by a process, without handle.exe Topic is solved
Replies: 7
Views: 477

Re: Get filepath to file(s) used by a process, without handle.exe Topic is solved

Thanks for line comments. Unfortunately I noticed that the function GetFinalPathNameByHandle() hangs in some cases, that makes the script unresponsive. If I have time, I'll think about a workaround. Describe a case when it hangs and I can try to help troubleshoot it. Would adding try prevent the han...
by neogna2
12 Dec 2019, 18:08
Forum: Ask For Help
Topic: Get filepath to file(s) used by a process, without handle.exe Topic is solved
Replies: 7
Views: 477

Re: Get filepath to file(s) used by a process, without handle.exe Topic is solved

Thank you very much teadrinker! I added code to get the single filepath to the video currently playing in VLC. Your function works reliably in my tests. In cases where more than one VLC window is open we can just add a step to get the PID from the VLC window that is active, or some other such condit...
by neogna2
11 Dec 2019, 12:02
Forum: Ask For Help
Topic: Get filepath to file(s) used by a process, without handle.exe Topic is solved
Replies: 7
Views: 477

Get filepath to file(s) used by a process, without handle.exe Topic is solved

The Microsoft Sysinternals tool Handle can show which files are in use by a process. For example we can call it from a script to get the files used by the VLC video player like this RunWait %comspec% /c ""C:\dir\handle.exe" -p "vlc.exe" > C:\dir\text.txt" We can also narrow the search with a filefra...
by neogna2
01 Dec 2019, 12:26
Forum: Suggestions on documentation improvements
Topic: Suggestions on documentation improvements
Replies: 688
Views: 172589

Re: Suggestions on documentation improvements

In general I wish that defaults where made more visible in the docs in a consistent way and when possible placed near the top, close to the yellow syntax boxes. E.g. a standardized phrase or color for marking what the default is and/or for text that describe defaults. Some of the docs pages use "(de...
by neogna2
30 Nov 2019, 10:22
Forum: Suggestions on documentation improvements
Topic: Suggestions on documentation improvements
Replies: 688
Views: 172589

Re: Suggestions on documentation improvements

The first request seems reasonable. I will add such a button. However, I think that this button is enough because it will offer several possibilities to retrieve the link, e.g. by right-clicking the button, selecting properties and copying the link there (which of course is not as convenient as wit...
by neogna2
28 Nov 2019, 14:01
Forum: Suggestions on documentation improvements
Topic: Suggestions on documentation improvements
Replies: 688
Views: 172589

Re: Suggestions on documentation improvements

Two convenience requests for AutoHotkey.chm (the AutoHotkey Help file). 1. Toolbar button that gets the URL to the web version of the current help file page and opens it in the default browser. 2. Toolbar button that copies that URL to clipboard. The script below copies the URL to clipboard. But a T...
by neogna2
14 Nov 2019, 06:26
Forum: Scripts and Functions
Topic: Eject() : For Removable storage devices (Updated: 03-Oct-2019)
Replies: 53
Views: 19250

Re: Eject() : For Removable storage devices (Updated: 03-Oct-2019)

SKAN, is this function the same as what is done by following Microsoft's procedure to safely remove hardware in Windows 10? Look for the Safely Remove Hardware icon on the taskbar. If you don't see it, select Show hidden icons . Press and hold (or right-click) the icon and select the hardware you wa...
by neogna2
29 Jul 2019, 03:46
Forum: Scripts and Functions
Topic: [CLASS] LiveThumb - DWM thumbnail implementation
Replies: 5
Views: 671

Re: [CLASS] LiveThumb - DWM thumbnail implementation

This is great! Is it possible to make a LiveThumb out of one whole screen (include all the windows visible on that screen) or out of one XYWH rectangle area of a screen? To display on another screen also connected to the PC.
by neogna2
13 Apr 2019, 07:11
Forum: Tutorials
Topic: jeeswg's Acc tutorial (Microsoft Active Accessibility) (MSAA)
Replies: 27
Views: 12620

Re: jeeswg's Acc tutorial (Microsoft Active Accessibility) (MSAA)

Thank you, I really appreciate that you're so helpful and post all these great resources in the forum. I had missed that Acc_ObjectFromPoint optionally accepted an X Y screen position as parameters. For example x := 200, y := 150 oAcc := Acc_ObjectFromPoint(vChildID, x, y) That approach works well i...

Go to advanced search