Skip to content

Instantly share code, notes, and snippets.

@jNizM
jNizM / gist:45f03cfe747b47ed962c
Created July 15, 2015 08:17
[AHK] WM_WTSSESSION_CHANGE / SessionChange / SessionNotification
; ===============================================================================================================================
; Title .........: WM_WTSSESSION_CHANGE / SessionChange / SessionNotification
; AHK Version ...: 1.1.22.03 x64 Unicode
; Win Version ...: Windows 7 Professional x64 SP1
; Description ...:
; Version .......: v1.01
; Modified ......: 2015.07.14-2014
; Author(s) .....: jNIzM
; ===============================================================================================================================
@jNizM
jNizM / gist:5af2a189a8421f0f66b4
Last active May 16, 2019 17:34
[AHK] Get Dropbox Status
; Return Values
; 0 [NOT_IN_DROPBOX] ==> Folder is not in Dropbox
; 1 [UP_TO_DATE] ==> Up to Date
; 2 [SYNCHRONIZING] ==> Sync in Progress
; 99 [NOT_RUNNING] ==> Dropbox is not running
MsgBox % GetDropboxStatus("C:\Users\" A_UserName "\Dropbox") ; ==> return e.g. 1
MsgBox % GetDropboxStatus("C:\Users\" A_UserName "\Dropbox", 1) ; ==> return e.g. UP_TO_DATE ;
@jNizM
jNizM / gist:b0b35f621134fa742f50
Created February 23, 2015 10:16
[AHK] AES Encryption + ECB / CBC
; ===============================================================================================================================
; http://aes.online-domain-tools.com/
; Input Text : Hello World!1234 (Plaintext)
; Function : AES
; Mode : ECB (electronic codebook)
; Key : 12345678901234567890123456789012 (Plaintext)
; Init. vector : -
; OUTPUT : 17 C3 BA 4F 85 24 49 DD 7A 6C E9 20 99 EB 70 61 41 98 AB 40 81 48 7C 21 3A 1C 82 BC 40 4A D7 C8
; ===============================================================================================================================
@jNizM
jNizM / gist:c3b0793f0be669faa0a5
Created February 12, 2015 17:21
[AHK] SpeedTest - Define the Variables
#NoEnv
SetBatchLines -1
; =========================================================================================================
QPC(1)
loop 1000000
{
t1a := 1
@jNizM
jNizM / gist:79aa6a4b8ec428bf780f
Last active September 17, 2022 08:27
[AHK] AES Encryption (String)
/*
Update v0.4
Todo: - CryptSetKeyParam (KP_MODE with CBC [maybe CFB, ECB, OFB or CTS])
*/
MsgBox % enc := AES.Encrypt("Test String", "testpw", 256)
MsgBox % AES.Decrypt(enc, "testpw", 256)
Class AES
{
@jNizM
jNizM / gist:16a68ff558222253add9
Created November 27, 2014 07:24
[AHK] BitCalc (Visual Bitwise Operations)
; GLOBAL SETTINGS ===============================================================================================================
;#Warn
#NoEnv
#SingleInstance Force
global WS_VSCROLL := 0x00200000
; GUI ===========================================================================================================================
@jNizM
jNizM / gist:f8c4f51fd1331d4f2def
Last active May 16, 2019 17:36
Class Globally unique identifier (GUID) / Universally unique identifier (UUID)
#NoEnv
; Test GUID
MsgBox % Unique.Global.Create() ; ==> {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}
test_guid1 := Unique.Global.Create()
test_guid2 := Unique.Global.Create()
MsgBox % Unique.Global.IsEqualGUID(test_guid1, test_guid1) ; ==> 1
MsgBox % Unique.Global.IsEqualGUID(test_guid1, test_guid2) ; ==> 0
@jNizM
jNizM / gpu_memory_info.ahk
Last active May 16, 2019 17:36
[AHK] NVIDIA Graphics Memory Size and Usage in OpenGL
; ===============================================================================================================================
; Title .........: GPU_MEMORY_INFO
; AHK Version ...: 1.1.15.01 x64 Unicode
; Win Version ...: Windows 7 Professional x64 SP1
; Description ...: GPU_MEMORY_INFO
; NVIDIA Graphics Memory Size and Usage in OpenGL
; Version .......: v1.00
; Modified ......: 2014.06.27-2150
; Author(s) .....: jNIzM
; ===============================================================================================================================
@jNizM
jNizM / gist:6080135
Last active December 20, 2015 05:39
[AHK] CoD4 - delete black Punkbuster screenshots
; ===================================================================================
; AHK Version ...: AHK_L 1.1.11.02 x64 Unicode
; Win Version ...: Windows 7 Professional x64 SP1
; Description ...: Delete Black Screenshots
; Version .......: 2013.08.07-1722
; Author ........:
; License .......: WTFPL
; License URL ...: http://www.wtfpl.net/txt/copying/
; ===================================================================================
;@Ahk2Exe-SetName del_blackscreens
@jNizM
jNizM / gist:5934292
Created July 5, 2013 12:43
[AHK] HDD Temperature
; ===================================================================================
; AHK Version ...: AHK_L 1.1.11.01 x64 Unicode
; Win Version ...: Windows 7 Professional x64 SP1
; Author ........: jNizM
; Script ........: HDD_Temp_Monitor.ahk
; Description ...: HDD Temp Monitor
; License .......: WTFPL
; ===================================================================================
; GLOBAL SETTINGS ===================================================================