Can anyone help me combine the script please?
its a 3 script that is almost identical but different hotkey and sleep
this are the codes
1st code
;Version 1.0
;First Release
#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.
AutoPot = off
XPos = 0
YPos = 0
PixelColor = 0
f6::
If AutoPot = off
{
AutoPot = on
MouseGetPos, XPos, YPos
PixelGetColor, PixelColor, %XPos%, %YPos%
SetTimer, AutoPot, 100
SoundPlay, %A_WinDir%\Media\Windows Ding.wav
} else If AutoPot = on
{
AutoPot = off
SetTimer, AutoPot, Off
SoundPlay, %A_WinDir%\Media\Windows Ding.wav
sleep 100
SoundPlay, %A_WinDir%\Media\Windows Ding.wav
}
return
AutoPot:
PixelGetColor, PixelColor2, %XPos%, %YPos%
If (PixelColor == PixelColor2)
{
;ToolTipDisplay("Matched" . PixelColor . " x" . PixelColor2)
} Else {
if WinActive("ahk_exe PathOfExile_x64.exe")
{
Send 1
sleep, 500
}
}
return
ToolTipDisplay(Message) {
ToolTip, %Message%
SetTimer, RemoveToolTip, 5000
return
}
RemoveToolTip:
SetTimer, RemoveToolTip, Off
ToolTip
return
2nd code
;Version 1.0
;First Release
#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.
AutoPot = off
XPos = 0
YPos = 0
PixelColor = 0
f7::
If AutoPot = off
{
AutoPot = on
MouseGetPos, XPos, YPos
PixelGetColor, PixelColor, %XPos%, %YPos%
SetTimer, AutoPot, 100
SoundPlay, %A_WinDir%\Media\Windows Ding.wav
} else If AutoPot = on
{
AutoPot = off
SetTimer, AutoPot, Off
SoundPlay, %A_WinDir%\Media\Windows Ding.wav
sleep 100
SoundPlay, %A_WinDir%\Media\Windows Ding.wav
}
return
AutoPot:
PixelGetColor, PixelColor2, %XPos%, %YPos%
If (PixelColor == PixelColor2)
{
;ToolTipDisplay("Matched" . PixelColor . " x" . PixelColor2)
} Else {
if WinActive("ahk_exe PathOfExile_x64.exe")
{
Send 5
sleep, 5000
}
}
return
ToolTipDisplay(Message) {
ToolTip, %Message%
SetTimer, RemoveToolTip, 5000
return
}
RemoveToolTip:
SetTimer, RemoveToolTip, Off
ToolTip
return
3rd code
;Version 1.0
;First Release
#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.
AutoPot = off
XPos = 0
YPos = 0
PixelColor = 0
f8::
If AutoPot = off
{
AutoPot = on
MouseGetPos, XPos, YPos
PixelGetColor, PixelColor, %XPos%, %YPos%
SetTimer, AutoPot, 100
SoundPlay, %A_WinDir%\Media\Windows Ding.wav
} else If AutoPot = on
{
AutoPot = off
SetTimer, AutoPot, Off
SoundPlay, %A_WinDir%\Media\Windows Ding.wav
sleep 100
SoundPlay, %A_WinDir%\Media\Windows Ding.wav
}
return
AutoPot:
PixelGetColor, PixelColor2, %XPos%, %YPos%
If (PixelColor == PixelColor2)
{
;ToolTipDisplay("Matched" . PixelColor . " x" . PixelColor2)
} Else {
if WinActive("ahk_exe PathOfExile_x64.exe")
{
Send T
sleep, 500
}
}
return
ToolTipDisplay(Message) {
ToolTip, %Message%
SetTimer, RemoveToolTip, 5000
return
}
RemoveToolTip:
SetTimer, RemoveToolTip, Off
ToolTip
return
I tried putting them in 1 ahk file but it seems its not working properly, when i separated them in different ahk file, they work perfectly
can anyone combine 3 of them codes please?
help me combine my multiple scripts for my game
Re: help me combine my multiple scripts for my game
anyone? please?
Who is online
Users browsing this forum: Google [Bot] and 52 guests