Open Side Menu Go to the Top
Register
FullTilt AHK scripts after Update (idea to solve please help) - Collected Threads Edition FullTilt AHK scripts after Update (idea to solve please help) - Collected Threads Edition

07-10-2009 , 06:11 PM
Quote:
Originally Posted by BeaucoupFish
I thought they just switched to server-side table scanning.
And that is what the server-side scanner uses

BTW, client side scanning has been fixed too.
FullTilt AHK scripts after Update (idea to solve please help) - Collected Threads Edition Quote
07-10-2009 , 06:16 PM
Quote:
Originally Posted by mathrawka
They use OCR, so it is painfully slow.

I have a working test that I made that gets valid QWidget pointers to the controls so I can use the Qt API in my applications to access them. Not sure if anyone is interested in the details though.

Yes i'm very interested! As much information as possible ^^.
FullTilt AHK scripts after Update (idea to solve please help) - Collected Threads Edition Quote
07-10-2009 , 06:21 PM
The amount of money I'd pay for betpot working on ftp is mind boggling.
FullTilt AHK scripts after Update (idea to solve please help) - Collected Threads Edition Quote
07-10-2009 , 06:33 PM
Quote:
Originally Posted by tarfu
Yes i'm very interested! As much information as possible ^^.
Set an environment variable called QT_USE_NATIVE_WINDOWS to 1. Then start the FTP client. You can then use Spy++/Winspector as normal.

To get pointers to the objects, you need to inject a DLL into the FTP client. You can then use FindWindow to get the HWND. Then use QWidget::find(HWND), and that gets you the QWidget pointer. Then cast it to to the proper Qt control type, and call functions like normal.

If they have custom controls, then you may be screwed
FullTilt AHK scripts after Update (idea to solve please help) - Collected Threads Edition Quote
07-10-2009 , 06:34 PM
Quote:
Originally Posted by Adam Monroe
The amount of money I'd pay for betpot working on ftp is mind boggling.
I'd have to make it from scratch and am sure someone would beat me to it. So no point in me trying to make this.
FullTilt AHK scripts after Update (idea to solve please help) - Collected Threads Edition Quote
07-10-2009 , 07:21 PM
Quote:
Originally Posted by mathrawka
Set an environment variable called QT_USE_NATIVE_WINDOWS to 1. Then start the FTP client. You can then use Spy++/Winspector as normal.

To get pointers to the objects, you need to inject a DLL into the FTP client. You can then use FindWindow to get the HWND. Then use QWidget::find(HWND), and that gets you the QWidget pointer. Then cast it to to the proper Qt control type, and call functions like normal.

If they have custom controls, then you may be screwed
Woah, that's interesting.

I don't see a control name for the Time button on the table though??


QWidget25 Pre-Check
QWidget26 Pre Check/Fold

QWidget30 Raise
QWidget31 Call
QWidget32 Fold

QWidget40 Bet amount
QWidget41 Bet Slider
QWidget42 Bet Max
QWidget43 Bet Pot
QWidget44 Bet Min

QWidget50 Table ??
QWidget51 Table ??

No Time Button

Last edited by BeaucoupFish; 07-10-2009 at 07:36 PM.
FullTilt AHK scripts after Update (idea to solve please help) - Collected Threads Edition Quote
07-10-2009 , 07:31 PM
Quote:
Originally Posted by BeaucoupFish
Woah, that's interesting.

I don't see a control name for the Time button on the table though??
Yeah there is no control name for the timebank


QWidget52 is table too

Last edited by tarfu; 07-10-2009 at 07:42 PM.
FullTilt AHK scripts after Update (idea to solve please help) - Collected Threads Edition Quote
07-10-2009 , 07:41 PM
Quote:
Originally Posted by BeaucoupFish
Woah, that's interesting.

I don't see a control name for the Time button on the table though??


QWidget25 Pre-Check
QWidget26 Pre Check/Fold

QWidget30 Raise
QWidget31 Call
QWidget32 Fold

QWidget40 Bet amount
QWidget41 Bet Slider
QWidget42 Bet Max
QWidget43 Bet Pot
QWidget44 Bet Min

QWidget50 Table ??
QWidget51 Table ??

No Time Button
To push buttons, it would be easier to send mouse clicks to certain positions based on the size of the table.
FullTilt AHK scripts after Update (idea to solve please help) - Collected Threads Edition Quote
07-10-2009 , 07:51 PM
Oh wow tyty mathrawka
FullTilt AHK scripts after Update (idea to solve please help) - Collected Threads Edition Quote
07-10-2009 , 07:55 PM
I don't really agree with that, tbh. Unlikely as it may be, buttons might get moved or switched around (they did somewhere on the Mac version?), and it relies on the position / table size being completely proportional (even tho it might be).

Also, some buttons appear in the exact same position on the table as others.
FullTilt AHK scripts after Update (idea to solve please help) - Collected Threads Edition Quote
07-10-2009 , 07:56 PM
Quote:
Originally Posted by _dave_
Oh wow tyty mathrawka
If you have any ideas / breakthroughs re: Time button, I'd like to hear about it
FullTilt AHK scripts after Update (idea to solve please help) - Collected Threads Edition Quote
07-10-2009 , 08:13 PM
Quote:
Originally Posted by BeaucoupFish
I don't really agree with that, tbh. Unlikely as it may be, buttons might get moved or switched around (they did somewhere on the Mac version?), and it relies on the position / table size being completely proportional (even tho it might be).

Also, some buttons appear in the exact same position on the table as others.
Well, it is not a window it seems. So you have to click by position and position only. Sorry you don't agree with that. The time button hasn't been adjusted in awhile, so it should be fine. Worse case, scripts need an update if it gets moved.
FullTilt AHK scripts after Update (idea to solve please help) - Collected Threads Edition Quote
07-10-2009 , 08:18 PM
You have to test for it if the button is there (maybe possible without large performance reduction with the help of scanning a pixelcolor)

If scanning the user have to save the color of the none button and if it changes voila the button should be there and get clicked
FullTilt AHK scripts after Update (idea to solve please help) - Collected Threads Edition Quote
07-10-2009 , 08:23 PM
Quote:
Originally Posted by mathrawka
Well, it is not a window it seems. So you have to click by position and position only. Sorry you don't agree with that. The time button hasn't been adjusted in awhile, so it should be fine. Worse case, scripts need an update if it gets moved.
Sorry, I don't follow. I just tried using AHK's ControlClick with one of the widget ids, and it worked correctly. ofc you could just do a mouseclick in a specific part of the window, but that is under less control (imo). It might be the only way to deal with the timebank though, if this button does not expose a widget / control.
FullTilt AHK scripts after Update (idea to solve please help) - Collected Threads Edition Quote
07-10-2009 , 08:31 PM
Quote:
Originally Posted by BeaucoupFish
Sorry, I don't follow. I just tried using AHK's ControlClick with one of the widget ids, and it worked correctly. ofc you could just do a mouseclick in a specific part of the window, but that is under less control (imo). It might be the only way to deal with the timebank though, if this button does not expose a widget / control.
This button is not really a button. I'm not sure how they made it like this, but it appears to be different. If you are unable to get the HWND to this control, then you can't automatically click it by ID (it won't have an ID).

I wasted 50 cents playing around at 2NL to see about this time button We need to make our own table so we don't lose money while testing stuff out.
FullTilt AHK scripts after Update (idea to solve please help) - Collected Threads Edition Quote
07-10-2009 , 08:33 PM
Quote:
Originally Posted by mathrawka
I'd have to make it from scratch and am sure someone would beat me to it. So no point in me trying to make this.
From the looks of it I dont think thats going to be the case.
FullTilt AHK scripts after Update (idea to solve please help) - Collected Threads Edition Quote
07-10-2009 , 08:38 PM
Quote:
Originally Posted by Thrahl
From the looks of it I dont think thats going to be the case.
Honestly, I don't know what kind of things these programs do. Tell me what functionallity is gone and I might consider whipping together a quick application. (I don't do AHK scripts).

What I have been doing is developing a new application over the past 3 months. I contacted FTP and made sure it would be an acceptable software and started building the homepage for it even. I was planning on starting to sell it this month, but this update has me starting from scratch. So I'm a bit fustrated now.
FullTilt AHK scripts after Update (idea to solve please help) - Collected Threads Edition Quote
07-10-2009 , 08:41 PM
The table seams to be structed in HTML (memory dump looks like this)
I think the timebutton is no button .... its only an image on the table.
I think over the mousebutton is an area QT looks for mouse action.
FullTilt AHK scripts after Update (idea to solve please help) - Collected Threads Edition Quote
07-10-2009 , 08:42 PM
Where are you guys seeing the QWidget with a number after it? I am now able to see specific controls using the Env Variable change but it always says class = QWidget.
FullTilt AHK scripts after Update (idea to solve please help) - Collected Threads Edition Quote
07-10-2009 , 08:45 PM
The Autoit3 spy says that to me .... WinID is not showing me this info.
FullTilt AHK scripts after Update (idea to solve please help) - Collected Threads Edition Quote
07-10-2009 , 08:46 PM
Quote:
Originally Posted by mathrawka
This button is not really a button. I'm not sure how they made it like this, but it appears to be different. If you are unable to get the HWND to this control, then you can't automatically click it by ID (it won't have an ID).

I wasted 50 cents playing around at 2NL to see about this time button We need to make our own table so we don't lose money while testing stuff out.
AHK recognises them as controls after setting the environment variable you posted (I don't know how). The AHK command "ControlClick" works when you supply the widget's id (as determined using Window Spy).

Whether AHK is getting, or spoofing a handle, or QT generates or spoofs one when you set the environment var, I don't know - but it is doing something to recognise the buttons, even if they are not exactly the same buttons as they were previously.

I won about 0.10 while looking at the µ-tables

Also, what was the app you were building?
FullTilt AHK scripts after Update (idea to solve please help) - Collected Threads Edition Quote
07-10-2009 , 08:48 PM
Quote:
Originally Posted by N 82 50 24
Where are you guys seeing the QWidget with a number after it? I am now able to see specific controls using the Env Variable change but it always says class = QWidget.
Did you set the environment variable (see above)?
FullTilt AHK scripts after Update (idea to solve please help) - Collected Threads Edition Quote
07-10-2009 , 08:50 PM
Quote:
Originally Posted by Thrahl
From the looks of it I dont think thats going to be the case.
Actually I think mathrawka's post above is a major breakthrough (awesome btw!), but the number one requested feature to fix first is auto-clicking timebank.
FullTilt AHK scripts after Update (idea to solve please help) - Collected Threads Edition Quote
07-10-2009 , 09:00 PM
Quote:
Originally Posted by BeaucoupFish
Did you set the environment variable (see above)?
Yea I did. I think my problem is that I'm using Winspector not the AHK spy tool. I'll try the AHK one.
FullTilt AHK scripts after Update (idea to solve please help) - Collected Threads Edition Quote
07-10-2009 , 09:02 PM
Meh I'm finding controlclick to be most unreliable (slooow) on these Qwidgets, and I'm back to using postmesages. Controlget, v, Visible is sure a handy thing to have back again I'll likely have BetPot AHK back in full functionality by tomorrow thanks to this discovery.

An auto-timer script shouldn't be too hard, I'm thinking do this:

SetTimer checking all tables every 2 seconds? for visibility of a fold button (if so we can assume it's our turn)

If we spot one wait 10 seconds? check fold is still visible then spam a few postmessage clicks at the timer area... sorted?
FullTilt AHK scripts after Update (idea to solve please help) - Collected Threads Edition Quote

      
m