Adobe flash fullscreen with ctrl+f

Get help with using AutoHotkey and its commands and hotkeys
atotmtm

Adobe flash fullscreen with ctrl+f

05 Feb 2014, 04:46

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
User avatar
Sjc1000
Posts: 39
Joined: 02 Oct 2013, 02:07

Re: Adobe flash fullscreen with ctrl+f

05 Feb 2014, 04:59

Hi atotmtm,

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.
User avatar
Sjc1000
Posts: 39
Joined: 02 Oct 2013, 02:07

Re: Adobe flash fullscreen with ctrl+f

05 Feb 2014, 05:11

Sorry, i had it backwards..

This is what you want :P

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.
Guest

Re: Adobe flash fullscreen with ctrl+f

05 Feb 2014, 06:34

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?
atomtm
Posts: 3
Joined: 05 Feb 2014, 04:37

Re: Adobe flash fullscreen with ctrl+f

05 Feb 2014, 06:58

Ok I managed to run it with #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
Otherwise it doesn't work.
Is there anything wrong with using #Persistent?
User avatar
TLM
Posts: 1582
Joined: 01 Oct 2013, 07:52
GitHub: TLMcode
Contact:

Re: Adobe flash fullscreen with ctrl+f

05 Feb 2014, 07:09

hey atomtm I was watching this in IRC with you and Sjc1000.

There is nothing wrong with using #Persistent
atomtm
Posts: 3
Joined: 05 Feb 2014, 04:37

Re: Adobe flash fullscreen with ctrl+f

05 Feb 2014, 07:47

Thank you for your answers!
Big help, appreciate it !

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], malcev, SilasDeVis, vsub and 81 guests