Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>First, I would try omitting the WinText parameter of your <code>ControlClick</code> calls (that means removing the trailing ", Waiting List") because I'm not sure if the Stars Lobby actually has that text as part of its text visible via the window spy. The WinTitle should be enough.</p> <p>If you search the AHK forums, you will find that there are many threads of people complaining that <code>ControlClick</code> is not properly sending clicks to buttons or windows. So your problem is not unique. </p> <p>Now, afaik <code>ControlClick</code> is just a wrapper for sending <code>WM_LBUTTONDOWN</code> messages. But, in <em>some</em> cases, sending the messages directly actually does work, when <code>ControlClick</code> fails. In fact, this function is commonly used in AHK scripts designed for Pokerstars.</p> <pre><code>PostLeftClick(x, y, hwnd) { PostMessage, 0x201, 0x0001, ((y&lt;&lt;16)^x), , ahk_id%hwnd% ;WM_LBUTTONDOWN=0x201 PostMessage, 0x202 , 0, ((y&lt;&lt;16)^x), , ahk_id%hwnd% ;WM_LBUTTONUP=0x202 } </code></pre> <p>So you can try the above function and see if it works. You'll need to get the handle of the lobby first, with something like <code>lobbyhwnd := WinExist("Pokerstars Lobby")</code> and then pass <code>lobbyhwnd</code> as the third param to the above function.</p> <p>If it doesn't work, I would suggest just using <code>Click</code> normally, but explicitly activating the lobby before sending the click, that way you can be certain that the click gets sent to the correct window. For example:</p> <pre><code>a:: WinActivate, Pokerstars Lobby Click x900, y65 return </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload