Jump to content

Controlclick without id


Recommended Posts

Hello!

I wrote script which simulates mouse clicks. First it right click in one particular place, then it left click in one of many points. I achieved that with Mouseclick() and it works fine. But now i want script to work in "background" so i used Controlclick() function. But there's no control ID. This is what i tried to do:

$square = Floor(Random(0,$length)) ;this one gets length of array with coordinates

;MouseClick("right", 1634,195 ,1,1) first version-works fine

ControlClick("Medivia","", "", "right",1,1634,195)

;MouseClick("left", $cordX[$square], $cordY[$square]) first version-works fine

ControlClick("Medivia","", "", "right",1 ,$cordX[$square] ,$cordY[$square])

It partly works... script clicks, but only in the place where i leave the mouse pointer,  it does not move mouse pointer at all.

Could anybody help me?

Link to comment
Share on other sites

  • Moderators

I feared as much. You seem to have missed the forum rules on your way in. Please read them now, specifically the section on game automation, and you will see why this thread is closed. You will not receive help on this subject here.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...