Search found 2292 matches

by jNizM
12 Apr 2019, 05:01
Forum: Ask For Help
Topic: Which one is faster for arrays and Loop Rrase? Topic is solved
Replies: 5
Views: 139

Re: Which one is faster for arrays and Loop Rrase? Topic is solved

If you speed something in v1 you need to add SetBatchLines -1 e.g. ; GLOBAL SETTINGS =============================================================================================================== #NoEnv SetBatchLines -1 global Init := DllCall("QueryPerformanceFrequency", "int64*", Freq) global Coun...
by jNizM
12 Apr 2019, 00:34
Forum: Scripts and Functions
Topic: CNG (Cryptography API: Next Generation)
Replies: 53
Views: 10141

Re: CNG (Cryptography API: Next Generation)

Hi iPhilip,

thanks for the reported issues. The class is still in development and will be updated soon.

As long as you can use the already rewritten functions.
by jNizM
11 Apr 2019, 05:40
Forum: Ask For Help
Topic: Object Centered In Gui Topic is solved
Replies: 8
Views: 192

Re: Object Centered In Gui Topic is solved

another way: ; GLOBAL SETTINGS =============================================================================================================== #NoEnv #SingleInstance Force SetBatchLines -1 ; GUI =========================================================================================================...
by jNizM
11 Apr 2019, 04:06
Forum: Ask For Help
Topic: Reshacker
Replies: 2
Views: 98

Re: Reshacker

I got a function to check if 32 or 64 bit, but I try to find out if we can check also ansi vs unicode
by jNizM
29 Mar 2019, 03:42
Forum: Ask For Help
Topic: Styling the Window Border
Replies: 1
Views: 76

Re: Styling the Window Border

In short: Create your own Gui with GDI+ (https://www.autohotkey.com/boards/viewtopic.php?f=6&t=6517)
by jNizM
28 Mar 2019, 06:07
Forum: Scripts and Functions
Topic: CNG (Cryptography API: Next Generation)
Replies: 53
Views: 10141

Re: CNG (Cryptography API: Next Generation)

Update:
- Added variable chunk size for file hashing (default is now 1048576 bytes [1024 kb / 1 mb])
by jNizM
27 Mar 2019, 09:21
Forum: Ask For Help
Topic: Can anyone explain the MD5 algorithm?
Replies: 6
Views: 282

Re: Can anyone explain the MD5 algorithm?

Just out of curiosity... why do you want to calculate it (MD5 and CRC) with the slower native implementation than with DllDall?
by jNizM
27 Mar 2019, 04:40
Forum: Scripts and Functions
Topic: CNG (Cryptography API: Next Generation)
Replies: 53
Views: 10141

Re: CNG (Cryptography API: Next Generation)

Hey. Atm I use 262144 bytes (256 kb), but I plan to make the bytes as function parameter, so everyone can easy change them. Will also change them to 1024 kb (1 mb) Sure you can use any higher number, as soon you has enough memory. I prefer the JEDEC memory standards (https://en.wikipedia.org/wiki/JE...
by jNizM
26 Mar 2019, 08:28
Forum: Ask For Help
Topic: How to calculate the CRC value of a file? Topic is solved
Replies: 10
Views: 288

Re: How to calculate the CRC value of a file? Topic is solved

Yes but its really slow GetTable := CRC32.CalculateTable() Msgbox % CRC32.Compute(GetTable, A_AhkPath) Class CRC32 { CalculateTable() { static POLYNOMIAL := 0xEDB88320 Table := [] loop 256 { Byte := A_Index - 1 loop 8 { if (Byte & 1) { Byte >>= 1 Byte ^= POLYNOMIAL } else Byte >>= 1 } Table[A_Index ...
by jNizM
26 Mar 2019, 07:37
Forum: Ask For Help
Topic: How to calculate the CRC value of a file? Topic is solved
Replies: 10
Views: 288

Re: How to calculate the CRC value of a file? Topic is solved

afe wrote:
26 Mar 2019, 07:22
Thank you.

File.RawRead(RawContent, File.Length)

Does this statement mean writing all the contents of the file to memory first? If so, then for a very large file, isn't it going to take up the same amount of memory?
Yes it reads the full file.
by jNizM
25 Mar 2019, 07:56
Forum: Scripts and Functions
Topic: CRC (Cyclic redundancy check)
Replies: 3
Views: 247

Re: CRC (Cyclic redundancy check)

Other small checksum implementations Adler-32 (is a checksum algorithm which was invented by Mark Adler) MsgBox % Adler32("The quick brown fox jumps over the lazy dog") ; -> 0x5bdc0fda Adler32(str) { static a := 1, b := 0 loop, parse, str b := Mod(b + (a := Mod(a + Asc(A_LoopField), 0xFFF1)), 0xFFF1...
by jNizM
25 Mar 2019, 07:56
Forum: Scripts and Functions
Topic: CRC (Cyclic redundancy check)
Replies: 3
Views: 247

CRC (Cyclic redundancy check)

CRC (Cyclic redundancy check) implementation Description: Generates the cyclic redundancy checksum polynomial of the string. This is usually used to validate the integrity of data being transmitted. Github: ...todo CRC-32 MsgBox % CRC32("The quick brown fox jumps over the lazy dog") ; -> 0x414fa339...
by jNizM
25 Mar 2019, 03:52
Forum: General Discussion
Topic: your personal AutoHotkey style guide
Replies: 76
Views: 7253

Re: your personal AutoHotkey style guide

; I prefer DllCall("ntdll\NtQuerySystemInformation", "int", 0x5, "ptr", &buf, "uint", size, "uint*", 0) NumGet(&buf + 56 + A_PtrSize * 3, "ptr") ; and / or for special cases with while (addr) addr := &buf while (addr) { ; NumGet(...) NumGet(addr + 56 + A_PtrSize * 3, "ptr") ; more NumGet(...) addr ...
by jNizM
22 Mar 2019, 09:04
Forum: Scripts and Functions
Topic: SystemProcessInformation
Replies: 2
Views: 181

Re: SystemProcessInformation

Examples: Returns an array of SYSTEM_PROCESS_INFORMATION structures, one for each process running in the system. PrintArr(SystemProcessInformation()) PrintArr(Arr, Option := "w1200 h800", GuiNum := 90) { for index, obj in Arr { if (A_Index = 1) { for k, v in obj { Columns .= k "|" cnt++ } Gui, %Gui...
by jNizM
22 Mar 2019, 09:03
Forum: Scripts and Functions
Topic: SystemProcessInformation
Replies: 2
Views: 181

SystemProcessInformation

SystemProcessInformation Description: These structures contain information about the resource usage of each process, including the number of threads and handles used by the process, the peak page-file usage, and the number of memory pages that the process has allocated. Github: ...todo Source: Syst...
by jNizM
22 Mar 2019, 08:25
Forum: Ask For Help
Topic: Process Private Memory Usage Topic is solved
Replies: 23
Views: 677

Re: Process Private Memory Usage Topic is solved

For 32- & 64-Bit MsgBox % GetWorkingSetPrivateSize(2580) " K" GetWorkingSetPrivateSize(PID) { if (DllCall("ntdll.dll\NtQuerySystemInformation", "int", 0x5, "ptr", 0, "uint", 0, "uint*", size) != 0) { size := VarSetCapacity(buf, size, 0) if (DllCall("ntdll\NtQuerySystemInformation", "int", 0x5, "ptr"...
by jNizM
22 Mar 2019, 08:00
Forum: Ask For Help
Topic: Process Private Memory Usage Topic is solved
Replies: 23
Views: 677

Re: Process Private Memory Usage Topic is solved

For 32-bit it should beif (NumGet(addr + 68, "ptr") = PID)
Will add 32-bit later too.. because I just work with 64-bit

Go to advanced search