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

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
GenericCitizen-X2017
Posts: 6
Joined: 18 May 2016 20:31

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

Post by GenericCitizen-X2017 »

Hello,
is it possible to assign a keyboard shortcut to the "Show 64-bit Context Menu" command?

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

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

Post 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
One of my scripts helped you out? Please donate via Paypal

GenericCitizen-X2017
Posts: 6
Joined: 18 May 2016 20:31

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

Post by GenericCitizen-X2017 »

Thank you for your response.

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

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

Post 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!

GenericCitizen-X2017
Posts: 6
Joined: 18 May 2016 20:31

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

Post 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.

admin
Site Admin
Posts: 67299
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

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

Post by admin »

Wowee, not bad, TheQwerty! :appl:

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

m48tx
Posts: 333
Joined: 07 May 2010 18:07
Location: Windows 11 Pro 26H2, Scaling 100%

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

Post 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.
Last edited by m48tx on 14 Jun 2016 14:16, edited 1 time in total.

admin
Site Admin
Posts: 67299
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

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

Post by admin »

Select a file, hold down CTRL, press and release the Menu key -> 64-bit Context Menu should pop up.

PeterH
Posts: 2830
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

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

Post 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?

LittleBiG
Posts: 1848
Joined: 08 Apr 2011 12:57
Location: Win10x64

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

Post by LittleBiG »

Jeez, I also tried to use the Ctrl+StartMenuWin button on the left... embarassing. Thanks, PeterH.
Last edited by LittleBiG on 14 Jun 2016 13:07, edited 1 time in total.

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

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

Post 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.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

PeterH
Posts: 2830
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

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

Post 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?

admin
Site Admin
Posts: 67299
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

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

Post 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. :)

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

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

Post 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.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

Filehero
Posts: 2734
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

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

Post by Filehero »

admin wrote:Get a new keyboard. :)
Abandon my beloved Logitech Illuminated Keyboard? :shock:
Never! :naughty:

:ball: Schweini! :biggrin: :appl:

Post Reply