topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Tuesday May 13, 2025, 2:26 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Recent Posts

Pages: prev1 ... 187 188 189 190 191 [192] 193 194 195 196 197 ... 222next
4776
You're welcome.  Happy to help.   :)
4777
Try this (source/binary included):  Download

Code: AutoIt [Select]
  1. ; Set environment.
  2. SetBatchLines, -1
  3. SetControlDelay, -1
  4. DetectHiddenWindows, On
  5. SetWorkingDir, %A_ScriptDir%
  6.  
  7. ; Build main GUI.
  8. GoSub, Gui_Build_Main
  9.  
  10. Return ; End of auto-execute section.
  11.  
  12.  
  13. Gui_Build_Main:
  14. {
  15.     ; Build GUI.
  16.     Gui, Margin, 3, 5
  17.     Gui, Add, Text    , xm     ym    w50  h20 Right 0x200                  , Folder #1:
  18.     Gui, Add, Edit    , xm+55  ym    w270 h20             vFolder_1        ,
  19.     Gui, Add, Button  , xm+330 ym    w30  h20             vBrowse_1 gBrowse, ...
  20.     Gui, Add, Text    , xm     ym+25 w50  h20 Right 0x200                  , Folder #2:
  21.     Gui, Add, Edit    , xm+55  ym+25 w270 h20             vFolder_2        ,
  22.     Gui, Add, Button  , xm+330 ym+25 w30  h20             vBrowse_2 gBrowse, ...
  23.     Gui, Add, Button  , xm+170 ym+53 w190 h25             vDelete   gDelete, &Delete matching files to Recycle Bin
  24.     Gui, Add, Statusbar
  25.         SB_SetText( "Ready.", 1 )
  26.     GUI_ID := WinExist()
  27.     Gui, Show, AutoSize Center, Match & Recycle
  28. }
  29.  
  30.  
  31. GuiEscape:
  32. GuiClose:
  33. {
  34.     ExitApp
  35. }
  36.  
  37.  
  38. Delete:
  39. {
  40.     Gui, 1: Submit, NoHide
  41.  
  42.     ; Basic pre-check.
  43.     If ( Folder_1 = "" OR Folder_2 = "" OR ! FileExist( Folder_1 ) OR ! FileExist( Folder_2 ) )
  44.     {
  45.         MsgBox, 48, Error, Please select valid folders.
  46.         Return
  47.     }
  48.  
  49.     Loop, % Folder_1 . "\*.*", 0, 0
  50.     {
  51.         SB_SetText( "Processing: " . A_LoopFileName, 1 )
  52.  
  53.         If FileExist( Folder_2 . "\" . A_LoopFileName )
  54.         {
  55.             FileRecycle, % Folder_2 . "\" . A_LoopFileName
  56.         }
  57.     }
  58.  
  59.     SB_SetText( "Done.", 1 )
  60. }
  61.  
  62.  
  63. Browse:
  64. {
  65.     Gui, 1: Submit, NoHide
  66.     If ( A_GuiControl = "Browse_1" )
  67.     {
  68.         Folder_1 := ""
  69.         FileSelectFolder, Folder_1, , 2, Select first folder.
  70.         If ( ErrorLevel != 1 )
  71.         {
  72.             GuiControl, Text, Folder_1, % Folder_1
  73.         }
  74.     }
  75.     Else If ( A_GuiControl = "Browse_2" )
  76.     {
  77.         Folder_2 := ""
  78.         FileSelectFolder, Folder_2, , 2, Select second folder.
  79.         If ( ErrorLevel != 1 )
  80.         {
  81.             GuiControl, Text, Folder_2, % Folder_2
  82.         }
  83.     }
  84.     ; Right justify the edit control's content if longer than the control's length
  85.     SendMessage, 0xB1, 500, 500, Edit1 ; 0xB1 is EM_SETSEL
  86.     SendMessage, 0xB1, 500, 500, Edit2 ; 0xB1 is EM_SETSEL
  87. }
4778
N.A.N.Y. 2010 / Re: NANY 2010 Idea: A 'polite' reminder/diary system
« Last post by skwire on November 09, 2009, 07:44 PM »
Cool.  I'll work on the viewer (vu-er? ;D) next.
4779
To clarify, you have a list of files in, say, Folder A.  If those same filenames exist in Folder B, you want them deleted.  Is this correct?
4780
N.A.N.Y. 2010 / Re: NANY 2010 Idea: A 'polite' reminder/diary system
« Last post by skwire on November 09, 2009, 12:06 PM »
Website | Download
v1.0.3 - 2009-11-09

    + Added a "Play" button to the Popup tab to allow preview of the chosen .wav file.
    + Added configurable log folder.  (Thanks, doctorfrog)
    + Added "Archive now" button to the Options Archive tab.


thumb146.png
thumb142.pngthumb144.pngthumb145.pngthumb143.png
4781
Post New Requests Here / Re: Convert from Greek (1253) to Greek Ascii
« Last post by skwire on November 09, 2009, 05:37 AM »
Greek ASCII is codepage 869, no?  If so, use the "Greek, Modern (DOS) - 869" entry.
4782
Post New Requests Here / Re: Convert from Greek (1253) to Greek Ascii
« Last post by skwire on November 09, 2009, 05:03 AM »
There are many utils like this available.  Here's one:  http://sourceforge.n...ojects/cp-converter/

thumb141.png
4783
Post New Requests Here / Re: IDEA: an indication that "start-up" is finished
« Last post by skwire on November 09, 2009, 03:40 AM »
You might be able to make use of my PowerSchemeToggler:  https://www.donation...ex.php?topic=19847.0
4784
Post New Requests Here / Re: IDEA: Copy Files in Defined Order
« Last post by skwire on November 09, 2009, 03:28 AM »
You're welcome.  :)
4785
N.A.N.Y. 2010 / Re: NANY 2010 Idea: A 'polite' reminder/diary system
« Last post by skwire on November 09, 2009, 03:14 AM »
Gah...it helps if I actually upload the new build.  Soz.  It's there now.
4786
N.A.N.Y. 2010 / Re: NANY 2010 Idea: A 'polite' reminder/diary system
« Last post by skwire on November 08, 2009, 07:03 PM »
Website | Download
v1.0.2 - 2009-11-08
    * Cosmetic changes to the Options Popup tab.
    + Added configurable timestamp for archived logs.  (Thanks, doctorfrog)
    + Added configurable timestamp for popup titlebar.  (Thanks, doctorfrog)
    + Added configurable timestamp for note entries.  (Thanks, doctorfrog)


Edit: Removed older screenshots.


1. File collisions could be avoided if the filename included the time as well as date. However, I find [1], [2] to be personally acceptable.
2. Right-click option to Archive current log = good thing.
3. An advantage to using current.anu is that when the viewer is invoked, it can easily be programmed to display the most current logfile. Obviously, it should not lock this file when it is being viewed.
4. I see the viewer as a separate .exe from Anuran. From the limited comments in this thread, there are some who want one, some who don't, so a separate viewer would please both crowds.

1) Correct...putting the time in there, especially with seconds, should avoid any collisions.
2) I will add this in the next build (along with customisable archive folder).
3) The viewer will never lock the file.
4) Hmmm...I'll give this idea some thought.

If you don't mind another of my drawings, here's another mockup of a simpler two-pane viewer layout. (Stick with whatever you feel works best, however):
Notes:
0. Proposed viewer names: Anuview, Anuvu, Anuran Viewer
1. The panes and window itself would be resizable, of course.
2. The items in the logfile pane would be organized according to file datestamp, or according to the first datestamp contained within the file itself, in case the file properties get messed up by Windows.
3. On startup, Anuview defaults to current.anu. Logfile pane defaults to \archive, but the current.anu is always displayed on top.
4. If Anuview is started by double-clicking on a .anu file, it displays the file, regardless of where it is, plus any other .anu files that are in the same directory as the .anu file it is displaying. This is for folks who end up moving their logfiles around.
5. Do we want a full-on file tree in the logfile pane, or just a 'flat' list of logfiles in \archive?
6. Ignore the titlebar and status bar ornamentation, they come from bblean's skinning engine.
7. And yes, I basically took a screenshot of MiniAim, and cut and pasted around.

Zero-relative.  Hehehe.
0) I like AnuVu best.  =]
1) Agreed.
2) Well, pick one.  I would prefer to go off of filename, personally.
3) Can do.
4) Sure.
5) Flat list.  Trees in AHK are a pain in the arse.
6) Yep, I run bbLean as well.
7) No worries; this is extremely close to what I had in mind for a simple viewer.

Blue-sky possibilities:
1. If you apply a 'tail' function to the viewer, it could even auto-update the contents, which provides a fingertip-ready view of the last x hours of entries. I worry a little about people who want to tail their own personal log, but it does provide a quick answer to the question "Now, just what the hell have I been doing the last hour?"
2. An automatic vertical timescale that visually measured the time between each entry would still be a pretty neat Stupid Coding Trick.

1) Should be doable.
2) Probably not going to happen.  =]
4787
N.A.N.Y. 2010 / Re: NANY 2010 Pledge to Participate Here
« Last post by skwire on November 08, 2009, 02:00 PM »
At this point, I pledge to have multiple entries in this year's NANY.   :Thmbsup:
4788
Post New Requests Here / Re: IDEA: Copy Files in Defined Order
« Last post by skwire on November 07, 2009, 04:00 PM »
Website | Download

v1.0.2 - 2009-11-07
    + Added up/down buttons to move a contiguous selection up and down through the lower listview.  (Thanks, wetsmellydog)
    + Added ctrl-up/ctrl-down hotkeys to move a contiguous selection up and down through the lower listview.
    * Changed the icon look.


main.png
4789
N.A.N.Y. 2010 / Re: NANY 2010 Idea: A 'polite' reminder/diary system
« Last post by skwire on November 07, 2009, 02:10 PM »
Since we've decided on the .anu extension, here is how I would like to handle the writing and archiving of logs.  If you agree to this, then adding custom timestamp formats for the log files would be a snap to implement.  Also, the custom log folder will be easy to implement as well.

1) The current log will be written to the app's folder as "current.anu".  Basically, no timestamp on the filename at this point.
2) When the archiving routine fires, the "current.anu" will be moved into the archive folder using whatever timestamp format the user has set.
3) Collisions will get the "[1]" addition or however you would like that handled.

If the log filename timestamp format includes the time, collisions should rarely happen.  Also, I think I'm going to add a button to the Archive tab that will allow the user to initiate the archive routine immediately.  Your thoughts?
4790
Nice job, as always.  Thanks for taking the time to put it together.
4791
N.A.N.Y. 2010 / Re: NANY 2010 Idea: A 'polite' reminder/diary system
« Last post by skwire on November 06, 2009, 03:57 PM »
Website | Download
v1.0.1 - 2009-11-06
    + Made popup window always-on-top.  (Thanks, tomos)
    + Made application single-instance.  (Thanks, doctorfrog)
    + Added option for wave file play on popup.  (Thanks, doctorfrog)
    + Added option to flash the taskbar on popup.  (Thanks, doctorfrog)
    + Added Enter/Ctrl-Enter options to popup.  (Thanks, doctorfrog)
    + Added hotkey to bring up options dialog.  (Thanks, doctorfrog)
    + Added hotkey to bring up the popup immediately.  (Thanks, tomos)
    + Added hotkey to close the popup at any time.  (Thanks, tomos)
    + Added option to not show options on startup.  (Thanks, doctorfrog)
    + Added "Show popup" to the tray menu and made it the default
      double-click action.  (Thanks, doctorfrog)
    * Popup window now remembers its last position.  (Thanks, doctorfrog)
    ! Blank entries are no longer saved.


No changes were made regarding timestamping and file handling.  I wanted to get the main options out of the way first before concentrating on that aspect of the program.  I'll work on it more later; need some sleep right now.   :)
4792
N.A.N.Y. 2010 / Re: NANY 2010 Idea: A 'polite' reminder/diary system
« Last post by skwire on November 06, 2009, 01:12 PM »
Hey look I wrote another impenetrable wall of text.  :tellme:
Viewer paper prototype (see notes at end):

Holy moly.  :o  I wasn't thinking anything nearly that complex.  Again, I was just thinking of a simple listview and edit field.  Perhaps a search option.  Maybe an option to display all the text from all the logs in one shot.  So, trying to keep this simple but still useful.
4793
N.A.N.Y. 2010 / Re: NANY 2010 Idea: A 'polite' reminder/diary system
« Last post by skwire on November 06, 2009, 01:06 PM »
Points:

When I mentioned file format, I was just thinking something VERY simple.  As in, no more complex than it needs to be to parse reliably.  Maybe something like:
§ 2009-11-06 14:30:56
<Entry - 1st line>
<Entry - 2nd line>
<Entry - 3rd line>
§ 2009-11-06 15:30:56
<Entry - 1st line>
<Entry - 2nd line>


I like the name Anuran as well so feel free to come up with an extension.  anu/ana/anr/ann...whatever.

Regarding your concerns about a viewer...don't fret.  I love straight up text files as well.  I wasn't thinking of anything more than a simple listview for the entries and an edit field to display the text.  The neat thing about a viewer is that I can parse and display ALL the log files' entries at once in the listview.  Maybe add a simple search functionality and call it done.  Very simple.

So far today, I've implemented the following:

    + Made popup window always-on-top.  (Thanks, tomos)
    + Made application single-instance.  (Thanks, doctorfrog)
    + Added option for wave file play on popup.  (Thanks, doctorfrog)
    + Added option to flash the taskbar on popup.  (Thanks, doctorfrog)
    + Added Enter/Ctrl-Enter options to popup.  (Thanks, doctorfrog)
    * Popup window now remembers its last position.
    ! Blank entries are no longer saved.

Also, I've spoken with Mouser and, due to the interest and ideas, I'm going to make this my NANY 2010 entry.  I hope nobody minds.
4794
N.A.N.Y. 2010 / Re: NANY 2010 Idea: A 'polite' reminder/diary system
« Last post by skwire on November 06, 2009, 04:24 AM »
not sure if this has been requested
(but I'll chance repeating it ;) I dont have time to reread all those requests lol):
Option for systemwide hotkey (customisable if possible) to close the window for when I dont want to interact with the app (I have it set to come up very often)

Can do.
4795
N.A.N.Y. 2010 / Re: NANY 2010 Idea: A 'polite' reminder/diary system
« Last post by skwire on November 06, 2009, 04:23 AM »
No, I meant the following:
When pressing enter not only does the window go away but the program closes too (doesn't remain in tray)

Hmmm...the application has to continue running in order to keep popping up the window at the specified times.  Or, am I misunderstanding you again?   :huh:
4796
N.A.N.Y. 2009 / Re: NANY 2009 Release: Trout (audio player)
« Last post by skwire on November 06, 2009, 02:52 AM »
Are they read-only on your NAS, perhaps?
4797
N.A.N.Y. 2010 / Re: NANY 2010 Idea: A 'polite' reminder/diary system
« Last post by skwire on November 06, 2009, 02:49 AM »
EDIT: Any chance, much like the Icon Menu Launcher for example, ExitApp can be incorporated into it? Even though this needs to start at intervals of course

Are you asking for a File, Exit menu bar on the popup?
4798
N.A.N.Y. 2010 / Re: NANY 2010 Idea: A 'polite' reminder/diary system
« Last post by skwire on November 06, 2009, 12:49 AM »
Wow...lots of replies and requests.  I'll try to answer them all.  That initial build only represented about an hour of work so, obviously, there is plenty of room for improvement.

  • one request would be that it stay on top until properly dismissed - currently can get lost behind other apps
  • It would be nice if one could call it up manually to add a note
  • oh yeah, it uses a 12 hr clock?
    e.g. the saved text file says 20091105 05:53:35:
    Windows time said 17:53

1) Already implemented.
2) Yes, I'll add a hotkey as well as an option to the tray menu.
3) Hmmmm...it should have shown as:  20091105 11:12:02 PM: <entry text here>
Personally, I'd like to use military time (24hr clock) but not everybody likes that.

  • Yes, I should have put that in my list. Behavior should be on-top, unfocused, and ENTER dismisses only if it's in focus.
  • Given that one might want to enter a diary entry at any time, or may have accidentally dismissed a popup before creating an entry,
  • I should have also said: the app should live in the system tray, but the popup should appear in the task bar and be visible during ALT+TAB.

1) In my latest build, it pops up as AOT and un-focused.  In other words, it should work how you like now.
2) [Skipped]
3) Hmmm...the app does live in the tray and the popup is visible in the taskbar and via alt-tab.  Or, were you making a general statement here and not a request?

Ok, feedback time!
First of all, this is really good. I've been wanting something like this for a while. Nice and simple, no proprietary formats or ridiculous runtimes. I also see that on certain minor details, you anticipated things I was looking for, but did not explicitly state. Thank you and well done!

Thanks for the kind words.

Popup:
  • user-configurable sound on popup event (this can be included in the options dialog, or can default to .\alert.wav)
  • toggle: taskbar blink on popup event (blink/no blink)
  • toggle:
    a: (default and current) ENTER dismisses popup and creates entry, CTRL-ENTER creates new line in popup text field
    b: (alternative setting) ENTER creates new line in popup text field, CTRL-ENTER dismisses popup and creates entry
  • remember last position
  • stay on top if lose focus

1) Sound...sure, can do.
2) Taskbar blinking...how many times?  Configurable?
3) Enter/Ctrl-Enter functionality.  Sure.
4) Position saving.  Absolutely.
5) In the latest build, it stays on top regardless.

Logfile:
  • user-configurable carriage return in between logfile entries (1,2,3 (or n) carriage returns, 1 is default)
  • toggle: ENTER on popup with no text creates/doesn't create an empty entry in the log (doesn't create is default)
  • user-configurable file extension (.txt is default)
  • MINOR BUG: Currently, if there is no empty line to write an entry to, the entry is written to the previous line. (this happens if the log is opened and edited, and no carriage return is inserted at the end of the document). Desired behavior: automatically insert carriage return as necessary when writing a new entry.

1) CRs between entries.  Hmmm...kludgy.  What I'd rather do is, eventually, build a viewer that would display the entries.
2) Blank entries.  Fixed in the current build.
3) I'd rather not make this user-configurable.  I'd rather choose a new extension and go with that.
4) Missing CR bug: This is better solved by coming up with a simple format to the actual diary files.  This would also allow for the aforementioned viewer to be built.

Tray icon:
  • right-click menu on systray icon: Diary entry, Options, About, Exit
  • double-click on systray icon: popup shows, no event sound
  • user-configurable tray icon, provide default (can use creepy frog icon at http://turbomilk.com...downloads/zoom_eyed/)

1) Sure, had planned to if this prototype was what you had in mind.
2) Can do.
3) Can do.

Timestamps (affects popup, logfile, and logfile entries):
  • user-configurable timestamp in logfile entry
  • user-configurable timestamp in logfile name
  • user-configurable timestamp in popup titlebar
  • user-configurable timestamp format can be UNIX style string, ie. %a_%d_%H%M (see http://bb4win.source...htm#Clock_Formatting)
  • all three of the above can feed off of one setting, or off of individual settings for each.

I underestimated the response regarding this app so, with that in mind, I would say:
1) Entry timestamp: I'd rather move to create a simple standard format for the entries and build a viewer for them.  Your thoughts.
2) Logfile timestamp: If we can agree on a permanent file extension, I would agree to this.  Otherwise, it adds needless complexity to the app, IMHO.
3) Titlebar timestamp: Can do.
4) Any reason for this?  I mean, AHK has all the tokens necessary already.

Hotkey:
  • user-configurable hotkey to bring up popup
  • user-configurable hotkey to bring up options dialog

1 & 2) Can do.

Me:
  • I can assist with writing a readme.txt if necessary, and finding a suitable application icon.
  • I can also attempt to compose a FrogDiary icon with my horribly limited GIMP skills and access to some clip art.
  • Using sfxr (http://gog.is/sfxr), I've created a few sample alert sounds for the app (attached).

I think the frog icon you mentioned above is a great choice for the application icon.  Also, some names we could call this in sticking with the whole amphibian theme :D :

  • Frog Diary
  • Diary Frog
  • Ribbit
  • Croaker
  • Anuran  <-- Good one.
  • Tadpole
  • Polliwog

I'm sure Cranioscopical will chime in on this...he can't resist.
4799
Finished Programs / Re: DONE: Titlebar Clock
« Last post by skwire on November 05, 2009, 07:40 AM »
Simply add the following line to the top of the script:

Code: AutoIt [Select]
  1. #NoTrayIcon
4800
N.A.N.Y. 2010 / Re: NANY 2010 Idea: A 'polite' reminder/diary system
« Last post by skwire on November 05, 2009, 07:34 AM »
Give this a shot:  FrogDiary

Notes:
  • Put the executable in its own folder since it will create an "archive" folder on first run.
  • Press ctrl-enter in a diary note window for a newline.  Simply pressing Enter will save the note and close the window.
  • Right-click the tray icon to bring the Options window back up.
  • This is a quick prototype.  If it's close to what you had in mind, I'll flesh it out like my other apps.
Pages: prev1 ... 187 188 189 190 191 [192] 193 194 195 196 197 ... 222next