middleclick(simulates middle-button click doubleclick(simulates double left-button click mousedown(xybuttonsimulates pressing down the given button at the position xy mouseup(xybuttonsimulates releasing the given button at the position xy scroll(unitssimulates the scroll wheel positive argument scrolls upa negative argument scrolls down write(messagetypes the characters in the given message string write([key key key ]types the given keyboard key strings press(keypresses the given keyboard key string keydown(keysimulates pressing down the given keyboard key keyup(keysimulates releasing the given keyboard key hotkey([key key key ]simulates pressing the given keyboard key strings down in order and then releasing them in reverse order screenshot(returns screenshot as an image object (see for information on image objects getactivewindow()getallwindows()getwindowsat()and getwindowswithtitle(these functions return window objects that can resize and reposition application windows on the desktop getalltitles(returns list of strings of the title bar text of every window on the desktop rightclick( tch nd compu te thics "completely automated public turing test to tell computers and humans apartor "captchasare those small tests that ask you to type the letters in distorted picture or click on photos of fire hydrants these are tests that are easyif annoyingfor humans to pass but nearly impossible for software to solve after reading this you can see how easy it is to write script that couldsaysign up for billions of free email accounts or flood users with harassing messages captchas mitigate this by requiring step that only human can pass however not all websites implement captchasand these can be vulnerable to abuse by unethical programmers learning to code is powerful and exciting skilland you may be tempted to misuse this power for personal gain or even just to show off but just as an unlocked door isn' justification for trespassthe responsibility for your programs falls upon youthe programmer there is nothing clever about circumventing systems to cause harminvade privacyor gain unfair advantage hope that my efforts in writing this book enable you to become your most productive selfrather than mercenary one