Page 1 of 2

Key Shortcut for "Show 64-bit Context Menu"?

Posted: 25 May 2016 13:18
by GenericCitizen-X2017
Hello,
is it possible to assign a keyboard shortcut to the "Show 64-bit Context Menu" command?

Re: Key Shortcut for "Show 64-bit Context Menu"?

Posted: 25 May 2016 13:23
by highend
Afaik not, you can only show it by default by enabling:
Configuration | Shell Integration | 64-bit Windows | Show the 64-bit context menu

Re: Key Shortcut for "Show 64-bit Context Menu"?

Posted: 25 May 2016 13:45
by GenericCitizen-X2017
Thank you for your response.

Re: Key Shortcut for "Show 64-bit Context Menu"?

Posted: 25 May 2016 15:19
by TheQwerty
Hi and welcome to the club GenericCitizen-X2017!

If you are using the pro version and have scripting enabled then this is possible.

But first, I should note that this method is not officially supported - Don and Mesh might change how this menu works in the future with no regard to how we've abused things. Just be aware that this could break. ;)


The 64-bit context menu is a separate program named ContextMenu64.exe in the same directory as XYplorer.exe. To run it you must provide the path to a text file containing a list of items that are selected - one item per a line and ending with an empty line.

Thus, it's just a case of creating that item list file and running the program.

This script should work:

Code: Select all

"Show 64-bit Context Menu|<xypath>\ContextMenu64.exe|1"
  // Get current selection.
  $items = Get('SelectedItemsPathNames');

  // If nothing is selected use current path.
  if ($items == '') {
    $items = <curpath>;
  }

  // Write list of files to a temp file.
  $fileList = "%tmp%\XY-x64ContextMenu.txt";
  $res = writefile($fileList, $items . <crlf>, 'r', 'tu');
  End $res LikeI '[0246]*', 'Could not write temp file.';

  // If temp file was renamed to avoid collision, get new name.
  if ($res LikeI '*|*') {
    $fileList = GetToken($res, 2, '|');
  }

  // Call 64-bit Context Menu
  openwith "<xypath>\ContextMenu64.exe", 's', $fileList;

  // Wait 5 seconds.
  // TODO: Shorten this - experiment to find what works.
  wait 5000;

  // Delete our temp file.
  delete 0, 0, $fileList;
For instructions on how to use this script please see this thread: http://www.xyplorer.com/xyfc/viewtopic.php?f=7&t=5750
Those instructions might be a little dated - so please let me know if you run into any problems or have any suggestions for improvements.


Hope that helps!

Re: Key Shortcut for "Show 64-bit Context Menu"?

Posted: 12 Jun 2016 18:12
by GenericCitizen-X2017
Very nice,
thank you, works as expected! :appl: :tup:

Now CTRL+ALT+X Opens the 64-Menu.
I used User Defined Commands and a Script File in the Scripts-Folder.

Re: Key Shortcut for "Show 64-bit Context Menu"?

Posted: 13 Jun 2016 11:21
by admin
Wowee, not bad, TheQwerty! :appl:

Nevertheless, next beta I experimentally will force 64-bit menu on Ctrl+Menu Key.

Re: Key Shortcut for "Show 64-bit Context Menu"?

Posted: 13 Jun 2016 22:50
by m48tx
OK. In my continued stupid mode ... I cannot get Ctrl+Menu Key to do anything (Win7 64-bit, show 64bit context off) in 16.90.0208. Ugh. Can you be very specific how to get this to work?

The Resident Idiot,
Gary

Update: OK. I was using Ctrl+Win key. My fancy Logitech keyboard does not have a Menu key. Oh well.

Re: Key Shortcut for "Show 64-bit Context Menu"?

Posted: 14 Jun 2016 11:09
by admin
Select a file, hold down CTRL, press and release the Menu key -> 64-bit Context Menu should pop up.

Re: Key Shortcut for "Show 64-bit Context Menu"?

Posted: 14 Jun 2016 12:35
by PeterH
Seems we don't know what the Menu key is?

Near the right Ctrl I find FN (keyboard-local use) and AltGr. (Right are the cursor keys.) But Menu?
Do you have some special keyboard?

Re: Key Shortcut for "Show 64-bit Context Menu"?

Posted: 14 Jun 2016 12:43
by LittleBiG
Jeez, I also tried to use the Ctrl+StartMenuWin button on the left... embarassing. Thanks, PeterH.

Re: Key Shortcut for "Show 64-bit Context Menu"?

Posted: 14 Jun 2016 12:50
by bdeshi
PSA: More about the menu key: https://en.wikipedia.org/wiki/Menu_key . This key may not be present in all keyboards. Bring out your inner geek for solutions.

Re: Key Shortcut for "Show 64-bit Context Menu"?

Posted: 14 Jun 2016 13:19
by PeterH
Hm - do I have a special keyboard :?:

In wiki I see Menu is a key showing some 'lines'. Don said it's right, Sammay said it's left? But I don't find it anywhere!
(Left aside the Ctrl is the Win key.)

OK: my keyboard is some years old - but not so much.

Ah: wiki says: "the Logitech Illuminated Keyboard has an FN key where the menu key is usually found"
I don't have illuminated, but Logitech - and left of right-Ctrl there is FN :shock:
:arrow: FN + PrtScn (German: Drucken) does show default Menu (like right click on filenumber), but ctrl + FN + PrtScn shows the same.

Any ideas?

Re: Key Shortcut for "Show 64-bit Context Menu"?

Posted: 14 Jun 2016 13:35
by admin
Shift+F10 is an alternative for the Menu key. But the "Show 64-bit Context Menu" trick will not work here (Ctrl+Shift+F10 -> :naughty: ). Get a new keyboard. :)

Re: Key Shortcut for "Show 64-bit Context Menu"?

Posted: 14 Jun 2016 15:19
by bdeshi
PeterH wrote: Sammay said it's left? But I don't find it anywhere!
Hey, I never said that! :kidding: CTRL key -- left or right -- doesn't matter. Paraphrasing Don, you should get a new keyboard.

Re: Key Shortcut for "Show 64-bit Context Menu"?

Posted: 14 Jun 2016 15:25
by Filehero
admin wrote:Get a new keyboard. :)
Abandon my beloved Logitech Illuminated Keyboard? :shock:
Never! :naughty:

:ball: Schweini! :biggrin: :appl: