Skip to content

Instantly share code, notes, and snippets.

Gui, Add, Edit, w300 h100 hwndhEdit, try to navigate with caret and cursor`n this is a test
Gui, Show
;some part of an old code
IconDataHex =
( Join
0000020001002020000000000000a8100000160000002800000020000000
400000000100200000000000801000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000
; FiletoHex.ahk
#NoEnv
#SingleInstance Force
SetWorkingDir %A_ScriptDir%
SetBatchLines -1
ListLines Off
; StringSlice() for FiletoHex - www.autohotkey.com/forum/viewtopic.php?t=8728
; by SKAN Suresh Kumar A N, arian.suresh@gmailcom | CD: 10-Oct-2010 / LM: 10-Oct-2010
/* MD5 Message-Digest Algorithm - JavaScript
' MODIFICATION HISTORY:
' 1.0 16-Feb-2001 - Phil Fresle (sales@frez.co.uk) - Initial Version (VB/ASP code)
' 1.0 21-Feb-2001 - Enrico Mosanghini (erik504@yahoo.com) - JavaScript porting
*/
function MD5(sMessage) {
function RotateLeft(lValue, iShiftBits) { return (lValue << iShiftBits) | (lValue >>> (32 - iShiftBits)); }
function AddUnsigned(lX, lY) {
var lX4, lY4, lX8, lY8, lResult;
lX8 = (lX & 0x80000000);
@tmplinshi
tmplinshi / Class_CustomFont.ahk
Last active August 8, 2023 14:55
Load font from file or resource, without needed install to system. https://autohotkey.com/boards/viewtopic.php?f=6&t=813
/*
CustomFont v2.01 (2018-8-25)
---------------------------------------------------------
Description: Load font from file or resource, without needed install to system.
---------------------------------------------------------
Useage Examples:
* Load From File
font1 := New CustomFont("ewatch.ttf")
Gui, Font, s100, ewatch
;=================================================================================================
; Class GuiBox
; AHK Version: 1.1.13.01
; Version: 1.00 / 2013-12-25 / tmplinshi
; dependency: Gdip.ahk 1.45 by tic (http://www.autohotkey.com/board/topic/29449-gdi-standard-library-145-by-tic/)
; Thanks: nimda, gregster ...
;=================================================================================================
; Methods:
; new GuiBox( GuiOptions [, Color = "808080", Thickness = 2, Style = 1, Text = "", TextFont = "", TextOptions = ""] )
; Modify( GuiOptions [, Color = "808080", Thickness = 2, Style = 1, Text = "", TextFont = "", TextOptions = ""] )
; DOM示例.ahk
; DOM 文档:
; http://www.w3school.com.cn/xmldom/xmldom_reference.asp
; http://www.w3schools.com/jsref/dom_obj_all.asp
; http://www.w3school.com.cn/htmldom/htmldom_reference.asp
#NoEnv
#SingleInstance Force
SetBatchLines -1
; DOM_Sample.ahk
; DOM Documentation:
; http://www.w3schools.com/jsref/dom_obj_all.asp
#NoEnv
#SingleInstance Force
SetBatchLines -1
ListLines Off
ComObjError(False)
; Scrollable image list ( supports .gifs)
: Author: Sjc1000
; Link: http://ahkscript.org/boards/viewtopic.php?f=6&t=1277
FileSelectFolder, myFolder,
imageExt := "jpg,bmp,gif,png"
main := new imageDisplay(1, A_ScreenWidth / 1.2 - 20, A_ScreenWidth / 3, ( A_ScreenWidth / 1.2 ) / 4.6 )
@tmplinshi
tmplinshi / 北京时间校准器.ahk
Last active January 3, 2016 15:09
注: 还需要其他文件才能运行。下载地址: http://pan.baidu.com/s/1Wsyy
; ==============================================================
; 北京时间校准器
; v1.04 / 2014-9-8 / tmplinshi
; --------------------------------------------------------------
; AutoHotkey 版本: 1.1.13.01
; 感谢 : "just me" 的 Class_ImageButton
; ==============================================================
;-----------------------------------------
/*
Download(url, dest)
{
static oHttp := ComObjCreate("WinHttp.WinHttpRequest.5.1")
oHttp.Open("GET", url, True)
oHttp.Send()
If !oHttp.WaitForResponse(-1) ; Success = -1, Timeout = 0, No response = Empty String
Return False
if ( ComObjType(oHttp.ResponseStream) = 0xD ) ; VT_UNKNOWN = 0xD
{