sprintf() - page 2 - General Discussion and Assistance - CHDK Forum supplierdeeply

sprintf()

  • 18 Replies
  • 10097 Views
*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: sprintf()
« Reply #10 on: 14 / April / 2008, 18:29:19 »
Advertisements
suggestion: supply diff too, makes one see the differences way better :)

Re: sprintf()
« Reply #11 on: 14 / April / 2008, 18:54:08 »
Deleted
« Last Edit: 22 / April / 2008, 17:43:39 by Barney Fife »
[acseven/admin commented out: please refrain from more direct offensive language to any user. FW complaints to me] I felt it imperative to withdraw my TOTAL participation. Nobody has my permission, nor the right, to reinstate MY posts. Make-do with my quoted text in others' replies only. Bye

*

Offline m2tk

  • **
  • 50
  • Sheet happens ...
Re: sprintf()
« Reply #12 on: 15 / April / 2008, 09:56:10 »
suggestion: supply diff too, makes one see the differences way better :)

hi PhyrePhoX, how to make a .diff file in TortoiseSVN ?
S5IS 1.01bc

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: sprintf()
« Reply #13 on: 15 / April / 2008, 11:51:13 »
either via commandline - "svn diff > diff.txt" (executed in your working directory) or you rightclick your working copy and in the tortoise svn tool click on "create patch", as described in TortoiseSVN | drupal.org for example :)

about the battery issue: ugh, havent thought about the playback mode, that uses less volts. have to make a test how much volts exactly, so that you can have two battery icons, one for playback one for recmode... joking ;)


*

Offline m2tk

  • **
  • 50
  • Sheet happens ...
Re: sprintf()
« Reply #14 on: 15 / April / 2008, 15:57:32 »
thx, will try it tomorrow.

i have one more new idea but still know too little how will make it, though i am learning C one more time ... with chdk, again.

the idea of rename feature in file browser:
- need to add new item into mpopup.c and new frame (enough for rename)
-----------------------
| RENAMEFILENAME.EXT  |
-----------------------

simple actions:
moving navi keys [up-down] changes available chars (..,D,E<-F->G,H,.. ),
moving [left-right] position (F->I->L->..), [set] ok, [?] cancel


btw. some project source code Q: why there are some *.h files in /include/ dir when other together with *.c ?
« Last Edit: 15 / April / 2008, 16:07:16 by m2tk »
S5IS 1.01bc

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: sprintf()
« Reply #15 on: 15 / April / 2008, 16:45:14 »
a rename feature has long been asked for, you would do us all a great favour :)
see File/script editor maybe you can help wontolla or use some of the ideas expressed in that thread.
regarding the question: dont know that much about c & gcc & arm yet, maybe it has to do with the order of compilation, when will things be needed and stuff.

*

Offline wontolla

  • ****
  • 413
  • S3 & G9 & A720
Re: sprintf()
« Reply #16 on: 16 / April / 2008, 08:29:21 »
Hello m2tk

I haven't try your patch yet but those modifications sound like a good idea.

Question: Are you planning to change the filesize automatically according to the size of the file?
Ex: If the file is greater than 1024kb the file browser shows 1mb.


Regarding the rename feature:
It would be great if you could work on it, as PhyrePhox says, many people has asked for this. The only drawback is that if the filename is changed, Canon's firmware won't be able to recognize it and display the picture, etc.

Other problem is with the present filebrowser popup menu. It seems there is no longer space to add new features unless major changes to it. See Erase JPG along with corresponding CRW in any folder - done


Quote
moving navi keys [up-down] changes available chars (..,D,E<-F->G,H,.. ),
moving [left-right] position (F->I->L->..), [set] ok, [?] cancel

I like it because it is simple but this way you can only rename the files one-at-the-time. I think people soon will ask you for a batch solution. My suggestion is having text file with a "mask" like this:

MyBirthday*.JPG

this could rename all selected files: MyBirthday_1234.JPG or whatever.

Of course, this mask could be modified in the field. We just have to wait for that wontolla guy to fancy continue with the File/Script editor.



*

Offline m2tk

  • **
  • 50
  • Sheet happens ...
Re: sprintf()
« Reply #17 on: 16 / April / 2008, 13:17:56 »
Question: Are you planning to change the filesize automatically according to the size of the file?
Ex: If the file is greater than 1024kb the file browser shows 1mb.
exactly!
-----------
 1023 b
  1,0 k
999,9 k
  1,2 M
-----------


...
Regarding the rename feature:
It would be great if you could work on it, as PhyrePhox says, many people has asked for this. The only drawback is that if the filename is changed, Canon's firmware won't be able to recognize it and display the picture, etc.
...
I like it because it is simple but this way you can only rename the files one-at-the-time. I think people soon will ask you for a batch solution.
...
that's why i'm not going to implement batch renaming, there is no point of renaming many JPG files (apart from hiding g-f nude photos  :-[ ),
it's for some special cases when we really need to change the filename...

EDIT: first i have to do 'any' then will see...

it's quite dirty and hard coded though ...

EDIT: rename feature is (sometimes) working, it still needs some polish and bugfixes...
as i found you can't use some letters in the names and all are UPPERCASE,
"|" stands for end of name i.e "FileN.ame|.TXT" will be saved as "FILEN.AME"

usage: LEFT->DOWN->DOWN->DOWN->SET->(LEFT|RIGHT|UP|DOWN)->SET->(LEFT|RIGHT)->SET

here it is if someone wants to try it and fix bugs ;)
there is also filebrowser modification in it (no time to remove).
« Last Edit: 20 / April / 2008, 08:28:33 by m2tk »
S5IS 1.01bc


*

Offline m2tk

  • **
  • 50
  • Sheet happens ...
Re: sprintf()
« Reply #18 on: 16 / April / 2008, 17:11:48 »
[skasowano]
« Last Edit: 19 / April / 2008, 14:59:51 by m2tk »
S5IS 1.01bc