Search found 2549 matches

by jNizM
Today, 05:09
Forum: Scripts and Functions
Topic: A collection of small ahk functions
Replies: 77
Views: 42828

Re: A collection of small ahk functions

ElfHash (ELF Hash Implementation in AutoHotkey) Source: ElfHash(string) { h := 0 loop, parse, string { h := (h << 4) + (Asc(A_LoopField)) if (x := h & 0xF0000000) h ^= x >> 24 h &= ~x } return Format("{:#x}", h) } Example: MsgBox % ElfHash("The quick brown fox jumps over the lazy dog") Output: 0x42...
by jNizM
07 Jan 2021, 09:51
Forum: Ich brauche Hilfe
Topic: Ganz-Zahlenformat mit Tausendertrennzeichen
Replies: 6
Views: 118

Re: Ganz-Zahlenformat mit Tausendertrennzeichen

Den SubStr würde ich heute perfomanter bauen (zusammen mit meiner aktuellen funktion) GetNumberFormatEx(Value, LocaleName := "!x-sys-default-locale") ; Windows Vista and later { if (Size := DllCall("GetNumberFormatEx", "str", LocaleName, "uint", 0, "str", Value, "ptr", 0, "ptr", 0, "int", 0)) { VarS...
by jNizM
04 Jan 2021, 06:32
Forum: Ask For Help
Topic: How to encrypt
Replies: 6
Views: 214

Re: How to encrypt

1) Crypt.Hash.String() Hashing (e.g. MD5 / SHA1 / SHA2) are one-way functions. You cannot decrypt them (only with brut-force or rainbow tables) 2) Crypt.Eecrypt.String() You can use the "hexraw" parameter to get just letters and numbers (0-9 + A-F) (e.g. MsgBox % Crypt.Encrypt.String("AES", "ECB", "...
by jNizM
04 Jan 2021, 06:05
Forum: Scripts and Functions
Topic: CNG (Cryptography API: Next Generation)
Replies: 82
Views: 44246

Re: CNG (Cryptography API: Next Generation)

updated the class

MsgBox % Crypt.Hash.HMAC("SHA1", "000000000273ef07", "48656c6c6f21deadbeef", "hex") returns now 96b1be00bda9c81cfc4a58f0ad9ff12f5ece03ef
MsgBox % Crypt.Hash.HMAC("SHA1", 0x000000000273ef07, 0x48656c6c6f21deadbeef, "hex") is also possible
by jNizM
04 Jan 2021, 05:31
Forum: Allgemeines
Topic: 2020 -> 2021
Replies: 9
Views: 280

Re: 2020 -> 2021

Frohes Neues euch allen.
by jNizM
04 Jan 2021, 05:28
Forum: Ich brauche Hilfe
Topic: UDP nach update auf 1.1.33.02 funktionier nicht mehr
Replies: 4
Views: 113

Re: UDP nach update auf 1.1.33.02 funktionier nicht mehr

Ach sieh an. Auch ein CoD4 Spieler :D

Hab so eine Abfrage auch schon gemacht mit der aktuellen Version von AHK und kann sagen es funktioniert.
Benutze allerdings die Klasse von Bentschi dafür und nicht manuell Zeile für Zeile
by jNizM
23 Dec 2020, 05:16
Forum: Allgemeines
Topic: 2020 -> 2021
Replies: 9
Views: 280

2020 -> 2021

Hallo zusammen, 2020 (der eine oder andere würde das Jahr bestimmt am liebsten aus seinem Gedächtnis streichen) neigt sich so langsam dem Ende. Ich wünsche euch allen schon mal eine schöne Weihnachtszeit inkl. Feiertage und einen guten Rutsch ins 2021, wenn man sich hier nicht mehr liest. :xmas: Vlt...
by jNizM
17 Dec 2020, 04:38
Forum: Ich brauche Hilfe
Topic: Passwort soll nicht plain im Skript stehen
Replies: 10
Views: 177

Re: Passwort soll nicht plain im Skript stehen

Mein Rat: Benutze KeePass (oder Alternativen)
by jNizM
16 Dec 2020, 08:28
Forum: Allgemeines
Topic: Google blockt Blocker?
Replies: 3
Views: 123

Re: Google blockt Blocker?

Wenn möglich, kauf dir ein Raspberry (oder Alternative) und setzt dir ein Pi-Hole oder AdGuard Home auf, füge ein paar Listen hinzu (findest du auf GitHub) und verwende den als DNS-Server.
by jNizM
27 Nov 2020, 09:00
Forum: Scripts and Functions
Topic: CRC (Cyclic redundancy check)
Replies: 7
Views: 1128

Re: CRC (Cyclic redundancy check)

There is no DllCall from Microsoft for CRC16 But use this for CRC32: CRC32(str, enc := "UTF-8") { size := (StrPut(str, enc) - 1) * (len := (enc = "CP1200" || enc = "UTF-16") ? 2 : 1) VarSetCapacity(buf, size, 0) && StrPut(str, &buf, Floor(size / len), enc) crc := DllCall("ntdll\RtlComputeCrc32", "ui...
by jNizM
23 Oct 2020, 07:49
Forum: Ask For Help
Topic: AHK allow only to run on specific hdd serial Topic is solved
Replies: 13
Views: 333

Re: AHK allow only to run on specific hdd serial Topic is solved

Return true (1) if SN is correct or false (0) if not hddsn(sn) { for objItem in ComObjGet("winmgmts:").ExecQuery("SELECT * FROM Win32_DiskDrive") if (InStr(objItem.SerialNumber, sn)) return true return false } example if (hddsn("50026B77828278E9")) MsgBox % "Success" else MsgBox % "Failure"
by jNizM
16 Sep 2020, 06:01
Forum: Ask For Help
Topic: Help with Sean's AES Encryption/Decryption
Replies: 5
Views: 329

Re: Help with Sean's AES Encryption/Decryption

File Encryption / Decryption will be possible after my vacation in 1 or 2 weeks ;)
by jNizM
15 Sep 2020, 07:36
Forum: Ask For Help
Topic: How to search inside files
Replies: 5
Views: 287

Re: How to search inside files

If you have Notepad++ installed, you can use the "Find in Files" function and filter just *.csv Files

Image
by jNizM
15 Sep 2020, 05:13
Forum: Scripts and Functions
Topic: CNG (Cryptography API: Next Generation)
Replies: 82
Views: 44246

Re: CNG (Cryptography API: Next Generation)

Update: Github updated Initial Forum Post updated 2nd and 3rd Forum Post (examples) updated. Feel free to test the rewritten post and report bugs or issues here. Function I used to create Files with random bytes for testings CreateRandomBytesFile("test_2MB", 2097152) CreateRandomBytesFile(file, byt...
by jNizM
14 Sep 2020, 09:01
Forum: Ask For Help
Topic: Max memory for process
Replies: 1
Views: 69

Re: Max memory for process

See https://www.autohotkey.com/boards/viewtopic.php?f=6&t=142 Line 78

You can either reduce the memory for all processes or rewrite the function for a specific process.
But this does not mean that it has to work for a specific process too.
by jNizM
14 Sep 2020, 08:45
Forum: Scripts and Functions
Topic: CNG (Cryptography API: Next Generation)
Replies: 82
Views: 44246

Re: CNG (Cryptography API: Next Generation)

Update: Almost finished with the rewriting of the class. String Encryption / Decryption works so far. Output and Input can be Base64, Hex and Hexraw. Will also add address as output. Tested Encryption Modes and compared to online tools: String: abcdefghijklmnop Key: 1234567890123456 IV: 12345678901...
by jNizM
09 Sep 2020, 06:15
Forum: Scripts and Functions
Topic: Emoji() : 40 unicode icons
Replies: 14
Views: 888

Re: Emoji() : Working script with 40 unicode icons

Win + . ?

Image

But anyway... nice script like always
by jNizM
02 Sep 2020, 07:06
Forum: Ask For Help
Topic: May I Ask if youre allowed to hire someone
Replies: 11
Views: 191

Re: May I Ask

Just ask your question here and someone will help you.



O.T. gregster beat me ;D

Go to advanced search