Need Hotkeys script

Can someone please help me with a Hotkeys script to open a new folder wherever the courser happens to be.  In other words it could be on the desktop or an explorer window.  The Windows shortcut is Control/Shift N or ^, +, N.  I haven't been able to make it work for me.
Thanks
camtzAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Joe Winograd, Fellow&MVEDeveloperCommented:
Hi Carlos,
a Hotkeys script
I presume you mean an AutoHotkey script, but if not, let me know. That said, you don't really need an AutoHotkey script for it because Shift+Ctrl+N works when the cursor is (1) in Windows/File Explorer, creating a new subfolder in the folder where it is and (2) on the desktop, creating a new folder on the desktop. Regards, Joe
0
camtzAuthor Commented:
I know but I'm lazy.  I want to be able to hit control n and have a new folder.  I tough you could somehow use the Windows shortcuts in AutoHotkeys.  Thanks Joe.  Good to hear from you again.
0
Joe Winograd, Fellow&MVEDeveloperCommented:
I want to be able to hit control n and have a new folder.
OK, no problem. I presume that you already have an AutoHotkey script that runs at Windows start-up and contains your hotkeys and hotstrings. Just add this one to it:

$^n::Send +^n
Return

Open in new window

That will send Shift+Ctrl+N whenever you hit Ctrl+N. Regards, Joe
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
camtzAuthor Commented:
Boy you know your stuff.  Works like a charm.  Many, many thanks
0
Joe Winograd, Fellow&MVEDeveloperCommented:
You're welcome, Carlos. One other thing that just occurred to me. You may want to use Ctrl+N in that way only on the desktop and in Windows/File Explorer, since other programs are likely to use Ctrl+N differently. So you'll need an enhanced hotkey that sends Shift+Ctrl+N only when in Windows/File Explorer (ActiveClass="CabinetWClass") or on the desktop (ActiveClass="Progman"); in all other cases, it sends just Ctrl+N. Here's the enhanced code:

$^n::
WinGetClass,ActiveClass,A
If ((ActiveClass="CabinetWClass") or (ActiveClass="Progman"))
  Send +^n
Else
  Send ^n
Return

Open in new window

Regards, Joe
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Hotkeys

From novice to tech pro — start learning today.