Search found 428 matches

by iPhilip
21 Nov 2019, 12:11
Forum: Ask For Help
Topic: Help with IFileOperationProgressSink RegisterCallback function
Replies: 10
Views: 543

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

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

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

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

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

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

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

[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: 1958

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: Wish List
Topic: Suggestions on documentation improvements
Replies: 658
Views: 158421

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: 1
Views: 547

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: Wish List
Topic: Suggestions on documentation improvements
Replies: 658
Views: 158421

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

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

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

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

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...
by iPhilip
02 Oct 2019, 13:31
Forum: Ask For Help
Topic: MouseMove doesn't moove the cursor Topic is solved
Replies: 8
Views: 300

Re: MouseMove doesn't moove the cursor Topic is solved

anewscripter wrote:
02 Oct 2019, 13:16
After testing the script is triggered when the game is focused. Only cursor isn't mooved.
You might try this short script to test the MouseMove command:

Code: Select all

FoundX := 100
FoundY := 100
Return

F3::
    MouseMove, %FoundX%, %FoundY%
    Click
Return
by iPhilip
02 Oct 2019, 13:12
Forum: Ask For Help
Topic: MouseMove doesn't moove the cursor Topic is solved
Replies: 8
Views: 300

Re: MouseMove doesn't moove the cursor Topic is solved

anewscripter wrote:
02 Oct 2019, 12:58

Code: Select all

else
    MouseMove, %FoundX%, %FoundY%
    Click
 return
Hi @anewscripter You might start by putting the following two lines in a block, i.e.

Code: Select all

else
{
    MouseMove, %FoundX%, %FoundY%
    Click
}
 return
by iPhilip
21 Sep 2019, 09:26
Forum: General Discussion
Topic: Notepad and UTF-8
Replies: 15
Views: 2074

Re: Notepad and UTF-8

boiler wrote:
20 Sep 2019, 22:04
Another reason it would be helpful to new users is that some are uncomfortable not seeing an AutoHotkey client window. They wonder where AutoHotkey is. "How do you run it?" They would see the default editor/IDE as "AutoHotkey" and feel more comfort, similar to Python's IDLE.
Well said! :)

Go to advanced search