PDA

View Full Version : Keys.ahk script



jfreeman1412
September 22nd, 2011, 01:43 AM
Hey Guys just got a quick question. Is it possible to be able to do the same thing for the color and black and white buttons as this script does for the f4 command? And what would that look like? ^b and ^c


; Start photobooth shooting sequence when any of the following keys are pressed
; (Works even if the photobooth window doesn't have input focus)
F4::
^!+5::
IfWinExist, Breeze Systems Photobooth
{
ControlSend,,{F4},Breeze Systems Photobooth
}
return


Would it look something like this?



; Start photobooth shooting sequence when any of the following keys are pressed
; (Works even if the photobooth window doesn't have input focus)
F4::
^!+5::
IfWinExist, Breeze Systems Photobooth
{
ControlSend,,{F4},Breeze Systems Photobooth
}
return
;

^c::
IfWinExist, Breeze Systems Photobooth
{
ControlSend,,{^c},Breeze Systems Photobooth
}
;
return

jdavies
September 22nd, 2011, 06:43 AM
We use a two arcade button interface (happ arcade style buttons via stealth switch II). This is the script we use give input focus to the "F2" and "F3" clicks.

; Start photobooth shooting sequence when any of the following keys are pressed
; (Works even if the photobooth window doesn't have input focus)
F3::
IfWinExist, Breeze Systems Photobooth
{
ControlSend,,{F3},Breeze Systems Photobooth
}
return

F2::
IfWinExist, Breeze Systems Photobooth
{
ControlSend,,{F2},Breeze Systems Photobooth
}
return

hope this helps

Chris Breeze
September 22nd, 2011, 08:21 AM
You don't need the braces around ^c to send Control+C. The braces are only required for special keys like F4 to tell the script to send function key four rather than F followed by 4.



; Start photobooth shooting sequence when any of the following keys are pressed
; (Works even if the photobooth window doesn't have input focus)
F4::
^!+5::
IfWinExist, Breeze Systems Photobooth
{
ControlSend,,{F4},Breeze Systems Photobooth
}
return
;

^c::
IfWinExist, Breeze Systems Photobooth
{
ControlSend,,^c,Breeze Systems Photobooth
}
;
return

jfreeman1412
September 22nd, 2011, 05:02 PM
Great Thanks a lot for the help.