Home
Download
Screenshots

Wiki
Plugins
Translations
Developers
Donate

Forums/Help
Contact Us

StrokeIt

HOW TO WORK STROKE IT ON THE "FLASH PLAYER" SITE..

Posted by beingforyou3 
beingforyou3
HOW TO WORK STROKE IT ON THE "FLASH PLAYER" SITE..
April 27, 2011 07:16PM
The only annoying thing is that I can't use strokeit on the flash player site.

anybody who knows how to solve this problem?
Re: HOW TO WORK STROKE IT ON THE "FLASH PLAYER" SITE..
April 28, 2011 05:37PM
The problem is that keystrokes get sent to the flash application, not to Windows, when you are in a flash application. Try it by playing a Youtube video, pausing it, and using hotkeys: alt+F4 won't close the window, etc. Extremely annoying: there should be settings in each browser to allow only specific key presses to be taken over by flash applications.

The only way around it that is somewhat reliable is using a macro that simulates mouse clicks. I use Autohotkey to simulate a mouse click on the address bar in order to regain focus after flash has stolen it.

And please don't use all capitals in your title next time.
strokeituser
Re: HOW TO WORK STROKE IT ON THE "FLASH PLAYER" SITE..
May 15, 2011 06:19PM
cerberus can you share that macro? i've been wanting to get into autohotkey for mouseclicking but dont know where to start
Re: HOW TO WORK STROKE IT ON THE "FLASH PLAYER" SITE..
May 18, 2011 04:59PM
Sure, here is what I use:
;----Take away focus from flash to use shortcuts in Firefox---------

;---- x-coordinate for click is relative to screen size----
ClickPlace := A_ScreenWidth - 120

;----------Next Tab--
^!+n:: ; this tells AHK to do the following upon control+alt+shift+N :
#IfWinActive ahk_class MozillaUIWindowClass
  MouseGetPos, xpos, ypos
  MouseMove, %ClickPlace%, 43, 0
  Click %ClickPlace%, 43  ; this clicks on the address bar
  MouseMove, %xpos%, %ypos%, 0
  SendInput {Tab} ; this puts focus on the active tab
SendInput ^{Tab} ; this does control+tab, which switches to next tab
  #IfWinActive
Return

I have set StrokeIt to execute control+alt+shift+N upon a gesture, which triggers AHK to go to the next tab (control-tab, which looks like ^{tab} ).

But it might not be usable for you in this state, because the coordinates for the mouse click that is supposed to be on the address bar may be different on your computer. I have my address bar directly below the Firefox title bar. You should change the y-coordinate to something other than 43 if your address bar is lower or higher.

I have also noticed that it doesn't always seem to work any more on this computer, but I haven't really tested it; perhaps it would help if you added a few sleep lines between actions to make sure the program has enough time to move the mouse around:
Sleep 100 ; this waits for 100 milliseconds



Edited 1 time(s). Last edit at 05/18/2011 05:00PM by Cerberus.
beingforyou3
Re: HOW TO WORK STROKE IT ON THE "FLASH PLAYER" SITE..
May 20, 2011 06:15PM
Wow I found something.. Some pages will work if you do as below.
[F10_DOWN][F10_UP][CTRL_DOWN][F4_DOWN][CTRL_UP][F4_UP]
Re: HOW TO WORK STROKE IT ON THE "FLASH PLAYER" SITE..
July 19, 2011 07:34PM
I have updated my Autohotkey code, and this time it works very well. You will need to make sure the x and y coordinates of the mouse click are on the address bar in your Firefox. Especially the y coordinate (here 43) will be different in your browser.

You can add more hotkeys by copying for example the "Next Tab" lines and changing the necessary values. You see ^Tab (stands for control+tab; once with {...}, once without) there twice, so you need to change both to the new hotkey, like ^w (control+w; the {...} are never necessary with plain letter keys) for close tab. The + sign stands for shift.

All the things starting with a semicolon ( ; ) are just comments, they can be left out; I put them there just for clarity, and because ;* and ;*** let me easily fold the sections in my text editor, Notepad++.

;*** ;----Take away focus from flash to open new tab in Firefox---------

#IfWinActive ahk_class MozillaUIWindowClass

;*
;*** ;----Firefox Get Focus----
FFFocus(FFHotkey="") {
WinGetPos, ,, FFWidth, FFHeight, A
ClickPlace := FFWidth - 120
  MouseGetPos, xpos, ypos
  MouseMove, %ClickPlace%, 43, 0
  Click
  MouseMove, %xpos%, %ypos%, 0
  SendInput, %FFHotkey%
  Return
  }

;*
;*** ;----------Next Tab--
$^Tab::FFFocus("^{Tab}")

;*
;*** ;----------Previous Tab--
$^+Tab::FFFocus("^+{Tab}")

;*
;*** ;----------New Tab--
$^t::FFFocus("^t")

;*
;*** ;----------End of Firefox hotkeys----------
  #IfWinActive

;*



Edited 2 time(s). Last edit at 07/19/2011 07:41PM by Cerberus.
I found a way which seems to work quite well (but not exactly all the time, i don't know why) :

When creating a new action for your browser, such as CTRL+T for a new tab, always add a serie of other "activate window" commands before the actual shortcut command. These serie should include every application identifier class included in the description of the main application under StrokeIt.

An example using Opera and a "up" gesture to open a new tab :

Usually this shortcut doesn't work when a flash element is selected.
However, it will work if i configure the "up" gesture as this :

new command - activate window - class : "Opera Main Window"
new command - activate window - class : "OperaWindowClass"
new command - activate window - class : "OpWindow"
new command - keys hotkeys - CTRL+T

It actually even works when a video is played fullscreen.
Author:

Your Email:


Subject:


Attachments:
  • Valid attachments: zip, sxp, cfg
  • No file can be larger than 128 KB
  • All files together cannot be larger than 512 KB
  • 4 more file(s) can be attached to this message

Spam prevention:
Please, solve the mathematical question and enter the answer in the input field below. This is for blocking bots that try to post this form automatically.
Question: how much is 16 plus 25?
Message: