It is currently Sun Dec 17, 2017 6:02 pm

All times are UTC - 8 hours [ DST ]


Forum rules


Please, keep discussions on topic and in the right forum. The start menu topics go into the Classic Start Menu forum, etc. This makes it easier for people to locate topics they are looking for.
If you get a satisfactory response to your question, please mark the topic as "solved". Click the green √ button in the bottom-right of the post.



Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: Tue May 26, 2015 8:53 am 
Offline

Joined: Tue May 26, 2015 8:22 am
Posts: 2
How can i add command "new notepad" to toolbar button ?

Custom button have a "new folder" command, but don't have a "new notepad" command to quickly create the new notepad in window. Notepad is a often use command too.

please answer me.

classicshell 4.0.4


Top
 Profile  
Reply with quote  
PostPosted: Tue May 26, 2015 9:11 am 
Offline
User avatar

Joined: Thu Jan 03, 2013 12:38 am
Posts: 5340
By new notepad, you mean only opening a new instance of Notepad or new text document in the current folder where you are browsing?

For only opening Notepad, add a Custom command to the toolbar. To add a Custom button, open Classic Explorer Settings and go to the Toolbar Buttons tab. In the right column, scroll all the way down and drag the Custom item from the right column to the left and position it where you want.

Then double click "Custom" and in the command field, type: C:\Windows\notepad.exe. Pick an icon and label if you want.

If you want to add a button to a create a new text file, use this command instead in the Custom button: notepad "%1%\New Text Document.txt". This will start Notepad and it will ask to create a new text document in the current folder where you are.

_________________
Links to some general topics:

Compare Start Menus

Read the Search box usage guide.

I am a Windows enthusiast and Classic Shell tester.


Top
 Profile  
Reply with quote  
PostPosted: Tue May 26, 2015 9:53 am 
Offline

Joined: Tue May 26, 2015 8:22 am
Posts: 2
Thanks, it's work. :)


Top
 Profile  
Reply with quote  
PostPosted: Wed Jul 08, 2015 4:38 pm 
Offline

Joined: Wed Jul 08, 2015 4:32 pm
Posts: 1
Hi - PLEASE HELP! I used the suggested command to create a CUSTOM TOOLBAR button that creates a
"New Text Document.txt" (at the current location/within current folder)

BUT EACH TIME I USE THIS BUTTON I get a popup box "New Text Document.txt" was not found at this location. Create new document at this location?" You must click yes to continue.

It's very irritating. PLEASE HELP!!!!

Thanks.
str8arrow


Top
 Profile  
Reply with quote  
PostPosted: Wed Jul 08, 2015 9:04 pm 
Offline
User avatar

Joined: Thu Jan 03, 2013 12:38 am
Posts: 5340
Well that's how it's supposed to be. The command does not itself create the new document. It starts Notepad and tells it to create the new document called "New text document.txt" if one doesn't exist already. Click Yes and the text file will be created.

_________________
Links to some general topics:

Compare Start Menus

Read the Search box usage guide.

I am a Windows enthusiast and Classic Shell tester.


Top
 Profile  
Reply with quote  
PostPosted: Sat Nov 26, 2016 12:05 am 
Offline

Joined: Fri Nov 25, 2016 11:55 pm
Posts: 4
Is there any way to emulate exactly the behaviour you see when right-clicking the whitespace of a folder and choosing New-Text Document?

ie. a text file is created in current folder with title text highlighted ready for renaming.


I went to the registry and found the ShellNew key for .txt files, the ItemName string has value "@%SystemRoot%\system32\notepad.exe,-470"
I hoped this could put into the command field of the custom button, but unfortunately didnt work..


Top
 Profile  
Reply with quote  
PostPosted: Sat Nov 26, 2016 1:48 am 
Offline
User avatar

Joined: Thu Jan 03, 2013 12:38 am
Posts: 5340
No there isn't.

_________________
Links to some general topics:

Compare Start Menus

Read the Search box usage guide.

I am a Windows enthusiast and Classic Shell tester.


Top
 Profile  
Reply with quote  
PostPosted: Sat Nov 26, 2016 4:04 pm 
Offline

Joined: Fri Nov 25, 2016 11:55 pm
Posts: 4
Ok thanks.


Top
 Profile  
Reply with quote  
PostPosted: Sun Jun 04, 2017 5:32 am 
Offline

Joined: Sat Mar 16, 2013 2:27 pm
Posts: 23
nathan323 wrote:
Is there any way to emulate exactly the behaviour you see when right-clicking the whitespace of a folder and choosing New-Text Document?

ie. a text file is created in current folder with title text highlighted ready for renaming.

Not exactly the same thing, but may help
https://superuser.com/questions/1091268 ... y-a-hotkey


Top
 Profile  
Reply with quote  
PostPosted: Sat Aug 26, 2017 6:58 am 
Offline

Joined: Fri Nov 25, 2016 11:55 pm
Posts: 4
Thankyou Stamimail, this gave me the kickstart to work on this again. I checked out old mates script idea and the problem was it depended on where the mouse was positioned to work properly. I've now got a working Autohotkey script that factors this in, works great.

Code:
SetMouseDelay, 0

MouseGetPos, mouseposX
ControlGetPos, , buttonY, , , ToolbarWindow325, A ; gets

RestoreClip := Clipboard
Send !d
Sleep 10
FolderPath := Clip()

buttonY += 86
MouseMove, %mouseposX%, %buttonY%

Click, Right
Sleep, 10
SendRaw, wt

Clipboard := RestoreClip

ExitApp
Return


Set the saved script as button Command in Classic Shell and will be good to go.


Top
 Profile  
Reply with quote  
PostPosted: Sun Sep 03, 2017 5:37 am 
Offline

Joined: Sat Mar 16, 2013 2:27 pm
Posts: 23
Note that this command available also via Explorer Menu:
In Explorer:
Alt or F10 > File > New


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group, Almsamim WYSIWYG Classic Shell © 2010-2016, Ivo Beltchev.
All right reserved.