View Single Post
  #4  
Old 11-18-2007, 10:56 PM
_dave_ _dave_ is offline
Senior Member
 
Join Date: Feb 2005
Location: UK
Posts: 2,628
Default Re: AHK-Script I want (easy if possible)

OK, this is free-form off the top of my head (poker/scripting computer is off, i'm about to sleep). There may be errors [img]/images/graemlins/frown.gif[/img]

I am presuming Click actually moves the mouse too - I think it does, can't remember. If not, will need mousemoves also.

<font class="small">Code:</font><hr /><pre>
#NoEnv
SendMode, Input
Coordmode, Mouse, Screen

NumPad1::
MouseGetPos, x, y

if (x = 0 &amp;&amp; y = 0)
{
click, 330, 240
}
else if (x = 320 &amp;&amp; y = 240)
{
click, 830, 240
}
else if (x = 820 &amp;&amp; y = 240)
{
click, 1330, 240
}
else if (x = 1330 &amp;&amp; y = 240)
{
click, 320, 240
}
return
</pre><hr />

I added a clause to move to table1 if mouse is 0,0 - I figured it is much easier to position the mouse there than anywhere else - and it is incredibly difficult to hit certain x/y coordinates with the mouse, so witout a clause to start things off it would never do anything unless you were very lucky with positioning [img]/images/graemlins/smile.gif[/img]

Are you playing only 3 tables? or planning to add additional clauses for more? if only 3, one can pretty much ignore the Y pos (it is always 240) - but I left it in there since I guess you will be editing for more [img]/images/graemlins/smile.gif[/img]

dave.
Reply With Quote