Hello everyone!
First of all great program , great forum!
I am really new to autohotkey and I ama trying to figure out how I could create a script that checks if Adobe flash Player is out of fullscreen mode and if this happens focus on flash window and give it a ctrl+f keystroke just to go back in fullscreen.
Would that be possible with autohotkey?
Please if anyone could guide me through this that would be much appreciated!
Thank you in advance
Adobe flash fullscreen with ctrl+f
Re: Adobe flash fullscreen with ctrl+f
Hi atotmtm,
This should work.
This should work.
Code: Select all
WinGetPos, winX, winY, winWidth, winHeight, ahk_class ShockwaveFlash
if ( winX = 0 && winY = 0 && winWidth = A_ScreenWidth && winHeight = A_ScreenHeight )
{ MsgBox, The window is full screen
WinActivate, ahk_class ShockwaveFlash
}
Please find me on the IRC if you have any questions, I'm never on the forum anymore.
Re: Adobe flash fullscreen with ctrl+f
Sorry, i had it backwards..
This is what you want
This is what you want
Code: Select all
SetTimer, Check, 1000
return
Check:
WinGetPos, winX, winY, winWidth, winHeight, ahk_class ShockwaveFlash
if !( winX = 0 && winY = 0 && winWidth = A_ScreenWidth && winHeight = A_ScreenHeight )
{ ControlSend,, ^f, ahk_class ShockwaveFlash
WinActivate, ahk_class ShockwaveFlash
}
Return
Please find me on the IRC if you have any questions, I'm never on the forum anymore.
Re: Adobe flash fullscreen with ctrl+f
Unfortunatelly can't launch the script with doubleclick...
I tried the example in the tutorial section which works with doubleclick What am I doing wrong?
I tried the example in the tutorial section which works with doubleclick What am I doing wrong?
Re: Adobe flash fullscreen with ctrl+f
Ok I managed to run it with #Persistent
Otherwise it doesn't work.
Is there anything wrong with using #Persistent?
Code: Select all
#Persistent
SetTimer, Check, 1000
return
Check:
WinGetPos, winX, winY, winWidth, winHeight, ahk_class ShockwaveFlash
if !( winX = 0 && winY = 0 && winWidth = A_ScreenWidth && winHeight = A_ScreenHeight )
{ ControlSend,, ^f, ahk_class ShockwaveFlash
WinActivate, ahk_class ShockwaveFlash
}
Return
Is there anything wrong with using #Persistent?
Re: Adobe flash fullscreen with ctrl+f
hey atomtm I was watching this in IRC with you and Sjc1000.
There is nothing wrong with using #Persistent
There is nothing wrong with using #Persistent
Re: Adobe flash fullscreen with ctrl+f
Thank you for your answers!
Big help, appreciate it !
Big help, appreciate it !