Two Plus Two Newer Archives  

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

Reply
 
Thread Tools Display Modes
  #1  
Old 08-18-2006, 01:06 AM
jukofyork jukofyork is offline
Senior Member
 
Join Date: Sep 2004
Location: Leeds, UK.
Posts: 2,551
Default SafeMine (AHK Script)

After nearly driving myself crazy trying to work out why iWitness wouldn't open SNGs in multiple user areas I decided to make a simple version of iWitness (largely based on Roland's original iWitness code he posted in the original V1 post).

Basically this "safe" version should be a good fallback script if (like me) you cannot get iWitness to do a certain task.

It doesn't have a fancy GUI and it requires you to navigate to your chosen limit in the Party Lobby by hand (and set your own filters), but other than that it's pretty simply to use.

<font color="red">Please note: I haven't really had chance to test this on all game types yet, so I expect there will be some problems - feedback will be helpful.</font>

It now has a semaphore lock placed on the list of tables opened in each user area, and also it is capable of self correcting if it accidentally opens the same table in two user areas, so it should be much safer for use in multiple user areas and/or between networked PCs (hence the name 'SafeMine').

If you want to give it a try, then it can be found here.

Juk [img]/images/graemlins/smile.gif[/img]
Reply With Quote
  #2  
Old 08-18-2006, 09:42 AM
donkraft donkraft is offline
Senior Member
 
Join Date: Sep 2005
Location: donkraftpoker.com
Posts: 316
Default Re: SafeMine (AHK Script)

Brilliant, Juk!
Reply With Quote
  #3  
Old 08-18-2006, 10:01 AM
jukofyork jukofyork is offline
Senior Member
 
Join Date: Sep 2004
Location: Leeds, UK.
Posts: 2,551
Default v0.02 available (improved)

I've just improved on the old version slightly and it can be found here.

<u>Changes:</u>

1) Have changed the OpenTables timer to be called at just 30 seconds intervals.

2) Have made the window minimization get done in another thread.

3) Have added a KillSpamWindows thread.

<font color="red">Also, make sure you delete any old copies of "tables.txt" and "semaphore" before setting up a new batch of SafeMines. You DO NOT want to delete "tables.txt" and "semaphore" each time you run a copy of SafeMine in a new user area, but you DO want to delete them when you <u>first start running</u> SafeMine (each time).

If you forget to delete these before you start, then SafeMine will just sit there doing nothing in any of your user areas. I will try to find a way to fix this in a later version.</font>

Juk [img]/images/graemlins/smile.gif[/img]
Reply With Quote
  #4  
Old 08-18-2006, 11:59 AM
RGL RGL is offline
Senior Member
 
Join Date: Mar 2006
Posts: 231
Default Re: v0.02 available (improved)

I am getting the following message when I go to the link for this:

"The requested URL /SafeMine_0_01.ahk was not found on this server.

Apache/1.3.33 Server at www.jukofyork.com Port 80"

I didn't find a reference to this on the jukofyork web site.
Reply With Quote
  #5  
Old 08-18-2006, 12:14 PM
jukofyork jukofyork is offline
Senior Member
 
Join Date: Sep 2004
Location: Leeds, UK.
Posts: 2,551
Default Re: v0.02 available (improved)

[ QUOTE ]
I am getting the following message when I go to the link for this:

"The requested URL /SafeMine_0_01.ahk was not found on this server.

Apache/1.3.33 Server at www.jukofyork.com Port 80"

I didn't find a reference to this on the jukofyork web site.

[/ QUOTE ]
I deleted the old version and posted a new version (Version 0.03) in a new sub-thread.

I should really make my OP a generic link to the current version, but I always forget to do this and start off posting v0.01 - next time i'll remember [img]/images/graemlins/smile.gif[/img]

Once I have some feedback on this, then I will most likely try to get it posted in the Overcards.com wiki, but just need some people to try it out first.

Juk [img]/images/graemlins/smile.gif[/img]
Reply With Quote
  #6  
Old 08-18-2006, 01:46 PM
starvs starvs is offline
Senior Member
 
Join Date: Oct 2004
Location: Thanking Jesus for rakeback
Posts: 837
Default Re: v0.02 available (improved)

Does this work with Empire? And if it doesn't would it be hard to make it work with Empire?
Reply With Quote
  #7  
Old 08-18-2006, 02:09 PM
jukofyork jukofyork is offline
Senior Member
 
Join Date: Sep 2004
Location: Leeds, UK.
Posts: 2,551
Default Re: v0.02 available (improved)

[ QUOTE ]
Does this work with Empire? And if it doesn't would it be hard to make it work with Empire?

[/ QUOTE ]
It should be very easy to get it working with Empire, but I just need some feedback first on how it is working in general.

It's not going to get much more complex than this, as all it will be is a fallback script for iWitness. I'll add Empire support, try to detect if you're logged in automatically and fix any bugs, but other than this I'm gonna try to keep it very minimal/simple.

Juk [img]/images/graemlins/smile.gif[/img]
Reply With Quote
  #8  
Old 08-18-2006, 12:11 PM
jukofyork jukofyork is offline
Senior Member
 
Join Date: Sep 2004
Location: Leeds, UK.
Posts: 2,551
Default v0.03 available (improved)

Version 0.03 is much easier to use now, as it doesn't require manual deletion of the table list and semaphore anymore. When the last copy of SafeMine closes, it will automatically delete them for you.

<u>Changes in v0.03:</u>

1) Have fixed KillSpamWindows to use the LastFoundWindow.

2) Have added a lock to each of the copies we are using, and an exit event trap to delete these locks. When the last lock is deleted, we want to also delete the table_list and the semaphore.

Thanks to Roland for these ideas! [img]/images/graemlins/smile.gif[/img]


To use SafeMine, just follow these simple steps:

1) Open a copy of PartyPoker and navigate to the limit you wish to mine.

2) Set a filter inside of PartyPoker for the types of tables you wish to mine.

3) Run SafeMine.ahk (make sure you have AHK installed) and you should see SafeMine open the required number of tables for you.

4) In as many user areas (or networked PCs) as you wish, repeat steps 1-3. SafeMine will make sure that it only opens a table ONCE throughout all of the user areas, and if it happens to accidentally open the same table multiple times, it will auto-detect/auto-correct this for you.


To set the number of tables you wish to mine, then simply edit this line:

NumTablesRequired = 4


If SafeMine fails to open or you have a crash, then it is possible that some of the ".lock" files, the "table_list" and the "semaphore" files are left behind by accident. If this happens, then before you start running SafeMine again, simply delete these files by hand (this should only need to be done if SafeMine was exited via TaskManager or you had a crash though...).

Juk [img]/images/graemlins/smile.gif[/img]
Reply With Quote
  #9  
Old 09-17-2006, 04:43 PM
Paxinor Paxinor is offline
Member
 
Join Date: Sep 2006
Posts: 87
Default Re: v0.03 available (improved)

i have the problem that it somehow doesn't update the table list with multiple user accounts

the first account creates correct entries in the table list... but after that all new user accounts will not create any entries in the table list... is there anyway to correct this?
Reply With Quote
  #10  
Old 01-30-2007, 11:53 PM
jukofyork jukofyork is offline
Senior Member
 
Join Date: Sep 2004
Location: Leeds, UK.
Posts: 2,551
Default v0.04 available (fixed/improved)

I've just uploaded a new copy of the SafeMine script to the Overcards.com wiki: http://www.overcards.com/wiki/moin.cgi/SafeMine

<u>New for v0.04:</u>
1. Have made it call UpdateTable much more frequently, to try to reduce the chance of opening a table in both user areas at the same time.
2. We now deal with the table list properly if the exit event is triggered. Before, it was possible to exit leaving the semaphore active and the table list invalid...
3. Have fixed the problem that was causing SNGs to not be closed.

Juk [img]/images/graemlins/smile.gif[/img]
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 03:47 PM.


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