nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpq9jf28dqacda4mu5974kqk76p0mlmj2y6fdl0xhda55tvxakvl56sez9qjf (nprofile…9qjf) On the Macintosh I used to do things like this... a menace w/ a web browser!
sleep $(( ( RANDOM % 5 ) + 8 ))
./click -x 600 -y 560
echo $i
sleep $(( ( RANDOM % 3 ) + 3 ))
for...
// gcc -o click click.m -framework ApplicationServices -framework Foundation
int main(int argc, char *argv[]) {
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
NSUserDefaults *args = [NSUserDefaults standardUserDefaults];
int x = [args integerForKey:@"x"];
int y = [args integerForKey:@"y"];
CGPoint pt;
pt.x = x;
pt.y = y;
CGPostMouseEvent( pt, 1, 1, 1 );
CGPostMouseEvent( pt, 1, 1, 0 );
[pool release];
return 0;
}
A horrible hack but very fast to put together for repetitive web tasks.