Code: Select all
#NoEnv
SetWorkingDir D:\Downloads\AHK_SCRIPTS-master
CoordMode, Mouse, Screen
SendMode Input
#SingleInstance Force
SetTitleMatchMode 2
WinActivate ahk_exe XXXXXX.exe
MouseClickDrag, Left, 1850, 358, 355, 647
sleep 100
Esc:: ExitApp
ExitApp
So far whenever I run the script it activates the window that my game is running on but doesn't do anything else. Any command I put after the Winactivate doesn't seem to work. My idea was just to copy and paste the mouseclickdrag command 100 times to simplify the script for me but if anybody knows how to do a hotkey version where it will start the mouseclickdrag function when pressing ALT-P and keep doing it until i press ALT-Y, that would be even more amazing. Really appreciate the help.