Two Plus Two Older Archives  

Go Back   Two Plus Two Older Archives > Internet Gambling > Software
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-23-2005, 01:18 AM
Nomad84 Nomad84 is offline
Senior Member
 
Join Date: Mar 2005
Posts: 194
Default AutoHotKey datamining script

I've seen people posting requests for party datamining software, so I figured I'd try something with AutoHotKey. My computer won't run more than 4 games at once and can only handle hours of datamining on 3 tables or fewer, so I wrote this with 3 tables in mind. Even so, it is very easy to adapt. Simply change the number of loops in 2 spots and add a bit of additional code in the middle (mostly copy/paste). Also, you should add more specific text to help it pick out which lobby it should be looking at. I left it open to use with Party or Empire with no changes to the code since I only run one skin at a time. The big change will be in accounting for the table names. I included all (I think) of the 2/4 tables since that is the level I am currently datamining. You will need to set this up for the table names at your limit for it to be effective.

This is nothing particularly elegant, but it works for me so far. It basically looks for any game windows and closes them all. It then opens the first 3 games on the list in the lobby window (I have it sorted by number waiting and showing full games). It then attempts to minimize these three windows (my computer seems a bit happier that way). It then waits 30 minutes and does it again. The purpose is to close short handed tables or empty tables and open 3 new full tables, although these may be the same as the tables that were just closed.

Just set up the script for your limit and number of tables, start PT, open the lobby (or lobbies) and start the script.

I have only run it for short times so far for testing, but I am about to run it overnight to see how it does. Thought I'd post it here for you guys in the meantime. I probably included unnecessary code in a few spots, but this is my first AHK script and I haven't tried to see what is necessary and what isn't. I just threw this together to datamine tonight and it seems to work fine so far. Here is the code:

<font class="small">Code:</font><hr /><pre>
Loop
{

Loop 3
{
IfWinExist, Table
{
WinActivate
WinWait, Table
WinClose
}
Else IfWinExist, Peach
{
WinActivate
WinWait, Peach
WinClose
}
Else IfWinExist, Jac
{
WinActivate
WinWait, Jac
WinClose
}
Else IfWinExist, Mars
{
WinActivate
WinWait, Mars
WinClose
}
Else IfWinExist, Owner's Pride
{
WinActivate
WinWait, Owner's Pride
WinClose
}
Else IfWinExist, Rubb
{
WinActivate
WinWait, Rubb
WinClose
}
Else IfWinExist, Present Danger
{
WinActivate
WinWait, Present Danger
WinClose
}
Else IfWinExist, Belly dances
{
WinActivate
WinWait, Belly dances
WinClose
}
Else IfWinExist, Pina
{
WinActivate
WinWait, Pina
WinClose
}
Else IfWinExist, Lucky
{
WinActivate
WinWait, Lucky
WinClose
}
Else IfWinExist, Rose
{
WinActivate
WinWait, Rose
WinClose
}
Else IfWinExist, Jump
{
WinActivate
WinWait, Jump
WinClose
}
Else IfWinExist, Pot
{
WinActivate
WinWait, Pot
WinClose
}
Else IfWinExist, Money
{
WinActivate
WinWait, Money
WinClose
}
Else IfWinExist, Friends
{
WinActivate
WinWait, Friends
WinClose
}
Else IfWinExist, Angels
{
WinActivate
WinWait, Angels
WinClose
}
Else IfWinExist, Blue
{
WinActivate
WinWait, Blue
WinClose
}
Else IfWinExist, On the
{
WinActivate
WinWait, On the
WinClose
}
Else IfWinExist, Happy holidays
{
WinActivate
WinWait, Happy holidays
WinClose
}
Else IfWinExist, Liquids
{
WinActivate
WinWait, Liquids
WinClose
}
Else IfWinExist, Make your
{
WinActivate
WinWait, Make your
WinClose
}
Else IfWinExist, Deal Quick
{
WinActivate
WinWait, Deal Quick
WinClose
}
Else IfWinExist, Everest
{
WinActivate
WinWait, Everest
WinClose
}
Else IfWinExist, Challenge
{
WinActivate
WinWait, Challenge
WinClose
}
Else IfWinExist, Digital
{
WinActivate
WinWait, Digital
WinClose
}
Else IfWinExist, Pulp
{
WinActivate
WinWait, Pulp
WinClose
}
Else IfWinExist, Nuts
{
WinActivate
WinWait, Nuts
WinClose
}
Else IfWinExist, Salt
{
WinActivate
WinWait, Salt
WinClose
}
Else IfWinExist, Choc
{
WinActivate
WinWait, Choc
WinClose
}
Else IfWinExist, Boots
{
WinActivate
WinWait, Boots
WinClose
}
Else IfWinExist, Platinum
{
WinActivate
WinWait, Platinum
WinClose
}
Else IfWinExist, Revenue
{
WinActivate
WinWait, Revenue
WinClose
}
Else IfWinExist, Colors
{
WinActivate
WinWait, Colors
WinClose
}
Else IfWinExist, Bite
{
WinActivate
WinWait, Bite
WinClose
}
}

IfWinExist, Welcome to the
{
WinActivate
WinWait, Welcome to the
MouseClick, left, 195, 240
MouseClick, left, 195, 240
Sleep 5000
}
IfWinExist, Welcome to the
{
WinActivate
WinWait, Welcome to the
MouseClick, left, 195, 255
MouseClick, left, 195, 255
Sleep 5000
}
IfWinExist, Welcome to the
{
WinActivate
WinWait, Welcome to the
MouseClick, left, 195, 270
MouseClick, left, 195, 270
Sleep 5000
}


Loop 3
{
IfWinExist, Table
{
WinActivate
WinWait, Table
WinMinimize
}
Else IfWinExist, Peach
{
WinActivate
WinWait, Peach
WinMinimize
}
Else IfWinExist, Jac
{
WinActivate
WinWait, Jac
WinMinimize
}
Else IfWinExist, Mars
{
WinActivate
WinWait, Mars
WinMinimize
}
Else IfWinExist, Owner's Pride
{
WinActivate
WinWait, Owner's Pride
WinMinimize
}
Else IfWinExist, Rubb
{
WinActivate
WinWait, Rubb
WinMinimize
}
Else IfWinExist, Present Danger
{
WinActivate
WinWait, Present Danger
WinMinimize
}
Else IfWinExist, Belly dances
{
WinActivate
WinWait, Belly dances
WinMinimize
}
Else IfWinExist, Pina
{
WinActivate
WinWait, Pina
WinMinimize
}
Else IfWinExist, Lucky
{
WinActivate
WinWait, Lucky
WinMinimize
}
Else IfWinExist, Rose
{
WinActivate
WinWait, Rose
WinMinimize
}
Else IfWinExist, Jump
{
WinActivate
WinWait, Jump
WinMinimize
}
Else IfWinExist, Pot
{
WinActivate
WinWait, Pot
WinMinimize
}
Else IfWinExist, Money
{
WinActivate
WinWait, Money
WinMinimize
}
Else IfWinExist, Friends
{
WinActivate
WinWait, Friends
WinMinimize
}
Else IfWinExist, Angels
{
WinActivate
WinWait, Angels
WinMinimize
}
Else IfWinExist, Blue
{
WinActivate
WinWait, Blue
WinMinimize
}
Else IfWinExist, On the
{
WinActivate
WinWait, On the
WinMinimize
}
Else IfWinExist, Happy holidays
{
WinActivate
WinWait, Happy holidays
WinMinimize
}
Else IfWinExist, Liquids
{
WinActivate
WinWait, Liquids
WinMinimize
}
Else IfWinExist, Make your
{
WinActivate
WinWait, Make your
WinMinimize
}
Else IfWinExist, Deal Quick
{
WinActivate
WinWait, Deal Quick
WinMinimize
}
Else IfWinExist, Everest
{
WinActivate
WinWait, Everest
WinMinimize
}
Else IfWinExist, Challenge
{
WinActivate
WinWait, Challenge
WinMinimize
}
Else IfWinExist, Digital
{
WinActivate
WinWait, Digital
WinMinimize
}
Else IfWinExist, Pulp
{
WinActivate
WinWait, Pulp
WinMinimize
}
Else IfWinExist, Nuts
{
WinActivate
WinWait, Nuts
WinMinimize
}
Else IfWinExist, Salt
{
WinActivate
WinWait, Salt
WinMinimize
}
Else IfWinExist, Choc
{
WinActivate
WinWait, Choc
WinMinimize
}
Else IfWinExist, Boots
{
WinActivate
WinWait, Boots
WinMinimize
}
Else IfWinExist, Platinum
{
WinActivate
WinWait, Platinum
WinMinimize
}
Else IfWinExist, Revenue
{
WinActivate
WinWait, Revenue
WinMinimize
}
Else IfWinExist, Colors
{
WinActivate
WinWait, Colors
WinMinimize
}
Else IfWinExist, Bite
{
WinActivate
WinWait, Bite
WinMinimize
}
}

Sleep 180000
}
</pre><hr />
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:58 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.