meboo
01-28-2011, 11:06 AM
Hi!
Iīm trying to make a script that lets me quit with joystick button 7 on joystick 1.
The following script works, but i have to quit with the keyboard.
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
Blockinput on
SetBatchLines -1
Gui +AlwaysOnTop -Caption +ToolWindow
Gui Color, 0
Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%, HSHIDE
Run, BBCTStart.exe, , Max
Blockinput off
Process, WaitClose, BBCTStart.exe
return
ESC::
Process, Close, BBCTStart.exe
ExitAPP
return
When i change the script to exit with joy7 or 1joy7 HS just sits there and i cant select anything. It dosenīt lock up since the theme movie continues to play and BB isnīt launched in the background out of focus since i cant find it in the task manager.
Please help!
This is the script that dosent work:
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
Blockinput on
SetBatchLines -1
Gui +AlwaysOnTop -Caption +ToolWindow
Gui Color, 0
Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%, HSHIDE
Run, BBCTStart.exe, , Max
Blockinput off
Process, WaitClose, BBCTStart.exe
return
joy7::
Process, Close, BBCTStart.exe
ExitAPP
return
:hmmmm2:
-----------
Maybe i should clarify that itīs the PC version of BB iīm using and not some hacked stuff.
And if anybody has another type of script there running theirs with iīd be more than happy to try it out.
Iīm trying to make a script that lets me quit with joystick button 7 on joystick 1.
The following script works, but i have to quit with the keyboard.
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
Blockinput on
SetBatchLines -1
Gui +AlwaysOnTop -Caption +ToolWindow
Gui Color, 0
Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%, HSHIDE
Run, BBCTStart.exe, , Max
Blockinput off
Process, WaitClose, BBCTStart.exe
return
ESC::
Process, Close, BBCTStart.exe
ExitAPP
return
When i change the script to exit with joy7 or 1joy7 HS just sits there and i cant select anything. It dosenīt lock up since the theme movie continues to play and BB isnīt launched in the background out of focus since i cant find it in the task manager.
Please help!
This is the script that dosent work:
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
Blockinput on
SetBatchLines -1
Gui +AlwaysOnTop -Caption +ToolWindow
Gui Color, 0
Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%, HSHIDE
Run, BBCTStart.exe, , Max
Blockinput off
Process, WaitClose, BBCTStart.exe
return
joy7::
Process, Close, BBCTStart.exe
ExitAPP
return
:hmmmm2:
-----------
Maybe i should clarify that itīs the PC version of BB iīm using and not some hacked stuff.
And if anybody has another type of script there running theirs with iīd be more than happy to try it out.