 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Bkid
Joined: 26 Sep 2005 Posts: 44 Location: Hephzibah, GA
|
Posted: Wed Aug 02, 2006 12:16 pm Post subject: Pixren, renames files into a numerical list. |
|
|
It's simple. Enter a number, press a key, and all of the files in your folder are renamed into a numerical list. Very simple interface (too simple right now Wink), but it's very new, so I'm working on it. Download link at the bottom.
READ THE README/INSTRUCTIONS FIRST. It's not that hard to figure out, but you can screw it up if you don't do it right.
This code was originally meant to rename files such as pages of a comic before you upload them to a site, or just to organize files in general. It's originally meant for pictures, but I guess it could be used for other things. I'll update it whenever I can.
| Code: | #SingleInstance ignore
msgbox, 1, Pixren, Thank you for using Pixren Picture Renamer by Bkid.`nPlease read the included Readme and Instructions before using this program.
IfMsgBox, Cancel
exitapp
Main:
Gui, Add, Text,, How many pictures are in the folder?
Gui, Add, Edit, limit3 Number vnumofpics,
Gui, Add, Button, Default xm+130 y+-22, &OK
Gui, Add, Button, xm+-10, Create Test Folder
Gui, Add, Button, xm+130 y+-22,Exit
GuiClose:
Gui, Show, W 190 H 80 Center, Pixren
return
ButtonCreateTestFolder:
Gosub, folder
ButtonExit:
exitapp
return
ButtonOK:
Gui, Submit
if (numofpics > 199)
{
MsgBox, This Program does not allow over 200 pictures to be`nrenamed at one time. Please enter a lower value.
Gui, Show, W 190 H 80 Center, Pixren
return
}
else if (numofpics < 200)
{
goto, Start
}
Start:
MsgBox,, Pixren, Press HOME to begin or END to exit.
End::
MsgBox, Application Closed. Thank you for using Pixren!
exitapp
Home::
BlockInput, On
BlockInput, Mouse
picnum = 1
Loop, %numofpics%
{
Send {F2}
send %picnum%
send {Enter}
send {down}
EnvAdd, picnum, 1
}
BlockInput, Off
Sleep, 2000
Msgbox, All the pics have been renamed. The script will now exit.`nThank you for using Pixren Picture Renamer!
exitapp
folder:
FileCreateDir, %A_ScriptDir%\test folder\
sleep 3000
FileAppend,,%A_ScriptDir%\test folder\aaaaaaaaaaaaaaaa.bmp
FileAppend,,%A_ScriptDir%\test folder\aegbveardhbead.bmp
FileAppend,,%A_ScriptDir%\test folder\all4ubabah.bmp
FileAppend,,%A_ScriptDir%\test folder\allworkbybkid.bmp
FileAppend,,%A_ScriptDir%\test folder\anothername.bmp
FileAppend,,%A_ScriptDir%\test folder\asdf.bmp
FileAppend,,%A_ScriptDir%\test folder\asdfabwadf.bmp
FileAppend,,%A_ScriptDir%\test folder\bananza.bmp
FileAppend,,%A_ScriptDir%\test folder\bmpimagelol.bmp
FileAppend,,%A_ScriptDir%\test folder\borednow.bmp
FileAppend,,%A_ScriptDir%\test folder\boring.bmp
FileAppend,,%A_ScriptDir%\test folder\CS.bmp
FileAppend,,%A_ScriptDir%\test folder\CSS.bmp
FileAppend,,%A_ScriptDir%\test folder\CZ.bmp
FileAppend,,%A_ScriptDir%\test folder\dur.bmp
FileAppend,,%A_ScriptDir%\test folder\dvorak.bmp
FileAppend,,%A_ScriptDir%\test folder\equalstuff.bmp
FileAppend,,%A_ScriptDir%\test folder\er.bmp
FileAppend,,%A_ScriptDir%\test folder\euaeuaeueuaeuaeuae.bmp
FileAppend,,%A_ScriptDir%\test folder\fawrtnrdgfashb.bmp
FileAppend,,%A_ScriptDir%\test folder\ffr.bmp
FileAppend,,%A_ScriptDir%\test folder\fkglgkgklflhsdfl.bmp
FileAppend,,%A_ScriptDir%\test folder\forlawina.bmp
FileAppend,,%A_ScriptDir%\test folder\fsdsdsdsdsd.bmp
FileAppend,,%A_ScriptDir%\test folder\gabrsdfbnhtrsd.bmp
FileAppend,,%A_ScriptDir%\test folder\garsfbdsghtji.y.bmp
FileAppend,,%A_ScriptDir%\test folder\haxlol.bmp
FileAppend,,%A_ScriptDir%\test folder\heehee.bmp
FileAppend,,%A_ScriptDir%\test folder\heh.bmp
FileAppend,,%A_ScriptDir%\test folder\jeezwtf.bmp
FileAppend,,%A_ScriptDir%\test folder\jesuslol.bmp
FileAppend,,%A_ScriptDir%\test folder\lessstuff.bmp
FileAppend,,%A_ScriptDir%\test folder\lolhee.bmp
FileAppend,,%A_ScriptDir%\test folder\lolmorbius.bmp
FileAppend,,%A_ScriptDir%\test folder\lolomg.bmp
FileAppend,,%A_ScriptDir%\test folder\macro.bmp
FileAppend,,%A_ScriptDir%\test folder\MASH.bmp
FileAppend,,%A_ScriptDir%\test folder\media.bmp
FileAppend,,%A_ScriptDir%\test folder\moo.bmp
FileAppend,,%A_ScriptDir%\test folder\morestuff.bmp
FileAppend,,%A_ScriptDir%\test folder\mx.bmp
FileAppend,,%A_ScriptDir%\test folder\New Bitmap Image.bmp
FileAppend,,%A_ScriptDir%\test folder\nnnnddddd.bmp
FileAppend,,%A_ScriptDir%\test folder\notpron.bmp
FileAppend,,%A_ScriptDir%\test folder\ntsdghteghsgd.bmp
FileAppend,,%A_ScriptDir%\test folder\ogg.bmp
FileAppend,,%A_ScriptDir%\test folder\ohmy.bmp
FileAppend,,%A_ScriptDir%\test folder\ololol.bmp
FileAppend,,%A_ScriptDir%\test folder\ooa.bmp
FileAppend,,%A_ScriptDir%\test folder\oooo shi.bmp
FileAppend,,%A_ScriptDir%\test folder\pppqqqLOL.bmp
FileAppend,,%A_ScriptDir%\test folder\professional.bmp
FileAppend,,%A_ScriptDir%\test folder\remoke.bmp
FileAppend,,%A_ScriptDir%\test folder\qwerty.bmp
FileAppend,,%A_ScriptDir%\test folder\reeeeeeeeeeeeeee.bmp
FileAppend,,%A_ScriptDir%\test folder\rrrrrrrrrttttttttt.bmp
FileAppend,,%A_ScriptDir%\test folder\semipron.bmp
FileAppend,,%A_ScriptDir%\test folder\stuff.bmp
FileAppend,,%A_ScriptDir%\test folder\teehee.bmp
FileAppend,,%A_ScriptDir%\test folder\tnyksdhjrdybs.bmp
FileAppend,,%A_ScriptDir%\test folder\toe.bmp
FileAppend,,%A_ScriptDir%\test folder\totallynotmeeeh.bmp
FileAppend,,%A_ScriptDir%\test folder\tttttttttttttttt.bmp
FileAppend,,%A_ScriptDir%\test folder\twothousandandfour.bmp
FileAppend,,%A_ScriptDir%\test folder\weeeeeeebo.bmp
FileAppend,,%A_ScriptDir%\test folder\weeeeeeeeee.bmp
FileAppend,,%A_ScriptDir%\test folder\weeeeeeeeeeee.bmp
FileAppend,,%A_ScriptDir%\test folder\whaaaaa.bmp
FileAppend,,%A_ScriptDir%\test folder\woah.bmp
FileAppend,,%A_ScriptDir%\test folder\wtf.bmp
MsgBox,, Pixren, Folder Created.
return |
Download:
http://autohotkey.net/~Bkid/Pixren/Pixren.zip _________________ --Bkid-- |
|
| Back to top |
|
 |
Eleria
Joined: 09 May 2006 Posts: 92
|
|
| Back to top |
|
 |
Laszlo
Joined: 14 Feb 2005 Posts: 4012 Location: Pittsburgh
|
Posted: Wed Aug 02, 2006 4:22 pm Post subject: |
|
|
| Would it make sense to enter a file search mask in the GUI, like "\c:\test dir\*.bmp", and show all the matching files in a listview? Here you can sort them with clicking on the corresponding header field, according to filename, extension or creation/last access time, and also you could allow manual reordering, deleting from the list etc. Only after this you would rename them. |
|
| Back to top |
|
 |
Bkid
Joined: 26 Sep 2005 Posts: 44 Location: Hephzibah, GA
|
Posted: Wed Aug 02, 2006 10:24 pm Post subject: |
|
|
| Laszlo wrote: | | Would it make sense to enter a file search mask in the GUI, like "\c:\test dir\*.bmp", and show all the matching files in a listview? Here you can sort them with clicking on the corresponding header field, according to filename, extension or creation/last access time, and also you could allow manual reordering, deleting from the list etc. Only after this you would rename them. |
Well I'm sorry mr. I-know-everything-about-AHK-EVER, this is just my second completed script ever. Plus, this is a BETA. Does beta mean anything anymore? The first stage was to get the point across about what this is supposed to DO. After that, I'll clean it up and fix a few things... _________________ --Bkid-- |
|
| Back to top |
|
 |
Kerry
Joined: 20 Jul 2006 Posts: 146 Location: Los Angeles
|
Posted: Wed Aug 02, 2006 10:46 pm Post subject: |
|
|
| I think he was just trying to help by giving a suggestion. |
|
| Back to top |
|
 |
Bkid
Joined: 26 Sep 2005 Posts: 44 Location: Hephzibah, GA
|
Posted: Thu Aug 03, 2006 3:01 am Post subject: |
|
|
Sorry, that came out wrong...I just think at the time I wasn't in the mood to have people telling me 'do a, b, and c' when I have no idea what any of those things are...I'll learn AHK eventually.. _________________ --Bkid-- |
|
| Back to top |
|
 |
BoBo Guest
|
Posted: Thu Aug 03, 2006 6:39 am Post subject: |
|
|
| Quote: | | when I have no idea what any of those things are | If your ship sinks and someone would tell 'you'd better take the lifejacket', ignoring an advise/suggestion - especially if you've "no idea what any of those things are" - could change your live - correction: could end it!
Thx for listening.  |
|
| Back to top |
|
 |
Bkid
Joined: 26 Sep 2005 Posts: 44 Location: Hephzibah, GA
|
Posted: Sat Aug 05, 2006 1:41 am Post subject: |
|
|
| Bkid wrote: | | ...I'll learn AHK eventually... |
As in, I don't really have that much free time to learn more than I know right now, So I'm just using what I know..I had a script that I thought was better that this, but it didn't get so much as ONE reply when I posted it...It was (I think) by best one, too..
EDIT:
| Laszlo wrote: | | Would it make sense to enter a file search mask in the GUI, like "\c:\test dir\*.bmp", and show all the matching files in a listview? Here you can sort them with clicking on the corresponding header field, according to filename, extension or creation/last access time, and also you could allow manual reordering, deleting from the list etc. Only after this you would rename them. |
Looking back, I now know exactly what you're talking about..I guess I just wasn't paying attention or something <_<. Anyway, I'll try to stick that in there when I get the time. _________________ --Bkid-- |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|