----------------------TOOLTIP----------------------
With this Script you can get the HexCode from every Color, it`s usefull if you use ImageSearch. And you can freeze the Color with the MButton
Code: Select all
#Persistent
CoordMode Pixel, Screen
CoordMode Mouse, Screen
SetTimer, WatchCursor, 100
return
WatchCursor:
MouseGetPos X, Y
PixelGetColor Color, %X%, %Y%, RGB
ToolTip, %Color%
MButton::
Pause
Code: Select all
CoordMode, Mouse, Screen
SetTimer, Check, 20
return
Check:
MouseGetPos, xx, yy
Tooltip %xx%`, %yy%
return
MButton::Pause
Esc::ExitApp
----------------------TOGGLE----------------------
If you want press a Key and spam a key or something pick this Script.
Code: Select all
#MaxThreadsperHotkey 2
f:: ;Here can you change the "F" with every key you want to start the Script.
toggle := !Toggle
loop
{
if toggle
{
;Start Here ;And here you make what you want to, Send or something.
}
else
break
}
return
And if you want a Toggle Script with Variables take this Script.
Code: Select all
~MButton:: ;Here can you change the "MButton" with every key you want to start the Script.
If ToggleVar
{
ToggleVar := 0
} Else {
ToggleVar := 1
SetTimer, StartLoop, -1
}
Return
StartLoop:
While ToggleVar
{
;Start Here ;And here you make what you want to, Send or something.
}
Return
Code: Select all
F1:: ;Here can you change the "F1" with every key you want to Pause the Script.
Suspend, Permit
SusToggle := !SusToggle
If (SusToggle)
{ Suspend, On
}
Else
{ Suspend Off
}
Return
And at last a little bit tricky Code.
If you want to make your Script faster take this code and just Copy and Paste into your Script.
Code: Select all
SetBatchLines, -1
Code: Select all
#MaxThreads 1 ;You can change the "1" to whatever you want, i set it to 1 it said the Script just can be 1 time open.
And for this People they want if they press a Key it start the Script take this Codes ! ;)
First this, you press a Key and the Script start.
Code: Select all
KeyWait, (KeyName), (Options)
keyName := Which key you want to press to start the Script ?
Options :=
D, Wait till the Key get pressed.
L, The Game or programm think you pressed the Key
T, How long the Script wait untill its Start.
Code: Select all
KeyWait, Q, D ;The Script wait when the Key "Q" get pressed it send "Tab".
Send, {Tab}
return
Or alternative of Keywait is this ;)
RButton:: ;Here can you change the "RButton" with every key you want to start the Script.
While GetKeyState("RButton", "P"){ ; And here you write what you write first, by me was it the RButton and let the P!!!!!
;Start here. ; And here you Copy and Paste your Script.
}
return
And finally at last, if you want move your mouse up, down or something take this !;=)
----------------------------MouseMove---------------------------
Code: Select all
MouseMove, 20, 30, 50, R
20 := If you make +20 the Mouse move right
20 := If you make -20 the Mouse move left
30 := If you make +30 the Mouse move down
30 := If you make -30 the Mouse move up
50 := 1 = [b]VERY FAST[/b] 100 = [b]VERY SLOW[/b]
And at the end of the Script a "R"
I using Ahk a long time just for Games or Tools and this Codes enough me full.
Its my Privat Libary of Scripts, its all selfmade ! So please do not post it in other forums and if you really want to post it said it me please have fun ;)