Page 1 of 1
Trying to make a toolbar button
Posted: 18 May 2015 21:07
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.
Re: Trying to make a toolbar button
Posted: 18 May 2015 21:31
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.
Re: Trying to make a toolbar button
Posted: 18 May 2015 22:25
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).
Re: Trying to make a toolbar button
Posted: 19 May 2015 18:13
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!