Basically what I want to do is make things automated in my game, diablo 2. The game has a 2 hour “perming” thing for all new characters. What I want to do is to make a script that clicks on the screen causing the character to move. If a character is standin still for too long, he drops, so I want to write a script that just clicks between to pts on the screen, causing the character to move back and forth.
Currently I have installed the Scripting Additions that allows me to click on the screen. This works well in the finder, safari, and pretty much any other app I tried. But when tested in the game, the game does respond.
on idle
tell application "System Events"
tell process "Diablo II (Carbon)"
set frontmost to true
mouse click {500, 393} -- + i}
delay 1
mouse click {524, 393}
end tell
end tell
end idle
This is what I have so far, but Diablo does not respond. Any help is appreciated.