Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6541257
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:04:57+00:00 2026-05-25T11:04:57+00:00

I am writing a script that will automatically click on the Waiting List button

  • 0

I am writing a script that will automatically click on the Waiting List button on the pokerstars lobby. I tried Click x,y and it works, but the problem with this is that if the focus switched from lobby to table, the raise/call button is clicked–DISASTER.

Looking for solutions, I found that ControlClick can do the job for me, but I can’t get the script to work. I read about the parameters needed for ControlClick to work, and using different combinations of the paramters that I found using WindowSpy, I can’t get the script to work.

Here are some of the lines I have already tried–

a::
SetControlDelay -1
ControlClick PokerStarsButtonClass34, PokerStars Lobby, Waiting List
return

a::
SetControlDelay -1
ControlClick x900 y65, Pokerstars Lobby, Waiting List
return

can you help me fix this–thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T11:04:57+00:00Added an answer on May 25, 2026 at 11:04 am

    First, I would try omitting the WinText parameter of your ControlClick 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.

    If you search the AHK forums, you will find that there are many threads of people complaining that ControlClick is not properly sending clicks to buttons or windows. So your problem is not unique.

    Now, afaik ControlClick is just a wrapper for sending WM_LBUTTONDOWN messages. But, in some cases, sending the messages directly actually does work, when ControlClick fails. In fact, this function is commonly used in AHK scripts designed for Pokerstars.

    PostLeftClick(x, y, hwnd) {
       PostMessage, 0x201, 0x0001, ((y<<16)^x), , ahk_id%hwnd%  ;WM_LBUTTONDOWN=0x201
       PostMessage, 0x202 , 0, ((y<<16)^x), , ahk_id%hwnd%      ;WM_LBUTTONUP=0x202
    }
    

    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 lobbyhwnd := WinExist("Pokerstars Lobby") and then pass lobbyhwnd as the third param to the above function.

    If it doesn’t work, I would suggest just using Click 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:

    a::
        WinActivate, Pokerstars Lobby
        Click x900, y65
    return
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently writing a script that will basically ‘install’ a codeigniter installation automatically.
I have a problem writing a script that will prevent default behavior of submit
I am writing a script that will look in a custom reports directory, copy
I'm writing a script that will ping my ip range. Here's what I have
I am writing a DB upgrade script that will check to see if an
I amm writing a little python script that will grab information from VMs of
I am writing a script at the moment that will grab certain information from
I'm writing a script and I need to create a loop that will execute
I'm writing a script that has to move some file around, but unfortunately it
I'm writing a script that will allow a user to input a string that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.