Hey i need help..

im so bad using AHK so here is my script:
#SingleInstance, Force
#NoEnv
SetTitleMatchMode, 2
GroupAdd, TABLES, ahk_class SunAwtFrame ; Make Table Group
SetTimer, AutoFocusTimer, 50 ;Set Autofocus Timer
Return
AutoFocusTimer: ;Auto focus on mouse over
MouseGetPos, , , ID
If !WinActive("ahk_id %ID%")
{
WinGetClass, ClassName, ahk_id %id%
If (ClassName = "SunAwtFrame")
WinActivate, ahk_id %ID%
}
Return
#IfWinActive, ahk_group TABLES ; Only Send F1 if Table Group is active
RButton:: ;Hotkey to send F1
Send {F1}
Return
MButton::
Send 10000,
;Hotkey to send F3
Send {F3}
sleep, 120
Return
i would like to get mbutton autobetting all in is that possible? if so how? not it goes all the chips to 1,5k but i have to click raise button my self i would like to be auto
There is pic what i mean:
http://imageshack.us/photo/my-images/231/help1kc.jpg/
And another question is it possible the get code like that if i sit out ahk script sits me back right away? it should somehow autopress that i am back button
there is also pic what i mean:
http://imageshack.us/photo/my-images/824/help2d.jpg/