autohotkey - ahk controlclick pokerstars waiting list -


I am writing a script that will automatically click the Waiting List button on the PokerStart lobby. I have tried X, Y click and it works, but with this problem, if the focus is switched from the lobby to the table, the raise / call button is clicked - Disaster.

Looking for the solution, I found that ControlClick can work for me, but I can not get the script to work. I read about working on ControlClick, and I'm using all the parameters that I've found using WindowSpy, I can not make the script work.

Here are a few lines I've already tried - -

  a :: SetControlDelay-1 ControlClick PokerStarsButtonClass34, PokerStart Lobby, Waiting List A Return :: SetControlDelay -1 ControlClick x900 y65, pokerstar lobby, waiting list return   

Can you help me fix it - thank you

First of all, I want WinText parameter to remove your ControlClick calls (which means the following is to remove the" wait list " B) because I'm not sure that in the stars lobby is actually the text that appears through the window reader as part of that lesson. WinTitle should be enough.

If you search for AHK forums, you will know that people are not sending clicks to the ControlClick buttons or windows, there are many sources of complaining people . Your problem is not unique

Now, afaik ControlClick is only a wrapper for sending a message to WM_LBUTTONDOWN . However, in some cases, the message works by direct sending, when ControlClick fails. In fact, this function is commonly used in the AHK scripts designed for pokerstars.

  PostLeftClick (x, y, hwnd) {post message, 0x201, 0x0001, ((  

Then you can see the above work and see if it works. You must first obtain the operation of the lobby in the form of the third ultimate in the form of lobwind: = WinExist ("Pokerstar lobby") and again lobwind pass. Above the function

If this does not work, I usually recommend using click , but I'm actively activating the lobby before sending clicks In this way, you can ensure that the click is sent to the correct window, for example:

  a :: WinActivate, Pokerstar lobby X 900, click on y65 Return    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -