Se Connecter:     


Forum: General Discussion

Sujet: Script Question

Ce topic est ancien et peut contenir des informations obselètes ou incorrectes.

I use a shortcut key to put enter the SEARCH mode. But often I change my mind and want to exit the search mode and put the keyboard focus back into the previous browser. What action script would I write if I wanted my shortcut key to toggle between SEARCH and BROWSER?

 

Posté Mon 25 Jul 11 @ 4:26 pm
this should get the job done..

search ? page "browser" & browser_window "songs" : search

another button to switch between files and songs

browser_window "folders" ? browser_window "songs" : browser_window "folders"

or you can use the standard browser_enter and browser_folders
 

synthet1c wrote :
this should get the job done..

search ? page "browser" & browser_window "songs" : search



I tried that and although it enters the search mode fine, it still does not go back to browser. It stays in search.

 

Once the cursor enters the search field keyboard shortcuts (letters and numbers) are used for typing, unless you click with your mouse outside that field or press enter.
 

I am using the NUMBER PAD ENTER key for this. I also tried the F1 key... but neither of these work.

 

try one of the F keys or insert, page up/down, pause break
 

Yes I did. Try it... it only responds to SEARCH - not leaving search.
 

looks like you need to map your up and down keys or similar to

page "browser" & browser_window "songs" & browser_scroll -1
page "browser" & browser_window "songs" & browser_scroll +1

left and right could be
deck 1 play ? something else while playing : deck 1 load
deck 2 play ? something else while playing : deck 2 load

or just
browser_folders
browser_enter
 

So it sounds like you're saying that we cannot toggle into and out of SEARCH. We can only create a separate key/action to go to browser focus?
 

OK this works if you want to toggle:

search ? page "browser" & browser_window "songs" & browser_scroll +1 : search
 



(Les anciens sujets et forums sont automatiquement fermés)