Page 1 of 1
Right Click on White Space mouse behavior
Posted: 28 Sep 2015 15:33
by klownboy
Hi Don, I noticed a difference in the behavior of Right Click on WhiteSpace in recent days following
beta v15.80.0002 v15.60.0015 . In the past we could generate an action via a script placed in the "CEA_ListRightClickOnWhite_Script=" in XYplorer.ini whether it was to run a program or bring up a menu by
right click dragging from white space outside the filename to within the filename to highlight the file or multiple files. Now that doesn't work - the file is highlighted, but the assigned ListRightClickOnWhite action does not work. It seems like the difference between a mouse down reaction (as it was before) versus a mouse release action as it is now (i.e., WhiteSpace action is now being triggered on mouse release vs mouse down). Was there an unintentional change in this behavior? It was kind of nice to be able to start a right click on white and drag into the filename and have an appropriate menu display as oppose to separately selecting a filename and then clicking on white. Stef123 confirmed this behavior change
here. Thanks
Edit: changed the beta version time. See next post.
Re: Right Click on White Space mouse behavior
Posted: 28 Sep 2015 16:26
by klownboy
Don concerning the above behavior, I went back I tried a number of previous revisions. The old behavior worked in version 15.60.0015 and changed or didn't work in version 15.70.0001. So possibly it was the copy/move drag and drop change in behavior described in v15.70.0000 that changed the ListRightClickonWhite.
Re: Right Click on White Space mouse behavior
Posted: 29 Sep 2015 22:02
by tedy
Testing the latest 15.80 as well.
The same problem (I guess) - Just right clicking on a blank space in the (Details) list to bring the context menu up became a real Pain. Most of the time when right clicking I seem to move the cursor a little between the mouse down and mouse up. This results in about 70% of my attempts to open the menu to just do nothing. This is a very serious issue.
This thing alone is enough to never update to such a version. Because I can't see any benefit of this, but it brings only grief.
Please look into this, Don.
Re: Right Click on White Space mouse behavior
Posted: 27 Oct 2015 20:51
by klownboy
Don, I'm not sure if you had time yet to back track on the old bug reports since you returned. In the back of my mind I was hoping the change in beta 15.80.0201 might also correct this issue I reported above. It was nice to be able to start a right-click selection of file(s) from the white space into the files and the script associated with the right-click on white (CEA_ListRightClickOnWhite) would be run on the selected files. Now it does not. I'm not sure why that behavior changed. Thanks.
Re: Right Click on White Space mouse behavior
Posted: 01 Nov 2015 11:20
by admin
@tedy: cannot reproduce. Can anybody else?
@klownboy: what script is that? Show the code please.
Re: Right Click on White Space mouse behavior
Posted: 02 Nov 2015 00:55
by klownboy
Don, the script is the one I posted here...WhiteSpaceCtxMenu
http://www.xyplorer.com/xyfc/viewtopic.php?f=7&t=13831 By Wednesday I'll post some example code in a small script that works hand in hand with "CEA_ListRightClickOnWhite_Script=" when I return from a short trip to Florida. Thanks.
Re: Right Click on White Space mouse behavior
Posted: 02 Nov 2015 18:40
by klownboy
Hi Don. I got a chance to shorten up a little script so you could test this change in behavior discussed in the thread's first post. I don't want ot repeat what I wrote there so you may have to refer back to that post.
Code: Select all
$txt = <<<DOC
"Notepad|C:\Windows\notepad.exe" openwith "C:\Windows\notepad.exe";
"QuickFileView|:qfv" quickfileview "<selitem>";
DOC;
$CopyMove = <<<COMO
"Copy|:copyto" #5;
"Move|:moveto" #4;
"-"
"New|:newfolder" #230;
COMO;
if(exists("<selitem>") == 1) {
$selext = getpathcomponent("<selitem>", "ext");
if(gettokenindex($selext, "ini|txt|nfo|inf|reg|ps1|vbs|xys", '|', 'i')) {load "$txt;<crlf>-<crlf>$CopyMove", , s; end(1);}
}
This short script should be saved as "WhiteSpaceCtxMenu.xys" and invoked by the right click on List white space by making this change to xyplore.ini.
Code: Select all
CEA_ListRightClickOnWhite=6
CEA_ListRightClickOnWhite_Script=load "<xyscripts>\WhiteSpaceCtxMenu.xys"
This menu script example works with text type files. So to test, highlight a txt or ini or xys file in the list and then right click on white a simplified text menu should come up. I did test it. In the past you could do the selecting and bring up the menu all in on simple action...by right clicking and dragging starting in the white space into the text file and as soon as the file was hi-lighted you could release the mouse button and the menu would display. Now it does not. I only posted the WhiteSpaceCtxMenu script in April of this year and the right drag select and release technique worked for quite awhile up to some point discussed in post the first post.
I'm not positive what affected the behavior. The file by right click dragging is still being selected, but the right click on white is not being invoked maybe because of a change from mouse down to mouse up (i.e., previously the right action action on white was set in motion by the initial click down in white now it is not. It's where the mouse is released possibly since it's being released over the file)...just guessing? Thanks Don,
Ken
Re: Right Click on White Space mouse behavior
Posted: 08 Nov 2015 10:58
by admin
OK, will be better in next version.
Re: Right Click on White Space mouse behavior
Posted: 08 Nov 2015 20:19
by klownboy
Hi Don, I'm sorry to report that beta 15.90.0020 behavior does not work as it used to. After testing for the old behavior with my WhiteSpaceCtxMenu script, I then tried it again with the simpler example script I had posted above. Neither script worked as it did previously. Start a Right click selection in white space beside the file, in this case a text file, holding down and dragging slightly to where the file becomes selected and then release. In the past, the script menu associated with that file type extension was loaded/displayed (i.e., the script called out in CEA_ListRightClickOnWhite_Script). In the sample script, it was just a simple menu that was displayed based on the text file extension (i.e., txt, ini, xys). Now it brings up the normal context menu. I guess the bottom line is, somehow before the Right Click, hold and drag starting from white space and releasing over the file triggered the script listed in XYplorer - CEA_ListRightClickOnWhite_Script=... now it doesn't.
I suppose another way to put it - even thought the right click/hold and drag was released over the file because it was started in white space the CEA_ListRightClickOnWhite_Script was loaded. Thanks.
Re: Right Click on White Space mouse behavior
Posted: 08 Nov 2015 20:23
by admin
I think I explained that in the change log:
Code: Select all
It's even a little cleverer now than before: When MouseUp is on white you
get the white space context menu, when it's on an item you the item's
context menu.
Re: Right Click on White Space mouse behavior
Posted: 08 Nov 2015 21:35
by klownboy
I did read the beta notes, but the whole purpose of this thread was the change in behavior when the right click drag (starting in white space) in "combination" with the file selection. In other words, when the script assigned in "CEA_ListRightClickOnWhite_Script=" depends on the type file being selected/highlighted by the right drag from white space, it doesn't not run as it did previously. Previously, the script would be run (because you initiated the right drag in white space) and the proper script menu would be displayed based on the type file being selected <selitem> all in one swoop. It was actually a very useful behavior because you didn't have to first highlight the file(s) and then click on white space - you could do it all in one right click and drag.
Re: Right Click on White Space mouse behavior
Posted: 08 Nov 2015 21:50
by admin
Well, I can do that now. The whole point is to start the lasso in white and end it in white. And in between you select your files. No problem here.
Which list view are you in? Details? Thumbs?
Re: Right Click on White Space mouse behavior
Posted: 09 Nov 2015 01:03
by klownboy
Hi Don, yes, the method you mentioned works here too but that not how it worked before. Previously, you could start in white move into the file to select it and release and the menu specified in CEA_ListRightClickOnWhite_Script would display. As soon as the file(s) was highlighted, you could release and didn't need to continue moving into more white space and then release. Doing that is a bit counter productive as well as a bit tricky since it's easy to unselect the file moving the cursor back to white. You might as well just click to select and then click on white. It worked previously for details and list view. I'm not sure about the others though they probably worked as well. Thanks.
Re: Right Click on White Space mouse behavior
Posted: 09 Nov 2015 07:52
by admin
Yes, understood. But the new way is more correct and more versatile. It was simply wrong (or a nice "trick" as you say) to pop the white space menu when doing MouseUp on an item. Sorry, but I had to correct that. Explorer works the same, and he is right (this time).
Re: Right Click on White Space mouse behavior
Posted: 09 Nov 2015 13:52
by klownboy
Hi Don, I thought it was a slick feature when used in conjunction with a script that performed actions or brought up a menu based on detecting the file type. Especially now since you can perform different actions or menus dependent on the modifier key held down. But, I figured though it went against the grain. Oh well, can't blame a person for trying.
