Search found 299 matches
- 23 Nov 2019, 10:30
- Forum: Scripts and Functions
- Topic: CNG (Cryptography API: Next Generation)
- Replies: 82
- Views: 44248
Re: CNG (Cryptography API: Next Generation)
Since the library uses advapi32.dll to generate hashes, I am worried that maybe different Windows systems will have different versions of advapi32.dll in their System32 folder, which might use slightly different implementation, causing a different hash to be generated, which would break my entire ap...
- 22 Nov 2019, 05:29
- Forum: Ask For Help
- Topic: DllCall return type Topic is solved
- Replies: 5
- Views: 565
Re: DllCall return type Topic is solved
I think I understand what you're saying, insofar as the underlying binary data being the same for practical purposes, regardless of signness. But I was concerned that perhaps when ahk's source code for DllCall interacts with WinAPI, that ahk might be telling WinAPI "please return me a value of type ...
- 22 Nov 2019, 03:54
- Forum: Ask For Help
- Topic: DllCall return type Topic is solved
- Replies: 5
- Views: 565
Re: DllCall return type Topic is solved
(prefix u or not doesn't matter). Are you sure because Prepend the letter U to any of the integer types above to interpret it as an unsigned integer. Strictly speaking, this is necessary only for return values and asterisk variables because it does not matter whether an argument passed by value is ...
- 21 Nov 2019, 16:13
- Forum: Ask For Help
- Topic: DllCall return type Topic is solved
- Replies: 5
- Views: 565
DllCall return type Topic is solved
DllCall("LoadLibrary", "Str", "Psapi.dll") Why does the above work, given the LoadLibrary function returns a HMODULE, and we haven't specified a return type, as per: ReturnType: If the function returns a 32-bit signed integer (Int), BOOL, or nothing at all, ReturnType may be omitted. Otherwise, spe...
- 21 Nov 2019, 07:46
- Forum: Ask For Help
- Topic: Does ahk automatically load ntdll.dll? Topic is solved
- Replies: 2
- Views: 295
Does ahk automatically load ntdll.dll? Topic is solved
DllFile may be omitted when calling a function that resides in User32.dll, Kernel32.dll, ComCtl32.dll, or Gdi32.dll. For example, "User32\IsWindowVisible" produces the same result as "IsWindowVisible". However it seems I can call functions inside ntdll.dll, without having to specify ntdll.dll, whic...
- 21 Nov 2019, 07:07
- Forum: Scripts and Functions
- Topic: XGraph v1.1.1.0 : Real time data plotting.
- Replies: 27
- Views: 30590
Re: XGraph v1.1.1.0 : Real time data plotting.
I notice XGraph uses DllCall("RtlMoveMemory") According to WinAPI here , it resides in ntdll.dll, which is not part of ahk's automatically loaded .dlls (User32.dll, Kernel32.dll, ComCtl32.dll, and Gdi32.dll). According to ahk doc, the only time we can omit DllFile name, is if the function is inside ...
- 19 Oct 2019, 20:04
- Forum: Ask For Help
- Topic: FileSelectFile sometimes ignores my Rootdir (ahk2exe or 32/64bit issue?) Topic is solved
- Replies: 12
- Views: 1542
Re: FileSelectFile sometimes ignores my Rootdir (ahk2exe or 32/64bit issue?) Topic is solved
Here is my workaround if anyone's interested. Please see the "important" note in the comment, otherwise it may not work. FileSelectFile ,,, % GetFileSelectFileDir( "C:\StartingDirectory" ) GetFileSelectFileDir( ThisPath:="" ){ /* Workaround issue where Windows ignores your specified starting directo...
- 18 Oct 2019, 14:28
- Forum: Ask For Help
- Topic: FileSelectFile sometimes ignores my Rootdir (ahk2exe or 32/64bit issue?) Topic is solved
- Replies: 12
- Views: 1542
Re: FileSelectFile sometimes ignores my Rootdir (ahk2exe or 32/64bit issue?) Topic is solved
I've encountered some inconsistent behaviour in the way Windows writes the FirstFolder value to registry. i.e Delete registry's FirstFolder key -> run app -> FileSelectFile , , , C:\Path1 -> C:\Path1 gets written to registry FirstFolder value. FileSelectFile , , , (no path) -> select C:\Path2\File.e...
- 15 Oct 2019, 07:39
- Forum: Ask For Help
- Topic: FileSelectFile sometimes ignores my Rootdir (ahk2exe or 32/64bit issue?) Topic is solved
- Replies: 12
- Views: 1542
Re: FileSelectFile sometimes ignores my Rootdir (ahk2exe or 32/64bit issue?) Topic is solved
Just adding "\" sometimes works, sometimes fails. I finally got to the bottom of this. So the first time an application opens a FileSelectFile, Windows saves the starting directory parameter to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\FirstFolder Then, if your a...
- 13 Aug 2019, 05:07
- Forum: Ask For Help
- Topic: Timer threads interruptability
- Replies: 5
- Views: 847
Re: Timer threads interruptability
the takeaway is timers are interruptible, loops arent Loops can be interrupted as long as they're not Critical, or at a higher Priority than the thread trying to interrupt it, or inside the script's exit routine. Can't understand why in the following only first Sub1 works and never Sub2, they must ...
- 13 Aug 2019, 04:36
- Forum: Bug Reports
- Topic: Trivial parsing issue with Gui , Add
- Replies: 1
- Views: 899
Trivial parsing issue with Gui , Add
#SingleInstance , Force ;Works Gui , Add , Text , % "x" . (2+2) . " y4 w35 h15" , Text ;Doesn't work Gui , Add , Text , % "x" . (2+2) . " y24 w35 h15" , Text: ;Works Gui , Add , Text , % "x" . (2+2) . " y44 w35 h15" , % "Text:" Gui , Show , w250 h65 Center , Gui return GuiClose: ExitApp return http...
- 12 Jul 2019, 20:42
- Forum: Ask For Help
- Topic: COM object CPU leak in Win 10 Topic is solved
- Replies: 3
- Views: 824
Re: COM object CPU leak in Win 10 Topic is solved
Found the culprit, it was the motherboard's ethernet controller driver ("Killer E2200 Gigabit Ethernet Controller"). Motherboard is an Asrock Z97X Killer. I already knew that Killer ethernet software was dodgy as its "bandwidth control" feature was randomly turning itself on and throttling my networ...
- 12 Jul 2019, 06:42
- Forum: Ask For Help
- Topic: COM object CPU leak in Win 10 Topic is solved
- Replies: 3
- Views: 824
Re: COM object CPU leak in Win 10 Topic is solved
Thanks.
I guess it must be something about my system configuration causing it. I will try a fresh install of Windows.
I guess it must be something about my system configuration causing it. I will try a fresh install of Windows.
- 12 Jul 2019, 06:00
- Forum: Ask For Help
- Topic: How do I set process priority to all child processes? Topic is solved
- Replies: 9
- Views: 1367
Re: How do I set process priority to all child processes? Topic is solved
me: baby tier
teadrinker: hardcore tier
swagfag: elegant tier
teadrinker: hardcore tier
swagfag: elegant tier
- 12 Jul 2019, 05:05
- Forum: Ask For Help
- Topic: How do I set process priority to all child processes? Topic is solved
- Replies: 9
- Views: 1367
Re: How do I set process priority to all child processes? Topic is solved
This may work for some but not all of the child processes. Use something like Process Explorer to confirm (View -> Select Columns -> Process Performance -> Base Priority. 8=Normal, 13=High). #Persistent Run "c:\Program Files (x86)\Firefox Quantum\firefox.exe" --profile "c:\Users\username\AppData\Roa...
- 12 Jul 2019, 02:19
- Forum: Ask For Help
- Topic: FileSelectFile sometimes ignores my Rootdir (ahk2exe or 32/64bit issue?) Topic is solved
- Replies: 12
- Views: 1542
Re: FileSelectFile sometimes ignores my Rootdir (ahk2exe or 32/64bit issue?) Topic is solved
With some experiments and in hindsight, I just need the trailing "\". (You don't need GetReliablePath, pneumatic.) I found that it can still fail if you don't change the starting directory every time. The purpose is to stop Windows from trying to be clever: The algorithm for selecting the initial d...
- 11 Jul 2019, 21:30
- Forum: Ask For Help
- Topic: FileSelectFile sometimes ignores my Rootdir (ahk2exe or 32/64bit issue?) Topic is solved
- Replies: 12
- Views: 1542
Re: FileSelectFile sometimes ignores my Rootdir (ahk2exe or 32/64bit issue?) Topic is solved
This was my workaround for 64-bit Unicode compiled .exe FileSelectFile , SelectedFile ,, % GetReliablePath( Path . "\Folder" ) , Select File , Videos (*.mp4) GetReliablePath(Path){ static LastPath If (Path = LastPath){ StringRight , LastChar , Path , 1 If (LastChar = "\") StringTrimRight , Path , Pa...
- 11 Jul 2019, 20:39
- Forum: Ask For Help
- Topic: COM object CPU leak in Win 10 Topic is solved
- Replies: 3
- Views: 824
COM object CPU leak in Win 10 Topic is solved
This only occurs on my Windows 10 install (v1903 May 2019). Windows 7 appears unaffected. Code is from https://www.autohotkey.com/docs/commands/URLDownloadToFile.htm (it just downloads the current version number of ahk from https://autohotkey.com/download/1.1/version.txt) #Persistent return ^1:: ;Ct...
- 30 May 2019, 13:14
- Forum: Scripts and Functions
- Topic: UTF-8 ini files
- Replies: 8
- Views: 3613
Re: UTF-8 ini files
Thanks.
To be safe I changed all my ini files to UTF-16, aka "USC2-LE-BOM", by using the parameter UTF-16 with FileAppend.
In future I think I'll just avoid using iniread/write and do it manually.
To be safe I changed all my ini files to UTF-16, aka "USC2-LE-BOM", by using the parameter UTF-16 with FileAppend.
In future I think I'll just avoid using iniread/write and do it manually.
- 29 May 2019, 10:17
- Forum: Scripts and Functions
- Topic: UTF-8 ini files
- Replies: 8
- Views: 3613
Re: UTF-8 ini files
I guess UTF-8 is using 1 byte per character which makes it compatible with ANSI which Get/WritePrivateProfileString are interpreting the file as.
But I still don't understand how it knows how many bytes per char are being used by UTF-8 as it could be up to 3.
But I still don't understand how it knows how many bytes per char are being used by UTF-8 as it could be up to 3.