Skip to content

Instantly share code, notes, and snippets.

@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: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: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: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:019696878590071cf739
Created July 17, 2015 12:25
[AHK] GUI - How-to draw a line / frame
; http://ahkscript.org/boards/viewtopic.php?f=7&t=8846
; https://dl.dropboxusercontent.com/u/186419968/Scripte/Gui/Gui_Draw_Line.png
; GLOBAL SETTINGS ===============================================================================================================
#Warn
#NoEnv
#SingleInstance Force
SetBatchLines -1
@jNizM
jNizM / Gui.ahk
Last active May 16, 2019 17:33
[AHK] GUI Test for Win 8.1 & Win 10
; http://ahkscript.org/boards/viewtopic.php?f=17&t=9057
; 2015-07-30 10:52
; TODO ==========================================================================================================================
; - add child
; GLOBAL SETTINGS ===============================================================================================================
#Warn
#NoEnv
@jNizM
jNizM / class_dropbox.ahk
Last active May 16, 2019 17:32
[AHK] Dropbox Class (GetPath / GetStatus / GetPID)
; License: Unlicense (http://unlicense.org/)
/*
* Function DropBox.GetPath()
*
* Parameters
* Account: can be "personal" or "business" (personal if omitted)
*
* Return Values
* if the function succeeds ==> PATH
@jNizM
jNizM / NtQuerySystemInformation.h
Last active November 6, 2023 04:19
Undocumented NtQuerySystemInformation Structures
// http://www.exploit-monday.com/2013/06/undocumented-ntquerysysteminformation.html
// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
enum _SYSTEM_INFORMATION_CLASS
{
SystemBasicInformation = 0x0000,
SystemProcessorInformation = 0x0001,
SystemPerformanceInformation = 0x0002,
SystemTimeOfDayInformation = 0x0003,
@jNizM
jNizM / Class_ProcessExplorer.ahk
Created May 9, 2016 08:41
[AHK] ProcessExplorer (v0.07 beta)
; ===============================================================================================================================
; Title .........: ProcessExplorer
; AHK Version ...: 1.1.23.05 x64 Unicode
; Win Version ...: Windows 10 Professional - x64
; Description ...: Log Remote Session Information
; Version .......: v0.07 Beta
; Modified ......: 2016.04.20-1653
; Author(s) .....: jNizM
; ===============================================================================================================================
;@Ahk2Exe-SetName ProcessExplorer
@jNizM
jNizM / ahk_gui_gradient.ahk
Last active May 16, 2019 17:30
[AHK] Create Gardient in GUI
; GLOBAL SETTINGS ===============================================================================================================
#NoEnv
#SingleInstance Force
SetBatchLines -1
; GUI ===========================================================================================================================
Gui, +LastFound +hwndhMyGUI
Gui, Margin, 0, 0