0% found this document useful (0 votes)
180 views2 pages

UptoDate Pandx - Ahk

This AutoHotkey script defines hotkeys and settings for a pixel scanning script. It sets hotkeys for toggling the scan mode and exiting the script. Settings are defined for the pixel scanning box size and color sensitivity. Boundaries are set for the scanning area within the screen. When the hold key is pressed it will continuously scan the defined area and click when the target pixel is found, sleeping between clicks.

Uploaded by

44t6y5b6xr
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
180 views2 pages

UptoDate Pandx - Ahk

This AutoHotkey script defines hotkeys and settings for a pixel scanning script. It sets hotkeys for toggling the scan mode and exiting the script. Settings are defined for the pixel scanning box size and color sensitivity. Boundaries are set for the scanning area within the screen. When the hold key is pressed it will continuously scan the defined area and click when the target pixel is found, sleeping between clicks.

Uploaded by

44t6y5b6xr
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

#NoEnv

#Persistent
#MaxThreadsPerHotkey 2
#KeyHistory 0
ListLines Off
SetBatchLines, -1
SetKeyDelay, -1, -1
SetMouseDelay, -1
SetDefaultMouseSpeed, 0
SetWinDelay, -1
SetControlDelay, -1
SendMode Input
CoordMode, Pixel, Screen

;HOTKEYS
key_hold_mode := "alt" ; scan will only scan if "key_hold" is pressed
key_exit := "End" ; self explanatory
key_hold := "XButton2" ; key that you hold to scan (example "T")

;SETTINGS
global pixel_box := 3 ; Keep between min 3 and max 8
global pixel_sens := 60 ; higher/lower = more/less color sensitive
global pixel_color := 0xFFFF55 ; yellow="0xFEFE40", purple="0xA145A3"
global tap_time := 60 ; Delay in ms between shots when triggered

leftbound := A_ScreenWidth / 2 - pixel_box


rightbound := A_ScreenWidth / 2 + pixel_box
topbound := A_ScreenHeight / 2 - pixel_box
bottombound := A_ScreenHeight / 2 + pixel_box

hotkey, %key_hold_mode%, holdmode_on


hotkey, %key_exit%, terminate
return

start:
;เพิ่มคำสั่ง beep เมื่อเปิดโปรแกรม
SoundBeep, 500, 1000
return

terminate:
SoundPlay off
;เพิ่มคำสั่ง beep เมื่อปิดโปรแกรม
SoundBeep, 500, 500
Sleep 400
exitapp
return

holdmode_on:
;เพิ่มคำสั่ง beep เมื่อกดปุ่ม home
SoundPlay, C:\Windows\Media\chimes.wav
settimer, loop2, 1
return

loop2:
While GetKeyState(key_hold, "P"){
PixelSearch()
Sleep 1 ; เพิ่มการหน่วงเพื่อลดการใช้งาน CPU
}
return
PixelSearch() {
global pixel_box, pixel_sens, pixel_color, tap_time
global FoundX, FoundY, leftbound, topbound, rightbound, bottombound
PixelSearch, FoundX, FoundY, leftbound, topbound, rightbound, bottombound,
pixel_color, pixel_sens, Fast RGB
If !(ErrorLevel)
{
If !GetKeyState("LButton")
{
click
sleep %tap_time%
}
}
return
}

You might also like