show Start menu - would this be possible ?

Discuss and share scripts and script files...
Post Reply
little titty
Posts: 81
Joined: 15 Nov 2009 19:34

show Start menu - would this be possible ?

Post by little titty »

would it be possible to call up the start menu via a script (that could be linked to a toolbar button) ? I tried myself but the script only opened the startmenu folder in the lister. I was trying to get a scrollable menu list like the start menu. Is xyplorer capable of this?
Why doesn't everybody have a great user name like mine?

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: show Start menu - would this be possible ?

Post by zer0 »

Not using XY scripting. One would have to write an actual application that would call start menu at cursor's position -- quite tricky and not in XY's scope.
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: show Start menu - would this be possible ?

Post by serendipity »

little titty wrote:would it be possible to call up the start menu via a script (that could be linked to a toolbar button) ? I tried myself but the script only opened the startmenu folder in the lister. I was trying to get a scrollable menu list like the start menu. Is xyplorer capable of this?
One could send keystrokes to computer in XY using command sendkeys (undocumented command). For example typing ::sendkeys "{F1}"; in addressbar will open help file.
Shortcut for start menu is control+Escape, so ::sendkeys "^{ESC}"; should work. But it does not seem to work for me. Maybe Don has disabled sending escape. No other ideas right now.

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

Re: show Start menu - would this be possible ?

Post by TheQwerty »

serendipity wrote:One could send keystrokes to computer in XY using command sendkeys (undocumented command). For example typing ::sendkeys "{F1}"; in addressbar will open help file.
Shortcut for start menu is control+Escape, so ::sendkeys "^{ESC}"; should work. But it does not seem to work for me. Maybe Don has disabled sending escape. No other ideas right now.
The command works, but it's sending it to XY's control instead of Windows/the taskbar, so I'm not sure it could be used as a solution.

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: show Start menu - would this be possible ?

Post by zer0 »

TheQwerty wrote:
serendipity wrote:One could send keystrokes to computer in XY using command sendkeys (undocumented command). For example typing ::sendkeys "{F1}"; in addressbar will open help file.
Shortcut for start menu is control+Escape, so ::sendkeys "^{ESC}"; should work. But it does not seem to work for me. Maybe Don has disabled sending escape. No other ideas right now.
The command works, but it's sending it to XY's control instead of Windows/the taskbar, so I'm not sure it could be used as a solution.
Also, the menu would open in its orthodox location as opposed to where mouse cursor is...at least that is what is wanted in my interpretation of OP's post.
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

little titty
Posts: 81
Joined: 15 Nov 2009 19:34

Re: show Start menu - would this be possible ?

Post by little titty »

OK just an idea, and i wondered if it was even possible.
But I am glad I asked as that sendkeys command looks really interesting!
Why doesn't everybody have a great user name like mine?

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: show Start menu - would this be possible ?

Post by serendipity »

TheQwerty wrote:
serendipity wrote:One could send keystrokes to computer in XY using command sendkeys (undocumented command). For example typing ::sendkeys "{F1}"; in addressbar will open help file.
Shortcut for start menu is control+Escape, so ::sendkeys "^{ESC}"; should work. But it does not seem to work for me. Maybe Don has disabled sending escape. No other ideas right now.
The command works, but it's sending it to XY's control instead of Windows/the taskbar, so I'm not sure it could be used as a solution.
True, that doesn't seem to work. I guess one can use nircmd.exe to achieve this. I'll give it a try.
update: I have this assigned to the button.

Code: Select all

 run "nircmd.exe sendkey ctrl down";
 run "nircmd.exe sendkey esc down";
 run "nircmd.exe sendkey esc up";
 run "nircmd.exe sendkey ctrl up";
But ofcourse start menu pops up in the usual position, not near the button.

arirish
Posts: 93
Joined: 13 May 2008 13:52

Re: show Start menu - would this be possible ?

Post by arirish »

Shame... that would be REALLY cool.

Post Reply