there are two methods (if lightgun is detected as a mouse):
1) Set mouse-movement in AM-controlsStart AM > TAB > Controls > Add Input for 'Next Display' and 'Previous Display'
Set 'Mouse Left' and 'Mouse Right'
2) Use script. I prefer autoit
#include <Misc.au3>
#include <String.au3>
While 1
WaitForCorner()
WEnd
Func WaitForCorner()
While 1
$MousePos = MouseGetPos()
$MousePos[0] ; Mouse X position
$MousePos[1] ; Mouse Y position
For $i = 0 To 255
If _IsPressed(Hex($i,2)) Then
if Hex($i,2) = 01 AND $MousePos[0] = 0 AND $MousePos[1] = 1199 THEN
; msgbox(0, "", "LEFT")
Send("{LEFT}")
Sleep(500)
elseif Hex($i,2) = 01 AND $MousePos[0] = 1919 AND $MousePos[1] = 1199 THEN
; msgbox(0, "", "RIGHT")
Send("{RIGHT}")
Sleep(500)
Else
EndIf
ExitLoop 2
EndIf
Next
Sleep(50)
WEnd
EndFunc
I've got a display with 1920 to 1200.
Position left lower corner (Left/Down) is 0 to 1199
Position right lower corner (Right/Down) is 1919 to 1199
If you're on this position and hits Mouse-Button Left, the script sends left or right (depending on corner).
>Mouse-Cursor in AM:http://forum.attractmode.org/index.php?topic=97.0It was a feature request, hide mouse pointer. I'm not sure about enable mouse cursor in AM again.
https://www.google.com/?gfe_rd=cr&ei=FWFWV4LwEqnS8Af9y6XYAg&gws_rd=ssl#q=cursor+crosshair+curYou'll found something like this :
http://www.rw-designer.com/cursor-detail/77406
>Check color of button and send buttonI've seen your screenshot. So this enclosed graphic and script should works:
#include <Misc.au3>
;END-Button to exit script
HotKeySet("{END}", "_Quit")
$dll = DllOpen("user32.dll")
While 1
If _IsPressed("01", $dll) Then
$avMousePos = MouseGetPos()
$ClickedColor = PixelGetColor($avMousePos[0], $avMousePos[1])
;this shows the color code of current pixel
; msgbox(0, "", $ClickedColor)
; Color Code of red button is 13369395
; Color Code of green button is 11992832
;when red / left button
if $ClickedColor = 13369395 Then
;msgbox(0,"", "LEFT RED")
Send("{LEFT}")
Sleep(500)
;when green / right button
ElseIf $ClickedColor = 11992832 Then
;msgbox(0,"", "GREEN RIGHT")
Send("{RIGHT}")
Sleep(500)
EndIf
EndIf
WEnd
Func _Quit()
DllClose($dll)
Exit
EndFunc
If you shoot to left / red button : it moves to left
If you shoot to right / green button : it moves to right
On Windows Desktop it works. I don't tested it in AM...