Tlachtli
2012-05-13 15:26:57
I had this idea while I was doing some legit Agility training. When I'm grinding I tend to play some of my favorite tracks from the built-in music playlist, and thought that could make an interesting antiban procedure. It's not something I've ever seen as antiban in a script, but it's exactly the kind of thing a bored human would do and wouldn't interrupt most scripts. Obviously, a prerequisite for this to work would be to have tracks actually added to the playlist. I haven't written any code for this idea yet, but in psudocode it would be something to the effect of:
(*) I noticed that the current track playing on the playlist is displayed with yellow text, while the rest of the playlist tracks have blue/cyan text. This could be a good way to be sure to find a track that isn't currently playing.
Alternatively, each track on the playlist has a red minus icon next to it, so finding that and moving the mouse to the right would locate it as well (although that method would include the currently playing track).
If you didn't want to restrict it to just music added to a playlist, it shouldn't be too hard to make a variation of this that will randomly scroll down the list of all music tracks, find a green one, and click it.
procedure ChangePlaylistTrack
if not on music tab then
switch to music tab
if not on playlist then
find playlist DTM/bitmap
wait
click
find track not currently playing (*)
wait
click track not currently playing
wait
if not on inventory tab then
click inventory tab
(*) I noticed that the current track playing on the playlist is displayed with yellow text, while the rest of the playlist tracks have blue/cyan text. This could be a good way to be sure to find a track that isn't currently playing.
Alternatively, each track on the playlist has a red minus icon next to it, so finding that and moving the mouse to the right would locate it as well (although that method would include the currently playing track).
If you didn't want to restrict it to just music added to a playlist, it shouldn't be too hard to make a variation of this that will randomly scroll down the list of all music tracks, find a green one, and click it.