jfreeman1412
March 23rd, 2011, 03:34 AM
Hey guys I am willing to send someone $20 if they can just point me out why my Third Gui isn't showing up and how the script tells the order of Gui's.
; set this to 1 to hide the cursor when the options screen is displayed
HideCursor = 0
; add a path variable
booth=C:\Program Files (x86)\BreezeSys\PSRemote\1PhotoboothImages
; define the options screen
Gui, Color, 0
Gui, -Caption -Border +AlwaysOnTop
Gui, Font, s48, Arial
Gui, Add, Picture,, %booth%/999.jpg
Gui, Add, picture, x200 y220 w400 h450 gphotoClicked, %booth%/camera.jpg
Gui, Add, picture, x700 y220 w400 h450 gvideoClicked, %booth%/video.jpg
Gui, Font, norm
Gui, 2:Color, 0
Gui, 2:-Caption -Border +AlwaysOnTop
Gui, 2:Font, s48, Arial
Gui, 2:Add, Picture,, %booth%/999.jpg
Gui, 2:Add, picture, x100 y220 w300 h450 goneClicked, %booth%/Onepose.jpg
Gui, 2:Add, picture, x450 y220 w300 h450 gthreeClicked, %booth%/three poses.jpg
Gui, 2:Add, picture, x800 y220 w300 h450 gfourClicked, %booth%/fourposes.jpg
Gui, 2:Font, norm
Gui, 3:Color, 0
Gui, 3:-Caption -Border +AlwaysOnTop
Gui, 3:Font, s48, Arial
Gui, 3:Add, Picture,, %booth%/999.jpg
Gui, 3:Add, picture, x100 y220 w300 h450 gbwClicked, %booth%/bw.jpg
Gui, 3:Add, picture, x800 y220 w300 h450 gcolorClicked, %booth%/color.jpg
Gui, 3:Font, norm
; loop forever monitoring the status of the photobooth screen
Ready = 0 ; 0 tells script to display options screen if ready.jpg screen is displayed
Loop
{
IfWinExist, Breeze Systems Photobooth
{
WinGetTitle, Title, Breeze Systems Photobooth
if Title contains ready.jpg
{
if Ready = 0
{
Ready = 1
ShowOverlayWindow()
}
}
else if Title contains processing.jpg
{
Ready = 0 ; start looking for ready.jpg screen
}
}
else
{
Ready = 0
}
Sleep 100 ; sleep for 1/10th sec to avoid hogging the processor
}
Return
GuiEscape:
HideOverlayWindow(0)
return
; Ctlr+Q shows the options screen if ready.jpg is being displayed
^q::
Ready = 0
return
PhotoClicked:
WinActivate, Breeze Systems Photobooth
Send ^p
HideOverlayWindow(250) ; give the photobooth time to switch profiles before hiding the options screen
return
VideoClicked:
WinActivate, Breeze Systems Photobooth
Send ^v
HideOverlayWindow(250) ; give the photobooth time to switch profiles before hiding the options screen
return
oneClicked:
WinActivate, Breeze Systems Photobooth
Send +^1
HideOverlayWindow(250) ; give the photobooth time to switch profiles before hiding the options screen
return
threeClicked:
WinActivate, Breeze Systems Photobooth
Send +^2
HideOverlayWindow(250) ; give the photobooth time to switch profiles before hiding the options screen
return
fourClicked:
WinActivate, Breeze Systems Photobooth
Send +^3
HideOverlayWindow(250) ; give the photobooth time to switch profiles before hiding the options screen
return
bwClicked:
WinActivate, Breeze Systems Photobooth
Send ^b
HideOverlayWindow(250) ; give the photobooth time to switch profiles before hiding the options screen
return
colorClicked:
WinActivate, Breeze Systems Photobooth
Send ^c
HideOverlayWindow(250) ; give the photobooth time to switch profiles before hiding the options screen
return
; show the overlay window and optionally hide the mouse cursor
ShowOverlayWindow()
{
global HideCursor
Gui, Show, Maximize
Gui, 2:Show, Maximize
Gui, 3:Show, Maximize
if HideCursor > 0
{
Run, nomousy.exe /hide
}
}
; hide the overlay window with optional delay
HideOverlayWindow(delay)
{
global HideCursor
WinActivate, Breeze Systems Photobooth
if delay > 0
{
Sleep delay
}
Gui, Hide
Gui, 2:Hide
Gui, 3:Hide
if HideCursor > 0
{
Run, nomousy.exe
}
}
; set this to 1 to hide the cursor when the options screen is displayed
HideCursor = 0
; add a path variable
booth=C:\Program Files (x86)\BreezeSys\PSRemote\1PhotoboothImages
; define the options screen
Gui, Color, 0
Gui, -Caption -Border +AlwaysOnTop
Gui, Font, s48, Arial
Gui, Add, Picture,, %booth%/999.jpg
Gui, Add, picture, x200 y220 w400 h450 gphotoClicked, %booth%/camera.jpg
Gui, Add, picture, x700 y220 w400 h450 gvideoClicked, %booth%/video.jpg
Gui, Font, norm
Gui, 2:Color, 0
Gui, 2:-Caption -Border +AlwaysOnTop
Gui, 2:Font, s48, Arial
Gui, 2:Add, Picture,, %booth%/999.jpg
Gui, 2:Add, picture, x100 y220 w300 h450 goneClicked, %booth%/Onepose.jpg
Gui, 2:Add, picture, x450 y220 w300 h450 gthreeClicked, %booth%/three poses.jpg
Gui, 2:Add, picture, x800 y220 w300 h450 gfourClicked, %booth%/fourposes.jpg
Gui, 2:Font, norm
Gui, 3:Color, 0
Gui, 3:-Caption -Border +AlwaysOnTop
Gui, 3:Font, s48, Arial
Gui, 3:Add, Picture,, %booth%/999.jpg
Gui, 3:Add, picture, x100 y220 w300 h450 gbwClicked, %booth%/bw.jpg
Gui, 3:Add, picture, x800 y220 w300 h450 gcolorClicked, %booth%/color.jpg
Gui, 3:Font, norm
; loop forever monitoring the status of the photobooth screen
Ready = 0 ; 0 tells script to display options screen if ready.jpg screen is displayed
Loop
{
IfWinExist, Breeze Systems Photobooth
{
WinGetTitle, Title, Breeze Systems Photobooth
if Title contains ready.jpg
{
if Ready = 0
{
Ready = 1
ShowOverlayWindow()
}
}
else if Title contains processing.jpg
{
Ready = 0 ; start looking for ready.jpg screen
}
}
else
{
Ready = 0
}
Sleep 100 ; sleep for 1/10th sec to avoid hogging the processor
}
Return
GuiEscape:
HideOverlayWindow(0)
return
; Ctlr+Q shows the options screen if ready.jpg is being displayed
^q::
Ready = 0
return
PhotoClicked:
WinActivate, Breeze Systems Photobooth
Send ^p
HideOverlayWindow(250) ; give the photobooth time to switch profiles before hiding the options screen
return
VideoClicked:
WinActivate, Breeze Systems Photobooth
Send ^v
HideOverlayWindow(250) ; give the photobooth time to switch profiles before hiding the options screen
return
oneClicked:
WinActivate, Breeze Systems Photobooth
Send +^1
HideOverlayWindow(250) ; give the photobooth time to switch profiles before hiding the options screen
return
threeClicked:
WinActivate, Breeze Systems Photobooth
Send +^2
HideOverlayWindow(250) ; give the photobooth time to switch profiles before hiding the options screen
return
fourClicked:
WinActivate, Breeze Systems Photobooth
Send +^3
HideOverlayWindow(250) ; give the photobooth time to switch profiles before hiding the options screen
return
bwClicked:
WinActivate, Breeze Systems Photobooth
Send ^b
HideOverlayWindow(250) ; give the photobooth time to switch profiles before hiding the options screen
return
colorClicked:
WinActivate, Breeze Systems Photobooth
Send ^c
HideOverlayWindow(250) ; give the photobooth time to switch profiles before hiding the options screen
return
; show the overlay window and optionally hide the mouse cursor
ShowOverlayWindow()
{
global HideCursor
Gui, Show, Maximize
Gui, 2:Show, Maximize
Gui, 3:Show, Maximize
if HideCursor > 0
{
Run, nomousy.exe /hide
}
}
; hide the overlay window with optional delay
HideOverlayWindow(delay)
{
global HideCursor
WinActivate, Breeze Systems Photobooth
if delay > 0
{
Sleep delay
}
Gui, Hide
Gui, 2:Hide
Gui, 3:Hide
if HideCursor > 0
{
Run, nomousy.exe
}
}