Code: Select all
#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.
^0::
NewList := Object(0,"a",1,"b",2,"c")
x := 0
y := 0
MouseGetPos, x, y
ToolTip Mouse Position is %x% and %y%
;ToolTip %clipboard%
clipboard := x " " y
;TempVar := NewList.MaxIndex()
;ToolTip %TempVar%
Sleep 2000
ToolTip
return
FunctionSelection := 0
DC(clicks, x, y, sleeptime)
;Where clicks are the times to click, x and y are coordinates, sleep time is the delay between clicks, and in place, an optional parameter, is if we are clicking where the mouse is or the set coordinates
{
ToolTip Is %FunctionSelection%
if FunctionSelection = 1
;Bypass for if you start it accidentally, you can swap off
{
}
else
{
temp := 0
while temp < clicks
{
temp += 1
MouseClick, Left, x, y
Sleep sleeptime
}
}
}
^p::
FunctionSelection += 1
if (FunctionSelection >= 2)
FunctionSelection := 0
if FunctionSelection = 0
{
ToolTip Function 0 active
Sleep 1000
ToolTip
}
if FunctionSelection = 1
{
ToolTip Function 1 active
Sleep 1000
ToolTip
}
;ToolTip Number %FunctionSelection%
return
^o::
DC(1,100,100,50)
return