Search found 431 matches

by iPhilip
20 Jan 2020, 14:43
Forum: Wish List
Topic: FileRecycle and NukeOnDelete
Replies: 2
Views: 858

Re: FileRecycle and NukeOnDelete

Hi lexikos , This function may permanently delete the file if it is too large to be recycled; as of [v1.0.96], a warning should be shown before this occurs. That's what FOF_WANTNUKEWARNING does. Thank you for the clarification. The Recycle Bin is (usually?) also disabled on removable drives, and in ...
by iPhilip
27 Dec 2019, 21:02
Forum: Ask For Help
Topic: Can anyone help me figure out why my Listview isn't limiting the # of lines?
Replies: 4
Views: 173

Re: Can anyone help me figure out why my Listview isn't limiting the # of lines?

Hi shipaddicted , I downloaded your script along with the .ini file. After removing 3 g options in Gui, Acct:Add statements and renaming the Loop, Read command line to reflect the actual name of the .ini file, I got it to run and it shows 15 rows. I suspect the issue has to do with what you are doin...
by iPhilip
20 Dec 2019, 17:31
Forum: Suggestions on documentation improvements
Topic: Suggestions on documentation improvements
Replies: 688
Views: 173414

Memory leak in ComObjQuery's documentation page

I would like to suggest a change to Example #1 on ComObjQuery 's documentation page to address what I believe is a memory leak. To test the leak I used the following script and monitored the process' Private Bytes according to the "Using Performance Monitor to Find a User-Mode Memory Leak" note on M...
by iPhilip
21 Nov 2019, 12:11
Forum: Ask For Help
Topic: Help with IFileOperationProgressSink RegisterCallback function
Replies: 10
Views: 627

Re: Help with IFileOperationProgressSink RegisterCallback function

Perhaps: GetDisplayName := NumGet(NumGet(Item + 0, "UPtr"), A_PtrSize * 5, "UPtr") ; IShellItem DisplayName := "" If !DllCall(GetDisplayName, "Ptr", Item, "UInt", 0, "PtrP", StrPtr) { ; SIGDN_NORMALDISPLAY = 0 DisplayName := StrGet(StrPtr, "UTF-16") DllCall("Ole32.dll\CoTaskMemFree", "Ptr", StrPtr)...
by iPhilip
21 Nov 2019, 00:04
Forum: Ask For Help
Topic: Help with IFileOperationProgressSink RegisterCallback function
Replies: 10
Views: 627

Re: Help with IFileOperationProgressSink RegisterCallback function

As far as I understand the docs, you have to specify the actual number of parameters for variadic callback functions. Hi just me , I just re-read the documentation for the RegisterCallback and saw that. Most callbacks use the stdcall calling convention, which requires a fixed number of parameters. ...
by iPhilip
18 Nov 2019, 02:36
Forum: Bug Reports
Topic: [v2] Issue with File.WriteUInt Topic is solved
Replies: 1
Views: 1220

Re: [v2] Issue with File.WriteUInt Topic is solved

iPhilip wrote:
01 Nov 2019, 20:25
The following code writes 8 bytes to file but when examining the file with a binary viewer it shows all zeros.

Code: Select all

File := FileOpen("foo", "w")
n := File.WriteUInt(0x01010101)
n += File.WriteUInt(0x02020202)
File.Close()
MsgBox n
lexikos wrote: Misc:
Fixed File.WriteXXX(n).
Thank you!
by iPhilip
15 Nov 2019, 04:36
Forum: Ask For Help
Topic: Help with IFileOperationProgressSink RegisterCallback function
Replies: 10
Views: 627

Re: Help with IFileOperationProgressSink RegisterCallback function

Hi Helgef :wave: Thank you for your comments. As posted by you above, the PerformOperations command does not execute properly, which is why A_LastError is set, and the file is not moved to the folder. Without the ProgressSink the file is moved as intended. Thus, I am still puzzled about the solution...
by iPhilip
15 Nov 2019, 02:43
Forum: Ask For Help
Topic: Help with IFileOperationProgressSink RegisterCallback function
Replies: 10
Views: 627

Re: Help with IFileOperationProgressSink RegisterCallback function

yeah, u can forget about this part doing anything meaningful Thank you. It was an educated guess ... but it did result in notifications. Oh, well. :? u have to obtain an interface pointer to a IFileOperationProgressSink (queryInterface i suppose), then patch its vtable with the function addresses o...
by iPhilip
14 Nov 2019, 17:15
Forum: Ask For Help
Topic: Help with IFileOperationProgressSink RegisterCallback function
Replies: 10
Views: 627

Help with IFileOperationProgressSink RegisterCallback function

Hi Folks, I have been experimenting with the IFileOperation interface commands ( link ) and have run into a problem with the IFileOperationProgressSink notification system ( link ). The script below works if the ProgressSink is turned off ( pProgressSink := 0 ). When it's turned on, the script crash...
by iPhilip
04 Nov 2019, 12:54
Forum: Ask For Help
Topic: Bug! Array key variable not working when is string with number
Replies: 7
Views: 692

Re: Bug! Array key variable not working when is string with number

lexikos wrote:
04 Nov 2019, 03:37
This also works if you're using Unicode (and saving as UTF-8 with BOM): a["🔑" k] :lol:
That's funny! :lol:
by iPhilip
01 Nov 2019, 20:25
Forum: Bug Reports
Topic: [v2] Issue with File.WriteUInt Topic is solved
Replies: 1
Views: 1220

[v2] Issue with File.WriteUInt Topic is solved

The following code writes 8 bytes to file but when examining the file with a binary viewer it shows all zeros.

Code: Select all

File := FileOpen("foo", "w")
n := File.WriteUInt(0x01010101)
n += File.WriteUInt(0x02020202)
File.Close()
MsgBox n
by iPhilip
30 Oct 2019, 20:09
Forum: General Discussion
Topic: Tank needs a little help
Replies: 15
Views: 2802

Re: Tank needs a little help

ok guys. this isn't really appropriate but am desperate. I just got letgo from my job. downsize. If i have ever helped you and you have it just burning a hole in your pocket i could use a few bucks. Please pocket change only. Anything larger than what i need for surviving and paying a few bills wil...
by iPhilip
25 Oct 2019, 14:00
Forum: Suggestions on documentation improvements
Topic: Suggestions on documentation improvements
Replies: 688
Views: 173414

Re: Filedelete and recycle bin

I think FILEDELETE doc should have a note indicating that files, if the volume on which they are found has a recylce bin ENABLED, are not sent to the recycle bin. This leads me to ask, if a volume's recycle bin is NOT ENABLED (that is, it's recycle location is marked "Don't move files to the recycl...
by iPhilip
25 Oct 2019, 13:53
Forum: Wish List
Topic: FileRecycle and NukeOnDelete
Replies: 2
Views: 858

FileRecycle and NukeOnDelete

I recently found out that when a Recycle Bin Location is marked "Don't move files to the Recycle Bin. Remove files immediately when deleted." (See Recycle Bin Properties) the FileRecycle command permanently deletes the file with a return value of 0 for ErrorLevel (no problem). I find that unsettling...
by iPhilip
18 Oct 2019, 16:22
Forum: Suggestions on documentation improvements
Topic: Suggestions on documentation improvements
Replies: 688
Views: 173414

Re: Filedelete and recycle bin

I think FILEDELETE doc should have a note indicating that files, if the volume on which they are found has a recylce bin ENABLED, are not sent to the recycle bin. This leads me to ask, if a volume's recycle bin is NOT ENABLED (that is, it's recycle location is marked "Don't move files to the recycl...
by iPhilip
17 Oct 2019, 11:56
Forum: Ask For Help
Topic: IL_Add() is there a error level if a process has no icon? Topic is solved
Replies: 6
Views: 355

Re: IL_Add() is there a error level if a process has no icon? Topic is solved

Sure! See the 4th line below. Gui, Add, ListView, h200 w180, Icon & Number|Description ; Create a ListView. ImageListID := IL_Create(10) ; Create an ImageList to hold 10 small icons. LV_SetImageList(ImageListID) ; Assign the above ImageList to the current ListView. IconNumber := IL_Add(ImageListID, ...
by iPhilip
17 Oct 2019, 11:29
Forum: Ask For Help
Topic: IL_Add() is there a error level if a process has no icon? Topic is solved
Replies: 6
Views: 355

Re: IL_Add() is there a error level if a process has no icon? Topic is solved

AHKStudent wrote:
17 Oct 2019, 09:58
I modified the documentation code to show what I mean. If an exe has no icon how to detect, not give it an icon?
https://www.autohotkey.com/docs/commands/ListView.htm#IL_Add wrote:Adds an icon or picture to the specified ImageListID and returns the new icon's index (1 is the first icon, 2 is the second, and so on).
IL_Add returns 0 is there is no icon.
by iPhilip
04 Oct 2019, 20:05
Forum: Scripts and Functions
Topic: Retrieve the WiFi passwords on your PC
Replies: 2
Views: 361

Re: Retrieve the WiFi passwords on your PC

Hi @flyingDman,

Thank you for this script. In order to get a complete list of passwords, I had to put quotes around %SSID%, i.e.

Code: Select all

runwait, %comspec% /c netsh wlan show profile "%SSID%" key=clear | clip,, hide
by iPhilip
04 Oct 2019, 19:12
Forum: Scripts and Functions
Topic: [Function] AddTooltip v2.0 - Add a Tooltip to Almost any GUI Control
Replies: 5
Views: 1718

Re: [Function] AddTooltip v2.0 - Add a Tooltip to Almost any GUI Control

Hi jballi , Thank you for this function. It's just what I was looking for and am now using it in one of my scripts. :) In case people are interested in customizing the font of the tooltips being generated, below is a script that includes a function to facilitate that. #NoEnv hIcon := LoadPicture("sh...

Go to advanced search