User:Blha303/AHK

From CeltxWiki

< User:Blha303Revision as of 10:02, 5 September 2011; view current revision
←Older revision | Newer revision→
#z::
Click 359,265
Click 359,440
Click 376,319
Send ^{Tab}
return

The top function is for the blocking page. It clicks on the dropdown list, selects infinite, then clicks on Block User.
The next two functions are for deleting pages. The first one clicks on Delete at the top of the page, then I can press Ctrl-Tab to go to the next tab with another page to delete. So it's like Win-x, Ctrl-tab, Win-x, Ctrl-tab. Oh yes, the hash symbol refers to the Win key. So #z is Win+z.
The last function is for the actual delete page. It just clicks on Confirm. I didn't put these last two under the same keystroke because I don't know if the internet might be feeling a bit sluggish so I separated them.
This might not work if the wiki is updated to the latest version of MediaWiki, but its easily adaptable. The coordinates refer to the active window, not the whole screen.
Now I think about it, it might not work on any computer other than this one. Easily adaptable with the AHK Window Spy, anyway.
Update 07:37, 3 September 2011 (PDT): confirmed to alter between computers. Updated the local copy on my laptop to work.
Update 03:02, 5 September 2011 (PDT): The delete hotkey isn't needed because I go click, ctrl-tab, click, ctrl-tab through the delete pages, which is faster than any hotkey. I also added a Ctrl-Tab to the end of the block hotkey. Also, I compiled the script into an exe. Here (on Dropbox)