username1001101 11 Report post Posted April 29, 2014 (edited) Hmmm, I'm one who collects all scrolls and stuff and then uptrade those at Clarissa for Jewellers/Fusings/... However always mouse clicking is annyoing and I though it would be good if I could use AHK to automate that. Below is a code fragement that will repeatedly press the left mouse button upon pressing F7 key and it will stop pressing the lmb upon pressing F7 again (or at least it should in theory). #MaxThreadsperHotkey 2 F7:: toggle := !toggle loop { if toggle { Sleep 50 Send, {Control down} MouseClick, left Send, {Control up} } else { TrayTip , Uptrading, Stopped Uptrading, 2 Break } } return So, I tested it now and it works Made a little update. When you press F7 for the second time you'll get a small balloon tip that tells you so. That's important to know if the stopping actually worked. Also reduced delay from 100ms to 50ms. Edited May 28, 2014 by username1001101 2 Quote Share this post Link to post Share on other sites
username1001101 11 Report post Posted May 19, 2014 nobody likes this? Quote Share this post Link to post Share on other sites