Trying to make a toolbar button

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Irwin of Upton
Posts: 131
Joined: 28 Feb 2015 19:42

Trying to make a toolbar button

Post by Irwin of Upton »

Is the a way to make these lines - saved as SCF file - into a script run by a button located on the Toolbar?

"[Shell]
Command=2
IconFile=explorer.exe,3
[Taskbar]"

From: http://www.online-tech-tips.com/windows ... windows-7/

Have made various attempts with Run and Load without success.

eil
Posts: 1866
Joined: 13 Jan 2011 19:44

Re: Trying to make a toolbar button

Post by eil »

am i right t understand yu want button to create file with these lines? if yes your approach is wrong, use XY New abilities.
Win 7 SP1 x64 100% 1366x768|1900x1080

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: Trying to make a toolbar button

Post by SkyFrontier »

Interesting question.
Even if called from C:\Users\[user]\Desktop\, the .scf file refuses to run.
Unsupported sendkeys doesn't seem to support emulation of windows key (so Win+D could work).
Maybe a bat-file solution could pop up and solve this...?

For the time being, use
run "%windir%\explorer.exe shell:::{3080F90D-D7AD-11D9-BD98-0000947B0257}";

-but this fails to restore minimized windows back again (toggle).
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

Irwin of Upton
Posts: 131
Joined: 28 Feb 2015 19:42

Re: Trying to make a toolbar button

Post by Irwin of Upton »

A bow and tip of the hat to SkyFrontier. Understand how your line of code functions even less that the SCF file. However, it does work and does exactly the job to be done.

Thank you for your time and help!

Post Reply