This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Width := 20, Height := 20 | |
| KeyMap := {"up": "up", "left": "left", "down": "down", "right": "right"} | |
| Map := [], BlankSquares := [] | |
| Loop, % Width | |
| { | |
| x := A_Index | |
| Loop, % Height | |
| { | |
| y := A_Index |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Width := 20, Height := 20 | |
| KeyMap := {"up": "up", "left": "left", "down": "down", "right": "right"} | |
| Map := [], BlankSquares := [] | |
| Loop, % Width | |
| { | |
| x := A_Index | |
| Loop, % Height | |
| { | |
| y := A_Index |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FileSelectFile, File,,, Pick a PNG, Images (*.png) | |
| Clipboard := PngToBase64(File) | |
| MsgBox, % "The image is now on your clipboard. Paste into your browser URL bar." | |
| return | |
| PngToBase64(file) | |
| { | |
| FileGetSize, size, % file | |
| FileRead, bin, % "*c " file | |
| return "data:image/png;base64," Base64enc(bin, size) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FixIE(Version=0, ExeName="") | |
| { | |
| static Key := "Software\Microsoft\Internet Explorer" | |
| . "\MAIN\FeatureControl\FEATURE_BROWSER_EMULATION" | |
| , Versions := {7:7000, 8:8888, 9:9999, 10:10001, 11:11001} | |
| if Versions.HasKey(Version) | |
| Version := Versions[Version] | |
| if !ExeName |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| HtmlBox(HTML, Title="HtmlBox", Body=True, Full=False, URL=False, width=300, height=200) | |
| { ; Creates a MsgBox style GUI that has embedded HTML | |
| global MsgBoxOK, MsgBoxActiveX, MsgBoxFull=Full | |
| ; Set up the GUI | |
| Gui, +HwndDefault | |
| Gui, MsgBox:New, +HwndMsgBox +Resize +MinSize +LabelMsgBox | |
| if Full | |
| Gui, Margin, 0, 0 | |
| else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Gist(Code, NewUser="", NewPass="", Title="AutoHotkey", Public="1") | |
| { | |
| static Basic, User, Pass | |
| if (User != NewUser || Pass != NewPass) ; If new credentials | |
| { | |
| User := NewUser | |
| Pass := NewPass | |
| if (User && Pass) ; If not blank | |
| Basic := Base64(User ":" Pass) ; Create new basic auth code |
NewerOlder