Jump to content

Join our Slack

Talk to other users and have a great time
Slack Server

Welcome to our Community

Click here to get your Exiled Bot license
Donation Store

Recommended Posts

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 by username1001101
  • Upvote 2

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...