DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Idea: Renaming Shortcut  (Read 4,924 times)

Smobu

  • Participant
  • Joined in 2008
  • *
  • Posts: 51
Idea: Renaming Shortcut
« on: June 19, 2009, 05:22 AM »
Idea: Renaming Shortcut

Sometimes I want to automatically use whatever I have in the clipboard and rename the file that is higlighted.
Could someone make a script that send F2, paste and enter to rename a file with the hotkey combination alt 6?

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: Idea: Renaming Shortcut
« Reply #1 on: June 19, 2009, 05:46 AM »
AutoHotkey code:

Code
!6:: SendInput {F2}^v{ENTER}

Smobu

  • Participant
  • Joined in 2008
  • *
  • Posts: 51
Re: Idea: Renaming Shortcut
« Reply #2 on: June 19, 2009, 06:09 AM »
This works and thanks for this code.

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: Idea: Renaming Shortcut
« Reply #3 on: June 19, 2009, 06:14 AM »
You're welcome...happy to help.

Original address: https://www.donationcoder.com/forum/index.php?topic=18849.0