12/4/2023 0 Comments Convertxtovideo 3 betayou can simply use #550 to load Favorite Folders (or Files #564) alone here or whatever script you Load "$FavFolders -$CopyMove", ,s end(1) //this takes care of the "nothing selected" condition when none of the other listed conditions or comparisons are met If you'd rather bring up the default menu when there's a file currently hi-lighted, just left click on white (to un-select) and then follow with a right click.Ĭode: Select all /*** image file menu ***/ If the file isn't currently selected you simply select with the left click and then move the mouse slightly and right click. If the file you'd like to run a program on is currently selected simply right click on white to bring up the the specific file type menu. I'm finding it easier than using the 'real' context menu or even PFAs since it it seems to be less clicking in many cases. What I show here are just examples and certainly not my final script. You have to take a few minutes an substitute your own programs to run based on the file types and any new files types as you wish. This is more of an idea and skeleton script you can use to arrive at your own. You could even set it up such that the script does something special if a folder is selected.ģ examples of the menus which surface if you right clicked with a certain file types selected along with an example default menu:Ĭode: Select all CEA_ListRightClickOnWhite=6ĬEA_ListRightClickOnWhite_Script=load "\WhiteSpaceCtxMenu.xys"Obviously this is not the type of script a user can simply plop into his script folder and use. For example, you could have it set such that if you have a single GIF file selected, it would bring up all the folder's GIFs in TheQwerty's 'HTMLImagePreview.xys' viewer. You can also easily set the menu up such that some file types programs would immediately be run in a program of choice. Remember if a file is currently selected, but you'd rather just bring up the default menu rather than the specific file-type menu of a highlighted file, you can simply normal left click on white and then right click. 15#p122111 If no file is selected, the script brings up a default menu which can be anything the user wants (i.e, it could be as simple as bringing up the Favorite Files, Favorite Folders, call your own menu, or something more elaborate). I mentioned coming up with something similar to this here. So it similar to a right clicking on the file itself to bring up a context menu, but in this case the user is clicking the white space. So you could set it up such that if you had a jpg or png file selected (i.e ), a menu with 4 or 5 different programs to select from would display, you'd choose one and the file would be opened in that program. The menu which comes up is dependent on the file type of the current file. Klownboy wrote:The purpose of this script is to call out specific menus when the user right clicks on the list panel white space. Or just the opposite with an 'XYS' extension, I have double clicking the file open it in Notepad++, where as this script is used to immediately run the script. Say you normally execute an AHK file by double clicking the file like I do with an AHK file or many others, this technique could be the alternate of immediately opening the ahk file in Notepad++ with no menu). Keep in mind, it works great to immediately run a particular extension using the method in the first post and it does work by your drag technique. I'll get around to updating the first post to incorporate our changes since then (e.g.,, structure, etc.). I am really liking it and getting more use than I thought I would out of it. You mentioned having a long list of "if' and "elseif" statements, you must be really fine tuning this thing. We're probably talking a fraction of millisecond difference between one method and the other, so it certainly wouldn't be noticeable. Though that determination I'm sure is only a fraction of a millisecond especially after the first use. If we got, it still might be wise to do the same thing (i.e., set a variable to so the same variable is used instead throughout the script rather than XY having to determine for each if or elseif statement). We're only obtaining the "ext" of the (via $selext variable) one time and using it for the remainder of the script and that's extremely quick. Though may still be nice to have in our back pocket, I'm not sure speed wise if it would make much of a difference.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |