mtb0minime
minimember
+2,418|6915

All I want to do is have ctrl+alt+S do the following sequence of buttons: F2, Home, Del, Del, Del, Enter. (Used to rename music files, delete the track numbers at the beginning).

I wrote in the sample script they provided:

Code:

^!s::
F2 Home Del Del Del {Enter}
I reload the script and it tells me that it's an unrecognized command. I imagine it's something to do with the F2 button? I tried reading the user manual and from what I can gather, that's the correct title for the key. I'm completely new to this, any help will be appreciated
bugz
Fission Mailed
+3,311|6572

I'm sure there's an easier way of doing it, but this works...

Code:

^!s::

send, {F2} 
sleep, 100
send, {Home}
sleep, 100
send, {Del}
sleep, 100
send, {Del}
sleep, 100
send, {Del}
sleep, 100
send, {Enter}
mtb0minime
minimember
+2,418|6915

Hey, as long as it works. Thanks so much!
bugz
Fission Mailed
+3,311|6572

No problem

You could also try looking up a batch file renamer. It'd allow you to select multiple files and have it rename/delete characters from the name all at once.

Last edited by ebug9 (2009-04-14 20:06:01)

Mugen
Member
+19|6259

ebug9 wrote:

I'm sure there's an easier way of doing it, but this works...

Code:

^!s::
Loop, xx <--- number of tracks
{
send, {F2} 
sleep, 100
send, {Home}
sleep, 100
send, {Del}
sleep, 100
send, {Del}
sleep, 100
send, {Del}
sleep, 100
send, {Enter}
sleep, 100
send {Down}
sleep, 100
}
change the xx above and you only need to press it once while highlighting the very first track

Last edited by Mugen (2009-04-15 05:22:10)

bugz
Fission Mailed
+3,311|6572

Mugen wrote:

ebug9 wrote:

I'm sure there's an easier way of doing it, but this works...

Code:

^!s::
Loop, xx <--- number of tracks
{
send, {F2} 
sleep, 100
send, {Home}
sleep, 100
send, {Del}
sleep, 100
send, {Del}
sleep, 100
send, {Del}
sleep, 100
send, {Enter}
sleep, 100
send {Down}
sleep, 100
}
change the xx above and you only need to press it once while highlighting the very first track
If you're looping, wouldn't you need "return" at the end? Also, how would you select the next track once the first one has been done?
Mugen
Member
+19|6259
oh forgot the "return". ^^

anyway these 2 last lines are important for the loop:

Code:

send {Down}
sleep, 100
}
I kinda explained it not thoroughly enough, I guess.
And you need to set your explorer view accordingly.

It worked perfectly for me, until I got the idea that there should be a dedicated program out there for that kind of task.
I'm using "file renamer deluxe" now.




Uh btw I found this really nice script:

Code:

; ***** File Extensions *****
Appskey & M Up::
RegRead, HiddenFiles_Status, HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced, HideFileExt
If HiddenFiles_Status = 1 
RegWrite, REG_DWORD, HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced, HideFileExt, 0
Else 
RegWrite, REG_DWORD, HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced, HideFileExt, 1
WinGetClass, eh_Class,A
If (eh_Class = "#32770" OR A_OSVersion = "WIN_VISTA")
send, {F5}
Else PostMessage, 0x111, 28931,,, A
Return
Upon pressing the Appskey and M, you can toggle between hiding and showing file extensions. Really handy imo.

Last edited by Mugen (2009-04-15 10:25:51)

Kmar
Truth is my Bitch
+5,695|6861|132 and Bush

I just started playing around with it.

Here's a very basic script. My own bbcode box here at bf2s..lol


Xbone Stormsurgezz
tazz.
oz.
+1,338|6435|Sydney | ♥

I♥g15
everything i write is a ramble and should not be taken seriously.... seriously.
Kmar
Truth is my Bitch
+5,695|6861|132 and Bush

tazz. wrote:

I♥g15
I'm pretty sure this is a lot lighter and more versatile.
Xbone Stormsurgezz
HaiBai
Your thoughts, insights, and musings on this matter intrigue me
+304|5744|Bolingbrook, Illinois
AutoHotKey is the worst "language" ever created.  I can make you a script in AutoIt in 5 seconds if you want.

Board footer

Privacy Policy - © 2025 Jeff Minard