Finally an easier way to deal with 3D screenshots ...
I've been looking for a better way to deal with 3D screenshots and have found nothing. So I started messing around with things on my own, through the use of batch files. [s]Over that past few days I've done a ton of experiments and research and after much trial and error I've come up with a script that ... SUCKS ... Lol. Ok well it didn't suck it just didn't play well with files with spaces, _underscores, and a ton of other symbols. And quite honestly looking at it after I finished the latest script, it was doing way too many things renaming files, deleting txt files, etc. , renaming files especially.[/s] Update: No I was right it sucked ... it sucks far less now. :) Just save it as 'whatever you want'.bat, mine are _run4XXX.bat, and run it from the same location as the image files, it'll open each image and then prompt whether to keep it or not. Hitting the Y key keeps the image and opens the next and hitting N deletes the image and opens the next. [quote="TsaebehT"]I was messing around with this some more this morning and the only thing that was bothering me was having to look down at the keyboard, to do things ... so I tried mapping things to my wireless 360 controller using joy2key/joytokey. I mapped a button to: Ctrl + V = Fullscreen in 3D Vision Photo Viewer Alt + F4 = Close 3D Vision Photo Viewer Y + Enter = Delete Image in Script N + Enter = Keep Image in Script ... I was really surprised the Y/N + Enter ones worked but they did, made the whole process much smoother. :D[/quote]
I've been looking for a better way to deal with 3D screenshots and have found nothing. So I started messing around with things on my own, through the use of batch files. Over that past few days I've done a ton of experiments and research and after much trial and error I've come up with a script that ... SUCKS ... Lol. Ok well it didn't suck it just didn't play well with files with spaces, _underscores, and a ton of other symbols. And quite honestly looking at it after I finished the latest script, it was doing way too many things renaming files, deleting txt files, etc. , renaming files especially.

Update: No I was right it sucked ... it sucks far less now. :) Just save it as 'whatever you want'.bat, mine are _run4XXX.bat, and run it from the same location as the image files, it'll open each image and then prompt whether to keep it or not. Hitting the Y key keeps the image and opens the next and hitting N deletes the image and opens the next.

TsaebehT said:I was messing around with this some more this morning and the only thing that was bothering me was having to look down at the keyboard, to do things ... so I tried mapping things to my wireless 360 controller using joy2key/joytokey.

I mapped a button to:

Ctrl + V = Fullscreen in 3D Vision Photo Viewer

Alt + F4 = Close 3D Vision Photo Viewer

Y + Enter = Delete Image in Script

N + Enter = Keep Image in Script

... I was really surprised the Y/N + Enter ones worked but they did, made the whole process much smoother. :D
#1
Posted 04/16/2013 05:04 PM   
Update: Save as .bat: [quote]@Echo Off for /F "delims=" %%f in ('Dir /B *.PNS') do ( "%%f" Choice /C YN /M "Keep %%f?" if errorlevel 2 Del %%f if errorlevel 1 Echo>Nul )[/quote]Y = Keeps the Image N = Deletes the Image [s]Ignore: MUST be saved as _run4PNS.bat to work properly.[/s] [code][s]@ECHO OFF IF EXIST *.666 GOTO :END ECHO. ECHO [THIS SHOULD ONLY TAKE A FEW MOMENTS TO COMPLETE ...] ECHO. IF EXIST *.PNS GOTO PNS :END IF EXIST *.666 DEL *.666 IF EXIST BEGIN.bat DEL BEGIN.bat EXIT :PNS DIR *.PNS /B > TEMPLIST1.666 FOR /F "tokens=1,2 delims=." %%G IN (TEMPLIST1.666) DO ECHO "1111111%%G.1%%H" >> TEMPLIST2.666 FOR /F "tokens=1,2 delims=." %%G IN (TEMPLIST1.666) DO ECHO 2222222"%%G.2%%H" >> TEMPLIST2.666 SORT /+9 < TEMPLIST2.666 > SORTLIST.666 TYPE SORTLIST.666 | powershell -Command "$input | FOREach-Object { $_ -replace \"1111111\", \"\" }" > REPL1.666 TYPE REPL1.666 | powershell -Command "$input | FOREach-Object { $_ -replace \"2222222\", \"DEL /P "\" }" > REPL2.666 TYPE REPL2.666 | powershell -Command "$input | FOREach-Object { $_ -replace \"1PNS"\", \"PNS\" }" > REPL3.666 TYPE REPL3.666 | powershell -Command "$input | FOREach-Object { $_ -replace \"2PNS\", \"PNS\" }" > REPL4.666 REN REPL4.666 BEGIN.bat ECHO _run4PNS.bat >> BEGIN.bat BEGIN.bat[/s][/code]
Update:
Save as .bat:
@Echo Off
for /F "delims=" %%f in ('Dir /B *.PNS') do (
"%%f"
Choice /C YN /M "Keep %%f?"
if errorlevel 2 Del %%f
if errorlevel 1 Echo>Nul
)
Y = Keeps the Image
N = Deletes the Image

Ignore:
MUST be saved as _run4PNS.bat to work properly.

@ECHO OFF
IF EXIST *.666 GOTO :END
ECHO.
ECHO [THIS SHOULD ONLY TAKE A FEW MOMENTS TO COMPLETE ...]
ECHO.
IF EXIST *.PNS GOTO PNS
:END
IF EXIST *.666 DEL *.666
IF EXIST BEGIN.bat DEL BEGIN.bat
EXIT
:PNS
DIR *.PNS /B > TEMPLIST1.666
FOR /F "tokens=1,2 delims=." %%G IN (TEMPLIST1.666) DO ECHO "1111111%%G.1%%H" >> TEMPLIST2.666
FOR /F "tokens=1,2 delims=." %%G IN (TEMPLIST1.666) DO ECHO 2222222"%%G.2%%H" >> TEMPLIST2.666
SORT /+9 < TEMPLIST2.666 > SORTLIST.666
TYPE SORTLIST.666 | powershell -Command "$input | FOREach-Object { $_ -replace \"1111111\", \"\" }" > REPL1.666
TYPE REPL1.666 | powershell -Command "$input | FOREach-Object { $_ -replace \"2222222\", \"DEL /P "\" }" > REPL2.666
TYPE REPL2.666 | powershell -Command "$input | FOREach-Object { $_ -replace \"1PNS"\", \"PNS\" }" > REPL3.666
TYPE REPL3.666 | powershell -Command "$input | FOREach-Object { $_ -replace \"2PNS\", \"PNS\" }" > REPL4.666
REN REPL4.666 BEGIN.bat
ECHO _run4PNS.bat >> BEGIN.bat
BEGIN.bat
#2
Posted 04/16/2013 05:05 PM   
Update: Save as .bat: [quote]@Echo Off for /F "delims=" %%f in ('Dir /B *.JPS') do ( "%%f" Choice /C YN /M "Keep %%f?" if errorlevel 2 Del %%f if errorlevel 1 Echo>Nul )[/quote]
Update:
Save as .bat:
@Echo Off
for /F "delims=" %%f in ('Dir /B *.JPS') do (
"%%f"
Choice /C YN /M "Keep %%f?"
if errorlevel 2 Del %%f
if errorlevel 1 Echo>Nul
)
#3
Posted 04/16/2013 05:05 PM   
Update: Save as .bat: [quote]@Echo Off for /F "delims=" %%f in ('Dir /B *.MPO') do ( "%%f" Choice /C YN /M "Keep %%f?" if errorlevel 2 Del %%f if errorlevel 1 Echo>Nul )[/quote]
Update:
Save as .bat:
@Echo Off
for /F "delims=" %%f in ('Dir /B *.MPO') do (
"%%f"
Choice /C YN /M "Keep %%f?"
if errorlevel 2 Del %%f
if errorlevel 1 Echo>Nul
)
#4
Posted 04/16/2013 05:05 PM   
Thanks will be useful next time I want to make a slide show /album.
Thanks will be useful next time I want to make a slide show /album.

Co-founder of helixmod.blog.com

If you like one of my helixmod patches and want to donate. Can send to me through paypal - eqzitara@yahoo.com

#5
Posted 04/16/2013 05:13 PM   
[s]fixed and then some. :D[/s] Update: fixed and then some then some. :D
fixed and then some. :D

Update:
fixed and then some then some. :D
#6
Posted 04/16/2013 05:27 PM   
Wow, that's great work. Thanks!
Wow, that's great work. Thanks!

#7
Posted 04/17/2013 05:26 AM   
[s]Thanks. I was testing it out on some more images and apparently this doesn't play well with spaces and _underscores in the names. So I checked all the images I had they only seemed to have either spaces or _underscores, I'll reup them once I sort this out. There's a few ways I can do it, rename the files removing the offending characters, renaming replacing the offending characters with say a dash, etc. Thoughts? For my own use I'm fine with just removing them, eg ys_oath_dx9.png > ysoathdx9. fixed! I know I referred to it as a 'simple' text script but it really isn't, it does a lot of different things just so it'll work with any image without any input from the user. EDIT3: I'm pretty much finished with the new script the one that does most of the work anyway, just have to pretty it up. Lol. It's a drastic change, as it doesn't rename files anymore and it may work with more symbols. I'll run it through it's paces later, hopefully I nailed it this time. Sorry about the delay, just don't want any more unforeseen issues arising. ... looking good so far! ... handled TombRaider _,()!;^001.pns just fine, the only thing I don't think that'll work is any extra .periods. :D[/s] ... overly complicated. :)
Thanks. I was testing it out on some more images and apparently this doesn't play well with spaces and _underscores in the names. So I checked all the images I had they only seemed to have either spaces or _underscores, I'll reup them once I sort this out. There's a few ways I can do it, rename the files removing the offending characters, renaming replacing the offending characters with say a dash, etc. Thoughts? For my own use I'm fine with just removing them, eg ys_oath_dx9.png > ysoathdx9. fixed! I know I referred to it as a 'simple' text script but it really isn't, it does a lot of different things just so it'll work with any image without any input from the user.

EDIT3:
I'm pretty much finished with the new script the one that does most of the work anyway, just have to pretty it up. Lol. It's a drastic change, as it doesn't rename files anymore and it may work with more symbols. I'll run it through it's paces later, hopefully I nailed it this time. Sorry about the delay, just don't want any more unforeseen issues arising.

... looking good so far! ... handled TombRaider _,()!;^001.pns just fine, the only thing I don't think that'll work is any extra .periods. :D


... overly complicated. :)
#8
Posted 04/17/2013 01:13 PM   
I was messing around with this some more this morning and the only thing that was bothering me was having to look down at the keyboard, to do things ... so I tried mapping things to my wireless 360 controller using joy2key/joytokey. I mapped a button to: Ctrl + V = Fullscreen in 3D Vision Photo Viewer Alt + F4 = Close 3D Vision Photo Viewer Y + Enter = Delete Image in Script N + Enter = Keep Image in Script ... I was really surprised the Y/N + Enter ones worked but they did, made the whole process much smoother. :D
I was messing around with this some more this morning and the only thing that was bothering me was having to look down at the keyboard, to do things ... so I tried mapping things to my wireless 360 controller using joy2key/joytokey.

I mapped a button to:

Ctrl + V = Fullscreen in 3D Vision Photo Viewer

Alt + F4 = Close 3D Vision Photo Viewer

Y + Enter = Delete Image in Script

N + Enter = Keep Image in Script

... I was really surprised the Y/N + Enter ones worked but they did, made the whole process much smoother. :D
#9
Posted 04/23/2013 02:56 PM   
It's funny how simple things can be when you know a little more ... :) Save as whateveryouwant.bat: [quote]@ECHO OFF FOR /f "delims=" %%f IN ('DIR /B *.PNS') DO ( "%%f" CHOICE /C YN /M "Keep %%f?" if errorlevel 2 DEL %%f if errorlevel 1 ECHO>NUL )[/quote]Y = Keeps the Image N = Deletes the Image
It's funny how simple things can be when you know a little more ... :)

Save as whateveryouwant.bat:

@ECHO OFF
FOR /f "delims=" %%f IN ('DIR /B *.PNS') DO (
"%%f"
CHOICE /C YN /M "Keep %%f?"
if errorlevel 2 DEL %%f
if errorlevel 1 ECHO>NUL
)
Y = Keeps the Image
N = Deletes the Image
#10
Posted 11/01/2013 09:13 PM   
Scroll To Top