Two Plus Two Publishing LLC Two Plus Two Publishing LLC
 

Go Back   Two Plus Two Poker Forums > Internet Poker > Software

Notices

Software Discussions about gambling-related and poker software.

Reply
 
Thread Tools Display Modes
Old 02-03-2009, 01:32 PM   #31
journeyman
 
terance's Avatar
 
Join Date: Jul 2007
Location: fapfapfap
Posts: 220
Re: Calling all Mac users (aka The AHK Problem)

Quote:
Originally Posted by GoldnEagl View Post
I seem to have found a way to script Stars for basic stuff (I think), and I imagine FTP would be similar but I haven't tried yet. I'm using UI Browser and writing the appropriate AppleScript on 10.5.5.

Eg. with Stars running (you must be logged in as well), this script automatically requests a tournament summary for you:

Code:
activate application "PokerStars"
tell application "System Events"
	get system attribute "sysv"
	if result is greater than or equal to 4144 then -- Mac OS X 10.3.0
		if UI elements enabled then
			tell application process "PokerStars"
				click menu item "Tournament History..." of menu 1 of menu bar item "Requests" of menu bar 1
				click radio button 1 of window "Tournament History"
				set value of text field 1 of window "Tournament History" to "type_in_a_tournament_ID_number_here"
				click button "OK" of window "Tournament History"
				delay (2) --wait 2 seconds for the confirmation window to pop up
				click button "OK" of window "PokerStars"
			end tell
		else
			beep
			display dialog "GUI Scripting is not enabled" & return & return & "Open System Preferences and check Enable Access for Assistive Devices in the Universal Access preference pane, then run this script again." with icon stop
			if button returned of result is "OK" then
				tell application "System Preferences"
					activate
					set current pane to pane "com.apple.preference.universalaccess"
				end tell
			end if
		end if
	else
		beep
		display dialog "This computer cannot run this script" & return & return & "The script uses GUI Scripting technology, which requires an upgrade to Mac OS X 10.3 Panther or newer." with icon caution buttons {"Quit"} default button "Quit"
	end if
end tell
This probably isn't very efficient (and it's pretty pointless since you actually have to type in the tournament ID number in the script, defeating the purpose of having a script altogether obv) etc since I'm basically having to teach myself AppleScript..I just wrote it to see if UI Browser could actually do the trick and give me the correct application attributes etc.

I need to study up more before I could write anything similar to AHK table action script, but things look promising so far
I pray for many shiny rainbows on your path for doing this
terance is offline   Reply With Quote
Old 04-10-2009, 11:13 AM   #32
centurion
 
Corbin13's Avatar
 
Join Date: Feb 2009
Location: LB
Posts: 185
Scripts on a Mac? Anyone use ikey?

Does anyone use hotkey scripts while playing poker on a Mac?
If so, do you use ikey?

http://www.scriptsoftware.com/ikey/
Corbin13 is offline   Reply With Quote
Old 04-12-2009, 12:44 AM   #33
journeyman
 
Join Date: Nov 2007
Posts: 274
Re: Scripts on a Mac? Anyone use ikey?

Quote:
Originally Posted by Corbin13 View Post
Does anyone use hotkey scripts while playing poker on a Mac?
If so, do you use ikey?

http://www.scriptsoftware.com/ikey/
This seems like exactly what we need to make AHK for the mac os. I am really tempted to purchase this but I have no experience making AHKs. How difficult is it to learn?

I perused the forums of the program and it seems the developers have basically abondoned the program so if we were to start trying to create AHK like things for ikey there may be some big limitations and bugs that wont ever be addressed. Maybe this isnt the solution

Last edited by Fast_Prophet; 04-12-2009 at 12:52 AM. Reason: Perused the Forum
Fast_Prophet is offline   Reply With Quote
Old 04-25-2009, 12:29 AM   #34
old hand
 
thesilkworm's Avatar
 
Join Date: May 2006
Location: London
Posts: 1,415
Any Full Tilt Shortcuts equivalent for Mac?

I bought FT Shortcuts a couple of months ago and it is an amazing program, which I use on my main poker computer (a desktop PC).

My laptop is a Macbook, and I would rather not install windows on it.

While I'm sure there's going to be nothing close to as good as FT Shortcuts out there, I was wondering if anybody knew of any scripts etc that could be useful.

I'm mainly interested in scripts that will auto-close tournament lobbies and pop-ups, and auto-register me for SnGs.

Any advice welcome.
thesilkworm is offline   Reply With Quote
Old 04-25-2009, 12:40 AM   #35
old hand
 
thesilkworm's Avatar
 
Join Date: May 2006
Location: London
Posts: 1,415
Re: Calling all Mac users (aka The AHK Problem)

D'oh. Wasn't aware of this thread. The above was obviously an OP which the mods moved here. Looks like the answer to my question is a pretty resounding 'no', then.
thesilkworm is offline   Reply With Quote
Old 04-25-2009, 03:19 AM   #36
enthusiast
 
Join Date: Jan 2008
Posts: 98
Re: Calling all Mac users (aka The AHK Problem)

Some people are eather to ignorant or to much of an apple fanboy. If you want to play poker, get yourself a good Windows setup or stop wining about the lack of trackers/tools/script if you dont want to.
dw33p is offline   Reply With Quote
Old 04-25-2009, 06:27 AM   #37
SiQ
Pooh-Bah
 
Join Date: Jan 2008
Location: @azegallo
Posts: 5,508
Re: Calling all Mac users (aka The AHK Problem)

Yes, we're ignorant, and apple fanboys. Because everything in the world should stay as it is, there should never be new developments or improvements.

Moran.
SiQ is offline   Reply With Quote
Old 04-25-2009, 08:21 PM   #38
enthusiast
 
Join Date: Feb 2009
Location: the hinterlands
Posts: 61
Re: Calling all Mac users (aka The AHK Problem)

Quote:
Originally Posted by dw33p View Post
Some people are eather to ignorant or to much of an apple fanboy. If you want to play poker, get yourself a good Windows setup or stop wining about the lack of trackers/tools/script if you dont want to.
doink
sapientia is offline   Reply With Quote
Old 04-25-2009, 08:54 PM   #39
journeyman
 
Join Date: Mar 2007
Posts: 320
Re: Calling all Mac users (aka The AHK Problem)

Quote:
Originally Posted by thejumpoff View Post
any progress?
I actually haven't been able to do any work with it..mainly because I'm lazy and would rather just play.

I did knock out a somewhat successful auto-register script a while back, though. Basically you highlight the tournament you want to register for and click the register button in the client, and the script takes care of selecting the buy-in and clicking 'OK' for you. It works but every now and then the Stars client delays for a second or two before enabling either the 'OK' button or the raidio button to select the buy-in, and thus halts the script and crashes the Stars client. It's pretty tilting when you're in 18 games and you have to wait 30 seconds to start up the client again.

Anyway, I'll be getting a new MacPro in the next couple weeks and as soon as Steve from Poker Copilot releases version 2 without the 200k hand limit (no idea when that'll be), or as soon as FlopZoom supports PokerStars tournaments (should be within the next month), I'll take another shot at it. At that point we can all be rid of Windows (hopefully).
GoldnEagl is offline   Reply With Quote
Old 04-26-2009, 08:50 AM   #40
SiQ
Pooh-Bah
 
Join Date: Jan 2008
Location: @azegallo
Posts: 5,508
Re: Calling all Mac users (aka The AHK Problem)

Nope, still need AHK type programs. FTS for Mac 1x
SiQ is offline   Reply With Quote
Old 04-26-2009, 11:13 PM   #41
newbie
 
kineticgraphics's Avatar
 
Join Date: Mar 2008
Location: Minneapolis
Posts: 29
Re: Calling all Mac users (aka The AHK Problem)

I have a working copy of iKey. I'm not too keen on programming. If anyone would like to try the software I can help out with it. PM me for cereal
kineticgraphics is offline   Reply With Quote
Old 06-16-2009, 10:26 PM   #42
journeyman
 
Join Date: Mar 2007
Posts: 320
Re: Calling all Mac users (aka The AHK Problem)

Ok, I've fine tuned my Auto-Register script. I haven't tested much, but I seem to have eliminated the crashing issue. There was a problem when other tables popped up and stole focus from the Tournament Registration window, thus halting the script and crashing everything.

Here it is fwiw: This has been tested on OS X v10.5.7 and works with the most recent Stars update. You must be running OS X v10.3.0 or later (Panther, Tiger or Leopard) as GUI Scripting was not added to the Mac OS until Panther. It should work on Snow Leopard as well when it comes out in September.

Also, you must enable GUI Scripting before running it. Open SystemPreferences.app and tick the check box to 'Enable Access for Assistive Devices' in the Universal Access pane.

Copy/paste this code into ScriptEditor.app (Applications > AppleScript > ScriptEditor) and save it as a stay-open application. File > Save, make sure the File Format is set to 'Application' and check the 'Stay Open' box. This allows the script to run continuously in the background. If you don't save it this way, it won't do anything for you. Save it wherever and name it whatever.

I will get into automating table actions soon. Let me know if any issues come up (I'm still an AppleScript noob).

Enjoy

Code:
on idle
	
	tell application "System Events"
		tell application process "PokerStars"
			if window "Tournament Registration" exists then --wait until reg box appear after clicking reg button
				
				--make sure we complete the reg process without other tables popping up and stealing focus from the tourney reg window
				set done to false
				repeat until done is true
					
					keystroke "1" using command down --make sure the Stars lobby has focus and not other tables.  when the tourney reg window is open, sending a command-1 keystroke (normally to give the lobby focus) gives the tourney reg window focus.
					
					if exists radio button 1 of window "Tournament Registration" then --make sure we're registering and not unregistering
						click radio button 1 of window "Tournament Registration" --click buy-in
						repeat until button "OK" of window "Tournament Registration" exists --wait until reg confirmation OK button appears.
						end repeat
						click button "OK" of window "Tournament Registration"
						
						repeat until window "Tournament Registration" exists --wait until reg confirmation dialog appears
						end repeat
						click button "OK" of window "Tournament Registration" --reg confirmation dialog
						
					else --we're unregistering; buy-in refunded
						repeat until button "OK" of window "Tournament Registration" exists --wait until OK button appears after unregistering
						end repeat
						click button "OK" of window "Tournament Registration"
						
					end if
					
					set done to true
					
				end repeat
				
			end if
		end tell
	end tell
	
	return 0.5 --allow the script to continuously run in the background, updating every 0.5 seconds
	
end idle
GoldnEagl is offline   Reply With Quote
Old 06-26-2009, 04:02 AM   #43
centurion
 
Join Date: Sep 2007
Posts: 101
Re: Calling all Mac users (aka The AHK Problem)

goldn,

you're the man! auto register script works great for me. thanks so much. really looking forward to any table features you're able to work out too.
yardle is offline   Reply With Quote
Old 06-26-2009, 05:45 AM   #44
SiQ
Pooh-Bah
 
Join Date: Jan 2008
Location: @azegallo
Posts: 5,508
Re: Calling all Mac users (aka The AHK Problem)

Good work. I'll try to test it out in my free time but still can't play on mac without at least something FTS-like is out for Mac.

Keep up the good work.
SiQ is offline   Reply With Quote
Old 06-26-2009, 01:36 PM   #45
journeyman
 
Join Date: Mar 2007
Posts: 320
Re: Calling all Mac users (aka The AHK Problem)

Glad it works, but perhaps I spoke too soon. I still get crashes on occasion Whenever I'm in a bunch of games (like 15-ish or more) it's pretty impossible to time the registration click to make sure that no other tables pop up and screw things over. When I get a chance I'll see if I can figure out how to fix it and I'll repost..but scripting time has been sparse as I'm over 2k games deep this month. Until then, to whomever uses this, just be aware that if you're in a ton of games you will probably get a crash between your registration click and when the script finishes the registration by "clicking" the radio button and the OK button if any of your tables pop up and steal focus.

As a temporary workaround, for those of you that tile and tile only, you could disable the option in the Stars lobby to auto pop-up any table needing action. That would allow the focus to remain on the Tournament Registration window and avoid any crashes. Disabling that option if you cascade or stack is retarded for obvious reasons.

@SiQ--After I get this working 100% for Stars I'll check out FTP too.
GoldnEagl is offline   Reply With Quote

Reply
      

Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -4. The time now is 05:59 PM.


Powered by vBulletin®
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.
Copyright © 2008-2010, Two Plus Two Interactive