remix this AHK script ... in such a way that it works similar to the provided script ..…
- User
remix this AHK script ... in such a way that it works similar to the provided script .. just a remix or you can say just shuffle it up ...."#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 SoundBeep, 300, 200
key_exit := "End"
key_hold := "XButton2"
pixel_box := 3 pixel_sens := 60
leftbound := A_ScreenWidth / 2 - pixel_box rightbound := A_ScreenWidth / 2 + pixel_box topbound := A_ScreenHeight / 2 - pixel_box bottombound := A_ScreenHeight / 2 + pixel_box
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui, Add, Tab2, x5 y5 w400 h200, Home|Color|Config Gui, Tab, Home Gui, Add, Text, x10 y30 w200 h20, Made By: Sunoki Gui, Add, Button, w100 h50 gStartSearch x10 y70, Start Gui, Tab, Color Gui, Add, Button, w100 h50 gSetRedColor x10 y30, Red Gui, Add, Button, w100 h50 gSetPurpleColor x120 y30, Purple Gui, Add, Button, w100 h50 gSetYellowColor x230 y30, Yellow Gui, Tab, Config Gui, Add, Button, w100 h50 gSaveSettings x10 y30, Hide Gui, Show
hotkey, %key_exit%, terminate return
start:
terminate: Sleep 400 exitapp return
StartSearch: settimer, loop2, 20 return
loop2: While GetKeyState(key_hold, "P"){ PixelSearch() } return
SetRedColor: pixel_color := 0xFE636A return
SetPurpleColor: pixel_color := 0xEB69FE return
SetYellowColor: pixel_color := 0xFFFF55 return
SaveSettings: Gui, Submit IniWrite, %pixel_color%, Settings.ini, Settings, PixelColor IniWrite, %pixel_sens%, Settings.ini, Settings, PixelSensitivity GuiControl,, SaveStatus, Settings saved. Sleep 1000 GuiControl,, SaveStatus, return
LoadSettings: IniRead, pixel_color, Settings.ini, Settings, PixelColor IniRead, pixel_sens, Settings.ini, Settings, PixelSensitivity GuiControl,, PixelSensitivity, %pixel_sens% GuiControl,, SaveStatus, Settings loaded. Sleep 1000 GuiControl,, SaveStatus, return
HideGui: Gui, 2:Hide return
#IfWinActive ahk_exe autohotkey.exe F4:: Gui, 2:Show Gui, 2:Tab, Home return #If
PixelSearch() { global PixelSearch, FoundX, FoundY, leftbound, topbound, rightbound, bottombound, pixel_color, pixel_sens, Fast RGB If !(ErrorLevel) { If !GetKeyState("LButton") { ClickPixel() sleep 100 } } return }
ClickPixel() { SendInput, {Click} }"
- Assistant