Jump to content
AC Tool Forums
  • Sign Up
Sign in to follow this  
Annunaki

[Help] RightClick Function

Recommended Posts

Hey guys

Been lingering around for years but never actually made a forum account (my bad?)...

Anyway have recently been creating a script for a game I'm playing (Supreme Destiny) and everything is going well apart form a couple of niggles with some functions.

I am trying to RightClick an item but that function doesn't seem to be working however the LeftClick function works perfect, So at the moment to achieve a RightClick I have to use the following:

Procedure SpamRightClick every 0.5 sec
  if $RightClicker = 1
    SetActiveWindow Supreme Destiny
    delay 100
    RightMouseDown
    delay 100
    RightMouseUp
  end
end

 

Ideally to save lines and CPU time (as this is just 1 small function of my large script which has many more right click functions), I would like to be able to just use the following:
 

Procedure SpamRightClick every 0.5 sec
  if $RightClicker = 1
    SetActiveWindow Supreme Destiny
    delay 100
    RightClick
  end
end

 

Any help or guidance is highly appreciated.

Share this post


Link to post
Share on other sites

I was having same kind of problem in EnB. Found out I could add

MouseClickDelay 100 // 100 is time. Lower or higher in milliseconds

Procedure SpamRightClick every 0.5 sec

if $RightClicker = 1

SetActiveWindow Supreme Destiny

delay 100

RightClick

end

end

 

The mouse delay allowed me to stop using mousedown and up.

Hope that helps.

Share this post


Link to post
Share on other sites
17 hours ago, Ego said:

I was having same kind of problem in EnB. Found out I could add

MouseClickDelay 100 // 100 is time. Lower or higher in milliseconds

Procedure SpamRightClick every 0.5 sec

if $RightClicker = 1

SetActiveWindow Supreme Destiny

delay 100

RightClick

end

end

 

The mouse delay allowed me to stop using mousedown and up.

Hope that helps.

Excellent that did the trick many thanks!

Now just wondering why this is not documented in the help files.

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.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and to our Privacy Policy.