Skip to content

Instantly share code, notes, and snippets.

@xcloudx01
xcloudx01 / rapidfire.ahk
Created September 20, 2022 05:54
Autohotkey togglable rapidfire script.
Save either script as an .ahk file and run it (AutoHotKey must be installed)
Script 1:
Rapid-fires as long as left click is held down.
Usage: Run script, go into a game, press numpad+ to turn on the script -
hold down left click to rapidly fire. Press numpad+ again to turn it off.
;----Copy below this line------;
#Singleinstance, FORCE ;Without this you can accidentally run it twice.
Suspend, On ;Start in off state so you can't accidentally rapid-fire.
@xcloudx01
xcloudx01 / AutoCorrect.ahk
Created March 14, 2022 07:36 — forked from endolith/AutoCorrect.ahk
AutoCorrect AutoHotkey spelling script
; c = case sensitive
; c1 = ignore the case that was typed, always use the same case for output
; * = immediate change (no need for space, period, or enter)
; ? = triggered even when the character typed immediately before it is alphanumeric
; r = raw output
;------------------------------------------------------------------------------
; CHANGELOG:
;
; 2011-03-21 and after: See readme.md
@xcloudx01
xcloudx01 / ChangeFileExt.ahk
Last active May 13, 2019 10:20
Change file extension of all files to the one specified
;Used to change ALL files in a folder to become a specified extension and to a new name followed by an incrementing number.
;It's been handy to use sometimes when software hasn't outputted a series of files correctly but manually renaming them would fix them.
;What name shall we give the new files?
NewName = picture
;What should their extention be?
Extention = .png
;Warning that this isnt an undoable action.
msgbox,4,Warning,This will rename and change ALL files to %Extention% in the current folder`nThis is not undo-able.`n`nDo you want to continue?
ifmsgbox,no
@xcloudx01
xcloudx01 / FileRenamer.ahk
Created May 13, 2019 10:16
Autohotkey Batch file renamer
;Will rename all files of the target file extension to a new name followed by a incrementing number. The script will load them in their current alphanumerical order and rename accordingly.
msgbox are you sure you want to continue?
exitapp
NewName = TYPE_YOUR_NEW_NAME_HERE_
SetFormat,FloatFast,4.4
number = 00
FileList =
Loop *.png ;Will rename ALL png files found in the script folder.
{
@xcloudx01
xcloudx01 / AntiCatTyper.ahk
Created May 13, 2019 08:13
AutoHotKey - Disable keyboard via a hotkey
RunAsAdmin()
RWin & o::
BlockInput On
Msgbox,,Anti-Cat Typer,Keyboard & mouse disabled.`nUse Win+P to re-enable.
;settimer, remove, 10000 ; as a safety feature while testing
return
RWin & p::
LWin & p::
@xcloudx01
xcloudx01 / ChangeGUIColour.ahk
Created February 3, 2019 09:00
Change the colour of a GUI Edit box via 3 separate RGB sliders in AutoHotKey
#SingleInstance force
SetFormat, integer, hex
Gui, Add, Slider , x12 y19 w90 h20 vPipboyRed gSetColour Range0-255, 128
Gui, Add, Slider, x12 y59 w90 h20 vPipboyGreen gSetColour Range0-255, 128
Gui, Add, Slider, x12 y99 w90 h20 vPipboyBlue gSetColour Range0-255, 128
gosub,SetColour ;Set the default colour to what's defined above.
Gui, Add, Edit, x112 y19 w120 h100
Gui, Show, h147 w247
SetFormat, integer, d
Return
@xcloudx01
xcloudx01 / blueprint.txt
Created April 3, 2018 00:31
Mouse is not in viewport - ue4 Unreal 4
Begin Object Class=/Script/BlueprintGraph.K2Node_CallFunction Name="K2Node_CallFunction_2377"
FunctionReference=(MemberParent=Class'"/Script/UMG.WidgetLayoutLibrary"',MemberName="GetMousePositionOnViewport")
NodePosX=-4128
NodePosY=448
NodeGuid=85E3AB7C475A7FAD828DBCA5ADA57226
CustomProperties Pin (PinId=4674DB564196D8E0E30711BF9C2A87A9,PinName="execute",PinToolTip="\nExec",PinType.PinCategory="exec",PinType.PinSubCategory="",PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsArray=False,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,LinkedTo=(K2Node_Tunnel_662 DA84DB6C47917CB147CC2BBAF76C044D,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
CustomProperties Pin (PinId=B002ABF3459A55BC144D2F8ABC0FFA9C,PinName="then",PinToolTip="\nExec",Direc
@xcloudx01
xcloudx01 / Blueprint.txt
Created April 2, 2018 01:11
Print with random color - UE4 Unreal Engine 4
Begin Object Class=/Script/BlueprintGraph.K2Node_FunctionEntry Name="K2Node_FunctionEntry_0"
ExtraFlags=201465856
SignatureName="PrintWithRandomColor"
bIsEditable=True
NodePosY=-32
NodeGuid=767E865D4C37337ED41DA4B5DB91987D
CustomProperties Pin (PinId=045603C146FC39900A2E2995E452ADEE,PinName="then",Direction="EGPD_Output",PinType.PinCategory="exec",PinType.PinSubCategory="",PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsArray=False,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,LinkedTo=(K2Node_CallFunction_0 8D017B1C4F4D47641528F19DC54796E6,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
CustomProperties Pin (PinId=1774104C4A99D7D30E983B9DC34D2302,PinName="String",Direction="EGPD_Output",PinType.PinCategory="string",PinType.PinSubCat
@xcloudx01
xcloudx01 / Blueprint.txt
Created April 2, 2018 01:06
Append Unique Function (UE4 Unreal Engine 4)
Begin Object Class=/Script/BlueprintGraph.K2Node_FunctionEntry Name="K2Node_FunctionEntry_1"
LocalVariables(0)=(VarName="Potential Actors",VarGuid=9BE80A904C54E304914ED587E5685C41,VarType=(PinCategory="object",PinSubCategoryObject=Class'"/Script/Engine.Actor"',ContainerType=Array),FriendlyName="Potential Actors",Category=NSLOCTEXT("KismetSchema", "Default", "Default"),PropertyFlags=2053,ReplicationCondition=(INVALID))
LocalVariables(1)=(VarName="OutputArray",VarGuid=C9DDA8534A135E2B5DD6B086C49AB256,VarType=(PinCategory="object",PinSubCategoryObject=Class'"/Script/Engine.Actor"',ContainerType=Array),FriendlyName="Output Array",Category=NSLOCTEXT("KismetSchema", "Default", "Default"),PropertyFlags=2053,ReplicationCondition=(INVALID))
ExtraFlags=201465856
SignatureName="AppendUnique"
bIsEditable=True
NodePosX=-176
NodePosY=-80
NodeGuid=9685C47841BEE7BD5ACD3BB8A2BBA535
CustomProperties Pin (PinId=A280928B40C7208B1083F889C341E51F,PinName="then",Direction="EGPD_Output",PinType.PinCategory
@xcloudx01
xcloudx01 / gist:1450b79770698008698ec9a7ca8297c2
Created December 11, 2017 02:33
AHK AutoHotKey - Detect 64bit edition of windows function
is64BitWindows(){ ;Returns if the current Windows version is 64 bit or not.
ifexist, C:\Program Files (x86) ;The (x86) dir only exists on 64bit editions of Windows.
return true
else
return false
}