Two Plus Two Publishing LLC Two Plus Two Publishing LLC
 

Go Back   Two Plus Two Poker Forums > > >

General Software Discussion Discussions about gambling-related and poker software.

Reply
 
Thread Tools Display Modes
Old 03-23-2009, 11:42 PM   #26
fozzy71
Carpal \'Tunnel
 
fozzy71's Avatar
 
Join Date: Mar 2007
Location: 8 Mile + 2.5
Posts: 37,558
Re: Xbox 360 controller as a mouse with AHK?

I didnt use an xbox controller and I didnt use any code from this thread. I bought a gamepad for the pc. Then I just ran joy2key and setup my betpot hotkeys accordingly. I cant be any more specific than that really, as it was 9 months ago at least.
fozzy71 is offline   Reply With Quote
Old 03-24-2009, 12:27 AM   #27
_dave_
_Pooh_Bah_
 
Join Date: Feb 2005
Location: UK (or what remains of it)
Posts: 13,126
Re: Xbox 360 controller as a mouse with AHK?

Quote:
Originally Posted by RedLobstah View Post
Couple Q's I couldn't find answers to by searching:

1. what is the code to confirm a bet?
Code:
Raise(getid())
Quote:
2. What does gosub mean? Example:

Joy11::
Gosub, WheelDown
return
It means "go do the code labelled here, then come back" - in this example, it makes Joy11 button do whatever action(s) WheelDown is set to do.


Quote:
Originally Posted by NameOnTheCake View Post
can you elaborate a bit Fozzy? I'm really not adept at this stuff. Do I just need to add the code that was listed above?
For limit play, you probably don't want the code above (no use for pot size derived actions). You probably want something like this in betpot_hotkeys:
Code:
Joy1::
Fold(getid())
return

Joy2::
Call(getid())
return

Joy3::
Raise(getid())
return
Remember betpot does not care about active or not tables, it will action on whatever table is beneath the cursor. you can change this to require the table to be active AND beneath the cursor, if misclicks are a problem.

Additionally, you may prefer actions to occur on release of the button - that way you can "undo" an action if you notice it is wrong but haven't let go the button yet, to do that you just put UP after the hotkey name e.g.
Code:
Joy2 UP::
This can also be preferable if the controller sends repeated events, like rapid-fire (some do, some don't - can't remember it being a problem with x360 or PS3 controllers myself).

If I were playing in a cascade, I'd probably have shoulder buttons L1 and R1 mapped to shuffle up/down through the tables too - I think that's be handy.
_dave_ is offline   Reply With Quote
Old 03-24-2009, 01:44 PM   #28
jfrizzle
stranger
 
Join Date: Jun 2008
Posts: 3
Re: Xbox 360 controller as a mouse with AHK?

nameonthecake ...... on tabeninja... under action hotkeys in the middle ... there is a place to set up the hot keys for limit only........ as for the other setups dave may be the one to ask... this is what works for me so i thought i would offer some help...... john
jfrizzle is offline   Reply With Quote
Old 03-25-2009, 09:50 PM   #29
RedLobstah
centurion
 
Join Date: Dec 2007
Posts: 104
Re: Xbox 360 controller as a mouse with AHK?

Quote:
Originally Posted by _dave_ View Post
Code:
Raise(getid())
It means "go do the code labelled here, then come back" - in this example, it makes Joy11 button do whatever action(s) WheelDown is set to do.
Thanks. I changed the button assignment and am using it now!

Quote:
Originally Posted by _dave_ View Post
Additionally, you may prefer actions to occur on release of the button - that way you can "undo" an action if you notice it is wrong but haven't let go the button yet, to do that you just put UP after the hotkey name e.g.
Code:
Joy2 UP::
This can also be preferable if the controller sends repeated events, like rapid-fire (some do, some don't - can't remember it being a problem with x360 or PS3 controllers myself).
This didn't work for me. I tried the below code as well as changing the "0" to "1". When it was a zero, it behaved just like without the "UP" (filled in the bet box on the down push of button and required my confirmation). When set to 1 it auto bet without my confirm on the down push. Am I missing something?

Joy4 UP:: ; Yellow Y
Pot(getid(),"1 1 1 1", "smallblind", "ssnl", 0)
return

Thanks!
RedLobstah is offline   Reply With Quote
Old 03-26-2009, 06:55 AM   #30
subandi
Carpal \'Tunnel
 
subandi's Avatar
 
Join Date: Jun 2007
Location: working
Posts: 6,848
Re: Xbox 360 controller as a mouse with AHK?

Im also using a gampad (playstation like) with joy2key but Im also using 2 instances of joy2mouse
so I can controll the mouse with both analog sticks, left is slow and precise right is fast
subandi is offline   Reply With Quote
Old 05-05-2009, 04:51 AM   #31
Margaud
adept
 
Margaud's Avatar
 
Join Date: Sep 2007
Location: Toronto/Hong Kong
Posts: 1,193
Re: Xbox 360 controller as a mouse with AHK?

I can't seem to control the mouse cursor within XP (run as a bootcamp vm within Parallels).

Here's my XPadder setup



The dpad and keys can be assigned and work but I can't seem to move my mouse cursor with the 360 controller. Any suggestions?
Margaud is offline   Reply With Quote
Old 05-08-2009, 04:27 PM   #32
PJ94z
adept
 
PJ94z's Avatar
 
Join Date: Dec 2005
Location: Atlanta, GA
Posts: 1,036
Re: Xbox 360 controller as a mouse with AHK?

Question to you guys that use a gamepad to multi-table:

do you tile or cascade?

is gamepad useful if i have 16 tables tiled playing NL ?


I 16 table on 2 screens and my wrist is taking a beating....im looking for alternative ways to click buttons on my screen.

My concern with gamepad:

moving mouse around from one screen to the next will take some time ?
moving mouse around with thumbpad will kill my thumb pretty quickly?
PJ94z is offline   Reply With Quote
Old 05-08-2009, 04:28 PM   #33
subandi
Carpal \'Tunnel
 
subandi's Avatar
 
Join Date: Jun 2007
Location: working
Posts: 6,848
Re: Xbox 360 controller as a mouse with AHK?

if you have a gamepad with 2 analog sticks you can make one a really fast mouse cursor (to move from one screen to another etc)
and the other one slow/precise..

fwiw I stack tables and think its far superior
subandi is offline   Reply With Quote
Old 05-08-2009, 04:57 PM   #34
fozzy71
Carpal \'Tunnel
 
fozzy71's Avatar
 
Join Date: Mar 2007
Location: 8 Mile + 2.5
Posts: 37,558
Re: Xbox 360 controller as a mouse with AHK?

There are multiple urgent table scripts and app's that can move your cursor to the active table and highlight it. I tile and rarely move my mouse hand, unless I am multi-tasking.

Stars Urgent Table, Stars Assistant, Full Tilt Shortcuts, etc
fozzy71 is offline   Reply With Quote
Old 05-08-2009, 05:20 PM   #35
PJ94z
adept
 
PJ94z's Avatar
 
Join Date: Dec 2005
Location: Atlanta, GA
Posts: 1,036
Re: Xbox 360 controller as a mouse with AHK?

Quote:
Originally Posted by subandi View Post
if you have a gamepad with 2 analog sticks you can make one a really fast mouse cursor (to move from one screen to another etc)
and the other one slow/precise..

fwiw I stack tables and think its far superior

I have a logitech rumblepad with 2 analog sticks and a bunch buttons etc.

I'm trying to use joy2key right now...but so far..its not even recognizing my gambpad...updating drivers atm.
PJ94z is offline   Reply With Quote
Old 05-08-2009, 09:30 PM   #36
_dave_
_Pooh_Bah_
 
Join Date: Feb 2005
Location: UK (or what remains of it)
Posts: 13,126
Re: Xbox 360 controller as a mouse with AHK?

this page contains a great AHK script for mapping one of the analog sticks to mouse (an a couple buttons to left/right click too). It works with almost any pad, and is a good starting point. http://www.autohotkey.com/docs/scrip...stickMouse.htm Imo it is better than any joy2key app since it works easily and is extremely customizable.

this page has some other examples how to use a joystick in AHK http://www.autohotkey.com/docs/misc/RemapJoystick.htm

For Full Tilt Shortcust, BetPot, StarsHotkeys and other AHKs, all you need do usually is set Joy1 or Joy7 as the button names (once you figure out which button has which number).
_dave_ is offline   Reply With Quote
Old 05-09-2009, 02:07 AM   #37
PJ94z
adept
 
PJ94z's Avatar
 
Join Date: Dec 2005
Location: Atlanta, GA
Posts: 1,036
Re: Xbox 360 controller as a mouse with AHK?

Quote:
Originally Posted by _dave_ View Post
this page contains a great AHK script for mapping one of the analog sticks to mouse (an a couple buttons to left/right click too). It works with almost any pad, and is a good starting point. http://www.autohotkey.com/docs/scrip...stickMouse.htm Imo it is better than any joy2key app since it works easily and is extremely customizable.

this page has some other examples how to use a joystick in AHK http://www.autohotkey.com/docs/misc/RemapJoystick.htm

For Full Tilt Shortcust, BetPot, StarsHotkeys and other AHKs, all you need do usually is set Joy1 or Joy7 as the button names (once you figure out which button has which number).
thanks man...that AHK script works great and is really simple. I tried joy2key and joystick 2 mouse...and it took too long to configure all the buttons n what not....AHK is really simple.


After using this controller, i feel it's not as precise as a mouse cursor...its very hard to click the X on the top right corner of the window...and takes several tries...before I can hit it dead center... Is there anyway to get this more precise?

Is there anyway I can use the directional pad to move mouse instead of the analog stick ?

I have a logitech wingman rumblepad - 2 analog sticks
PJ94z is offline   Reply With Quote
Old 05-09-2009, 05:10 AM   #38
subandi
Carpal \'Tunnel
 
subandi's Avatar
 
Join Date: Jun 2007
Location: working
Posts: 6,848
Re: Xbox 360 controller as a mouse with AHK?

Quote:
Originally Posted by _dave_ View Post
this page contains a great AHK script for mapping one of the analog sticks to mouse (an a couple buttons to left/right click too). It works with almost any pad, and is a good starting point. http://www.autohotkey.com/docs/scrip...stickMouse.htm Imo it is better than any joy2key app since it works easily and is extremely customizable.

this page has some other examples how to use a joystick in AHK http://www.autohotkey.com/docs/misc/RemapJoystick.htm

For Full Tilt Shortcust, BetPot, StarsHotkeys and other AHKs, all you need do usually is set Joy1 or Joy7 as the button names (once you figure out which button has which number).
I use this too and I use a 2nd instance of it to make the 2nd analog stick a mouse too - there has to be an easier way,
making both ahks into one but I dont know anything about it,
Im already proud I managed to find out how to access the 2nd analog stick (Z and R instead of X and Y I believe)
subandi is offline   Reply With Quote
Old 05-21-2009, 02:25 PM   #39
clemensol
old hand
 
clemensol's Avatar
 
Join Date: Jan 2009
Posts: 1,516
Re: Xbox 360 controller as a mouse with AHK?

I need some major help installing my 360 controller to xpadder. I cannot find any sort of adapter that will connect my controller to the computer.
clemensol is offline   Reply With Quote
Old 05-21-2009, 04:48 PM   #40
clemensol
old hand
 
clemensol's Avatar
 
Join Date: Jan 2009
Posts: 1,516
Re: Xbox 360 controller as a mouse with AHK?

Quote:
Originally Posted by jfrizzle View Post
once you have downloaded xpadder.. assign each button a letter on the keyboard.. example on the 360 controller assign the x button the letter X or the right trigger the letter R... then down load tableninja.. from tableninja.com ... then assign each action a letter corresponding to the letters on you controller... ie.. the letter R you assinged to the trigger.. if you want the right trigger to preform the fold action. assign the letter R to fold.. then when you click the trigger you hand will fold.... after you assign the actions in table ninja click save... you will be ready to roll... good luck.... john
another question, is there something similar to tableninja out there for those of us on ftp?
clemensol is offline   Reply With Quote
Old 05-21-2009, 05:10 PM   #41
_dave_
_Pooh_Bah_
 
Join Date: Feb 2005
Location: UK (or what remains of it)
Posts: 13,126
Re: Xbox 360 controller as a mouse with AHK?

Quote:
Originally Posted by clemensol View Post
I need some major help installing my 360 controller to xpadder. I cannot find any sort of adapter that will connect my controller to the computer.
You can buy a "microsoft USB wireless adapter" most places that sell xbox accessories. I think wired contollers just plug in to USB, but I've never had one s not sure.

Quote:
Originally Posted by clemensol View Post
another question, is there something similar to tableninja out there for those of us on ftp?
Full Tilt Shortcuts or Poker Shortcuts most similar to Table Ninja, or myriad AHK scripts are available.
_dave_ is offline   Reply With Quote
Old 05-21-2009, 05:45 PM   #42
fozzy71
Carpal \'Tunnel
 
fozzy71's Avatar
 
Join Date: Mar 2007
Location: 8 Mile + 2.5
Posts: 37,558
Re: Xbox 360 controller as a mouse with AHK?

If you are playing on Stars I would suggest you use _dave_'s Stars Urgent Table v0.3 from the attachments page. It will highlight the active table and the table under the mouse. It can also move the mouse from table to table, so all you have to do is hit buttons/keys once you get the script dialed in.
fozzy71 is offline   Reply With Quote
Old 05-26-2009, 10:26 PM   #43
$niper
journeyman
 
Join Date: Oct 2008
Location: schalke
Posts: 227
Re: Xbox 360 controller as a mouse with AHK?

what´s the best solution if you play different sites simultanously?

i like tableninja (though i never tried another program), but it only works for pokerstars afaik. mainly play pokerstars and fulltilt.
$niper is offline   Reply With Quote
Old 05-26-2009, 10:54 PM   #44
fozzy71
Carpal \'Tunnel
 
fozzy71's Avatar
 
Join Date: Mar 2007
Location: 8 Mile + 2.5
Posts: 37,558
Re: Xbox 360 controller as a mouse with AHK?

I would suggest you try out the beta trial of Poker ShortCuts by Nanochip. It is designed to work with PokerStars and FTP.
fozzy71 is offline   Reply With Quote
Old 06-05-2009, 05:12 AM   #45
Margaud
adept
 
Margaud's Avatar
 
Join Date: Sep 2007
Location: Toronto/Hong Kong
Posts: 1,193
Re: Xbox 360 controller as a mouse with AHK?

I finally got mine working last night.

No need for xpadder or the joy2stick script. I went to Control Panel-Gaming Controllers, click on the 360 controller and then in the Test tab I was able to figure out what the names of each button were. Using that, I modified betpot using a snippet of code posted by someone else in the betpot thread.

Question though, in the Test tab I wasn't able to see what directional pad was assigned to. Right now I only have the following assigned to betpot:
X, Y, B, A, select, start, Left, Right.

I was hoping to use the directional and maybe even bottom triggers also. Or even the POV sticks to scroll up/down. Any suggestions?
Margaud is offline   Reply With Quote
Old 06-05-2009, 05:46 AM   #46
subandi
Carpal \'Tunnel
 
subandi's Avatar
 
Join Date: Jun 2007
Location: working
Posts: 6,848
Re: Xbox 360 controller as a mouse with AHK?

this should help, if you press any button on your controller it will tell you its "name"


Code:
; Joystick Test Script
; http://www.autohotkey.com
; This script helps determine the button numbers and other attributes
; of your joystick. It might also reveal if your joystick is in need
; of calibration; that is, whether the range of motion of each of its
; axes is from 0 to 100 percent as it should be. If calibration is
; needed, use the operating system's control panel or the software
; that came with your joystick.

; July 6, 2005: Added auto-detection of joystick number.
; May 8, 2005 : Fixed: JoyAxes is no longer queried as a means of
; detecting whether the joystick is connected.  Some joysticks are
; gamepads and don't have even a single axis.

; If you want to unconditionally use a specific joystick number, change
; the following value from 0 to the number of the joystick (1-32).
; A value of 0 causes the joystick number to be auto-detected:
JoystickNumber = 0

; END OF CONFIG SECTION. Do not make changes below this point unless
; you wish to alter the basic functionality of the script.

; Auto-detect the joystick number if called for:
if JoystickNumber <= 0
{
	Loop 32  ; Query each joystick number to find out which ones exist.
	{
		GetKeyState, JoyName, %A_Index%JoyName
		if JoyName <>
		{
			JoystickNumber = %A_Index%
			break
		}
	}
	if JoystickNumber <= 0
	{
		MsgBox The system does not appear to have any joysticks.
		ExitApp
	}
}

#SingleInstance
SetFormat, float, 03  ; Omit decimal point from axis position percentages.
GetKeyState, joy_buttons, %JoystickNumber%JoyButtons
GetKeyState, joy_name, %JoystickNumber%JoyName
GetKeyState, joy_info, %JoystickNumber%JoyInfo
Loop
{
	buttons_down =
	Loop, %joy_buttons%
	{
		GetKeyState, joy%a_index%, %JoystickNumber%joy%a_index%
		if joy%a_index% = D
			buttons_down = %buttons_down%%a_space%%a_index%
	}
	GetKeyState, joyx, %JoystickNumber%JoyX
	axis_info = X%joyx%
	GetKeyState, joyy, %JoystickNumber%JoyY
	axis_info = %axis_info%%a_space%%a_space%Y%joyy%
	IfInString, joy_info, Z
	{
		GetKeyState, joyz, %JoystickNumber%JoyZ
		axis_info = %axis_info%%a_space%%a_space%Z%joyz%
	}
	IfInString, joy_info, R
	{
		GetKeyState, joyr, %JoystickNumber%JoyR
		axis_info = %axis_info%%a_space%%a_space%R%joyr%
	}
	IfInString, joy_info, U
	{
		GetKeyState, joyu, %JoystickNumber%JoyU
		axis_info = %axis_info%%a_space%%a_space%U%joyu%
	}
	IfInString, joy_info, V
	{
		GetKeyState, joyv, %JoystickNumber%JoyV
		axis_info = %axis_info%%a_space%%a_space%V%joyv%
	}
	IfInString, joy_info, P
	{
		GetKeyState, joyp, %JoystickNumber%JoyPOV
		axis_info = %axis_info%%a_space%%a_space%POV%joyp%
	}
	ToolTip, %joy_name% (#%JoystickNumber%):`n%axis_info%`nButtons Down: %buttons_down%`n`n(right-click the tray icon to exit)
	Sleep, 100
}
return
subandi is offline   Reply With Quote
Old 07-14-2009, 12:15 AM   #47
jim_money
old hand
 
jim_money's Avatar
 
Join Date: Mar 2009
Posts: 1,421
What kind of xpadder setup do you use?

I've had an xbox for a while but just decided to try it on the computer. I'm using it in conjunction with the stars hotkey program and I'm really impressed. Makes it so much more comfortable and easy to play.

Anyways, I was wondering what hotkeys you guys use. Right now I have :

Left trigger: fold
Right trigger: Check/call
Right thumbstick: Raise/lower bet amount
A button: Bet

Obviously this is a pretty basic configuration so I'm looking for some tricks to make my life easier. One thing I would want to do is move the active table to a corner of my screen so I can monitor the outcome of a hand. I'm not sure if I can do this with Stars hotkeys, but I'm too cheap to pay for table ninja so oh well.
jim_money is offline   Reply With Quote
Old 07-22-2009, 04:43 PM   #48
Matixboy
enthusiast
 
Join Date: Nov 2006
Posts: 91
Xpadder working with Xbox 360 Keypad

I am trying to get the xbox live keypad that attaches to the Xbox360 controller to work with xpadder but can't really figure it out.

Has anyone done this yet or know how to do it?

Thx
Matix
Matixboy is offline   Reply With Quote
Old 08-04-2009, 02:22 AM   #49
Matixboy
enthusiast
 
Join Date: Nov 2006
Posts: 91
Re: Xpadder working with Xbox 360 Keypad

Anyone know?
Matixboy is offline   Reply With Quote
Old 08-04-2009, 09:18 PM   #50
effang
Pooh-Bah
 
Join Date: Jul 2006
Location: aggro donk + station
Posts: 3,524
xbox 360 controller

is there a way to set up my xbox 360 controller to act as a mouse/poker tool?

i would like the two toggles to be a mouse and to be like a mouse scroll up. and then obviously some buttons to be bet and fold call etc.
effang 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


Forum Jump


All times are GMT -4. The time now is 08:20 AM.


Powered by vBulletin®
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Copyright © 2008-2020, Two Plus Two Interactive