This file contains 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
class console | |
{ Time:=A_Now | |
__new(Name,x,y,w,h,TimeFormat:=1,Font:="Courier New",FontSize:=10) | |
{ global | |
If(Name="") | |
{ random,n,0 | |
Name:="DebugID" n | |
}If(TimeFormat!=0&&TimeFormat!=1){ | |
timeformat:=this.time |
This file contains 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
CoordMode, Pixel, Relative | |
WinActivate, ahk_class Direct3DWindowClass | |
Loop | |
{ | |
ImageSearch, FoundX, FoundY, 0,0, 60, 60, vitality.jpg | |
If (ErrorLevel = 1) | |
ehit := "" | |
else | |
{ | |
If (ehit = "") |
This file contains 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
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
; #Warn ; Enable warnings to assist with detecting common errors. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
Gui, Add, Text,, Only play/reads/passed in A: | |
Gui, Add, Edit, gGetTotal vONlyA | |
Gui, Add, Text,, Only play/reads/passed in B: | |
Gui, Add, Edit, gGetTotal vOnlyB | |
Gui, Add, Text,, Play/read/passed in Both: | |
Gui, Add, Edit, gGetTotal vBC |
This file contains 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
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
; #Warn ; Enable warnings to assist with detecting common errors. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
ComputerNames := "Computer1,Computer2,Computer3" | |
Loop, parse, ComputerNames,`, | |
{ |
This file contains 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
InputBox, Input | |
Modifiers := Input | |
Hotkey, %Modifiers%1, Hotkey1 | |
Hotkey, %Modifiers%2, Hotkey2 | |
return | |
Hotkey1: | |
msgbox, you pressed %A_ThisHotkey% | |
Return |
This file contains 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
SetTitleMatchMode, 2 | |
#IfWinActive Pencil | |
^y:: Send, ^+z | |
#IfWinActive |
This file contains 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
FileName := "default2.ahk" | |
FileRead, FileIn, %FileName% | |
Loop, Parse, FileIn, `n, `r | |
{ | |
If (A_Index < 2 || A_Index > 10) | |
Continue | |
else If !A_LoopField ; Test for "empty" line and skip it | |
Continue | |
lst .= A_LoopField . "`n`r" | |
} |
This file contains 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
xp := 820 | |
yp := 420 | |
F16:: | |
If !Wait | |
{ | |
Wait := 1 | |
yt := yp | |
Send {4} | |
;while Wait |
This file contains 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
Inputbox, key, Enter a number | |
Random, numChar, 2, 8 | |
count := 0 | |
charInside := 0 | |
parameter := (numChar - charInside) | |
Loop | |
{ | |
If (key >= parameter) | |
{ |
This file contains 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
#SingleInstance force | |
; Example: On-screen display (OSD) via transparent window: | |
CustomColor = FF8080 ; The transparent background color of the window, set this to something close to your text colour to avoid white highlighting | |
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow +E0x20 ; +ToolWindow avoids a taskbar button and an alt-tab menu item. | |
Gui, Color, %CustomColor% | |
Gui, Font, s50 ; Set a large font size (12-point). | |
errorTail := "hello" | |
Gui, Add, Text, x0 y-10 vMyText cRed , %errorTail% ; add it, colour is Red, R5 sets 5 rows |
OlderNewer