topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Wednesday May 14, 2025, 6:38 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 ... 173 174 175 176 177 [178] 179 180 181 182 183 ... 222next
4426
Is it possible to add an option so that the script can be executed as an alias in FARR, and closes after the shortcut is created on the desktop?

Do you not run a main AHK script of any sort?  This is a simple hotkey that can be integrated into any AHK script.

See post below...
4427
I hope it was worth it.  Sellout.   :P
4428
I use Autohotkey.  Can you translate the script from AutoIt?

As tomos and cranioscopical mentioned, that is AHK code.  The AutoIt highlighter is the closest we have to an AHK highlighter.  Apologies for the ambiguity.
4429
Great idea and great implementation.
Do you plan to release the source code? I understood it is written with AutoHotkey, right?
I have a password defined for my user and I have to, it's required by a remote control tool I use. I'm willing to add support for auto-login at boot myself if you do not want to do it.

Thanks for the kind words.  Boot Snooze turned out to be MUCH more popular than I ever anticipated.  No, I don't plan on releasing the source code and, yes, it's written in AutoHotkey.  I specifically didn't add auto-login for two reasons.  One, I didn't want BootSnooze seen as a security issue and, two, I'm a fan of the "one tool for one job" way of writing software.  Honestly, BootSnooze is one of the simplest apps I've written here on DonationCoder.  In case you require more information on how Boot Snooze works, here you go.

BootSnooze writes a single entry to the following registry key:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce

This key is meant for uses such as these since the Windows OS removes the entry once it's run, hence, "RunOnce".  The part of BootSnooze that does the suspending/hibernating is the standard Windows API call found here (this is also described in the AHK help file under the "Shutdown" entry):

http://msdn.microsof...3201%28VS.85%29.aspx

You can even do it yourself from the Run prompt like this:

http://support.microsoft.com/kb/555569
4430
Here you go.  Works with files, folders, single and multiple selections.  Change the shortcut to whatever you'd like (ctrl-d is default).

Code: Autohotkey [Select]
  1. ^d::
  2. {
  3.     ; Save current clipboard contents for restoration later.
  4.     Clipboard_Saved := ClipboardAll
  5.    
  6.     ; Clear clipboard
  7.     Clipboard := ""
  8.    
  9.     ; Get Explorer selection to the clipboard.
  10.     SendInput, ^c
  11.    
  12.     ; Wait up to three seconds for the clipboard to contain data.
  13.     ClipWait, 3
  14.    
  15.     ; Error-checking for the ClipWait.
  16.     If ( ErrorLevel != 0 )
  17.     {
  18.         MsgBox, The Clipboard timed out.
  19.         Return
  20.     }
  21.  
  22.     ; Create shortcuts.
  23.     Loop, Parse, Clipboard, `n, `r
  24.     {
  25.         If ( A_LoopField != "" )
  26.         {
  27.             SplitPath, A_LoopField, , OutDir, , OutNameNoExt
  28.             FileCreateShortcut, % A_LoopField, % A_Desktop . "\" . OutNameNoExt . ".lnk", % OutDir
  29.             Sleep, 1
  30.         }
  31.     }
  32.    
  33.     ; Restore clipboard.
  34.     Clipboard := Clipboard_Saved
  35.    
  36.     ; Free memory.
  37.     Clipboard_Saved := ""
  38. }
  39. Return
4431
N.A.N.Y. 2010 / Re: NANY 2010 Release: Anuran
« Last post by skwire on March 01, 2010, 05:38 AM »
Another option is to use the Archive hotkey or the Archive entry in the tray.
Ah yes, i'll archive right after every entry. Great tip!

Hopefully, with the latest build, you won't have to do this.  Just set your archive time to something very small...one minute or so.  The time and CPU used for an archival is negligible and shouldn't cause any hit on your system.

I even got a compliment at work because my timekeep was completly filled on time. :-)

Hahaha...very nice.   :D
4432
Post New Requests Here / Re: IDEA: TrueCrypt Alternate GUI for Windows
« Last post by skwire on February 27, 2010, 10:35 AM »
I could give this a go but the GUI won't be bitmap-based like your example above.  Would that be acceptable?
4433
N.A.N.Y. 2010 / Re: NANY 2010 Release: Bestimate
« Last post by skwire on February 27, 2010, 10:30 AM »
Thanks for all the testing of this latest version, Chris.  I much appreciate it.  =]
4434
N.A.N.Y. 2010 / Re: NANY 2010 Release: Anuran
« Last post by skwire on February 27, 2010, 08:33 AM »
Sweet crispy crap, why didn't I think of this?

You and me, both, my friend.   :P  Everybody, let me know if the following build breaks anything.  Thanks.

Website | Download
v1.0.30 - 2010-02-27
    * If an archive file already exists, the current.anu contents will now be appended to it instead of a new_file[1].anu file being created.  (Thanks, DeVamp)

4435
N.A.N.Y. 2010 / Re: NANY 2010 Release: Bestimate
« Last post by skwire on February 27, 2010, 07:45 AM »
Website | Download
v1.0.5 - 2010-02-27
    + Added per-file saving/loading.  (Thanks, cranioscopical)
    + Added up/down toolbar buttons to move a selection in the listview.
    + Added a "Recent files" menu to the main File menu.
    * Changed the icon look from the Silk set to the Fugue set found at http://www.pinvoke.com.


New look:

2010-02-27_074033.png
4436
N.A.N.Y. 2010 / Re: NANY 2010 Release: Anuran
« Last post by skwire on February 26, 2010, 03:33 AM »
would that mean that you might archive every 10 minutes, but you would only have one archived text file for each day if your Log timestamp doesnt include hours or minutes ?

If so sounds very good to me

Correct.
4437
N.A.N.Y. 2010 / Re: NANY 2010 Release: Anuran
« Last post by skwire on February 26, 2010, 02:44 AM »
:-* :-* the program.  :Thmbsup:

It's perfect, because at work i always forget to stay up to date with what work i did for what client.

Thanks for the compliment and sorry about the delay in replying.

the only thing i have with it, is the way of archiving.

Hehehe...yeah, I know what you mean.  ;D  It's kind of tough to cover everybody's ideas regarding archiving without it becoming a huge mess of options.

when i changed the archivetime to every 10 minutes, but now i get a new file every 10 minutes.
It's in the format Log_yyyy_MM_dd_dddd[number].anu
like Log_yyyy_MM_dd_dddd[1].anu and Log_yyyy_MM_dd_dddd[2].anu and Log_yyyy_MM_dd_dddd[3].anu

isn't it possible to just append to the file if it already exists in the format.

This is actually a very elegant way to solve the issue.  Anybody else have thoughts on this?

That still doesn't solve the fact that if i enter something just before closing the PC, it will be archived the next day.
For that, perhaps you can use the timestamp of the entry to calculate the timestamp of the archivefile.
And then just append to that file.

Another option is to use the Archive hotkey or the Archive entry in the tray.  Thanks for the feedback.
4438
Developer's Corner / Re: Parsing / Filtering text
« Last post by skwire on February 25, 2010, 05:53 AM »
I had to replace ¥`s with \`s thou :]

The yen symbols are actually backslashes on ewemoa's (and my) computer.  It's a side effect of using Japanese as the default language on a English Windows box.  I've become so accustomed to it over the years that my eyes don't even "see" them as yen symbols anymore.
4439
Developer's Corner / Re: Parsing / Filtering text
« Last post by skwire on February 25, 2010, 04:44 AM »
If you're familiar with RegEx at all, here is a way to do it in AutoHotkey.  You could easily adapt the RegEx portion to your own code or a more capable editor that has RegEx search capabilities.

Code: AutoIt [Select]
  1. Text =
  2. (
  3. Motorcycle\crap\morecrap
  4. Car\crap\morecrap
  5. Truck\crap\morecrap
  6. Bike\crap\morecrap
  7. )
  8.  
  9. Loop, Parse, Text, `n
  10. {
  11.     If ( A_LoopField != "" )
  12.     {
  13.         RegExMatch( A_LoopField, "^(.+?)\\", SubPat )
  14.         Block .= SubPat1 . "`r`n"
  15.     }
  16. }
  17.  
  18. MsgBox, % Block
4440
General Software Discussion / Re: Task killing program by clicking its window
« Last post by skwire on February 24, 2010, 01:16 AM »
Here's a quick AHK script to ctrl-right-click a window and have the option to kill it.

Code: AutoIt [Select]
  1. ^RButton::
  2. {
  3.     MouseGetPos, , , myWindowID,
  4.     WinGetTitle, myTitle, % "ahk_id " . myWindowID
  5.     MsgBox, 4, Kill me now..., % "Are you sure you want to kill '" . myTitle . "'?"
  6.     IfMsgBox, Yes
  7.     {
  8.         WinKill, % "ahk_id " . myWindowID
  9.     }
  10. }
4441
Finished Programs / Re: DONE: Group files from within folders
« Last post by skwire on February 23, 2010, 06:45 AM »
Website | Download
v1.0.5 - 2010-02-23
    + Cursor keys can now control the treeview.  (Thanks, Lesmo16)
    + Added "Save list with absolute paths" and "Save list with relative paths" options.  (Thanks, Lesmo16)
    + Added "Open/run file" to each of the listviews.  This is also now the new default action so double-clicking a row will launch that file.  (Thanks, Lesmo16)
    + Ctrl-Shift-s will now act like the "Add &selected files to list" button.
4442
So?  Big deal.
4443
Living Room / Re: Desktop Icons
« Last post by skwire on February 22, 2010, 06:23 PM »
DeskSweeper will do what you want.  http://no-nonsense-s...ftware.com/freeware/
4444
Have you tried asking the author of the application?
4445
Living Room / Re: looking for a title (short story)
« Last post by skwire on February 21, 2010, 06:08 AM »
4446
N.A.N.Y. 2009 / Re: NANY 2009 Release: Trout (audio player)
« Last post by skwire on February 20, 2010, 09:25 AM »
v1.0.4 build 6 - 2010-02-20
    ! Fixed graphical screwups under Win9x that were introduced in version 1.0.4 build 1.  (Thanks, Drugwash)


An old issue here - apologies if I repeat myself: since I disabled second monitor in Display Properties (doesn't exist physically anymore), Trout's main window remained at coordinates outside the now only monitor. The Options window also opens at old coordinates, far from reach.
Would it possible to add code that checks if saved window position matches the virtual screen boundaries and if not, move it somewhere inside? I know it's easy to edit the config file, but for the sake of professionalism... ;)

It's been on the ToDo forever.   :D

Also, after I made the corrections, I noticed the recent changes do not apply correctly on my Win98SE machine: the seekbar overlaps the info window and the volume gets overlapped by the latter; most likely you forgot to apply the changes to the Win9x part of the respective controls.  :-[

Doh!  I actually DID have this adjusted under Win9x but I must've reverted those changes before compiling the build.  They should be fixed in the above version.  Sorry about that.

Have you thought again about making the info area a RichEdit control? I've tested the cRichEdit wrapper some time ago and it works fine in 9x - I've even posted a test script at the AHK forums, in the BASS thread [link]; should work without problems in XP+ too, I guess..

Extremely unlikely that this will happen.
4447
I hope this is the appropriate place to make comments and suggestions.  First off, great little program .. just what I was looking for.  These are some thoughts that came to mind as I tried it out for the first time.  I hope they can be of help...

Thanks for the compliment and feedback.  Yep, this is the place for requests and suggestions.   :)

- Tags2Folders doesn't remove its temp folder/files ($$$$$_Tags2Folders_temp) it created in the Windows temp directory.  Is this intentional?
- Doesn't maintain Created datestamps on the copied/moved files.  Could this be added.  Sometimes Created is useful when sorting/finding/organizing files.
- There's no way to pause or abort the process once started, short of hitting the big "X".  Could the 'Go' bar act as a toggle?
- Could config.ini to be changed to Tags2Folders.ini?  That way the program could exist in a directory where other programs create or read a config.ini.
- Config.ini doesn't remember Copy/Move option.  Could this be added?

Website | Download
v1.0.4 - 2010-02-19
    + Added option to preserver file modification times.  (Thanks, TT1)
    + Added capability to cancel file processing once started.  (Thanks, TT1)
    * Copy/Move files options is now remembered between sessions.  (Thanks, TT1)
    * Changed configuration file name to Tags2Folders.ini.  (Thanks, TT1)
    ! Temp folder is removed properly now.  (Thanks, TT1)


- The program has a problem when used on a system with a different DPI setting (Rt.click on Desktop, Settings, Advanced, DPI setting, set to 120dpi).  Some of the text is partially missing. (see: http://go.microsoft....wlink/?LinkID=129586)

Hmmm...I do have code in place for 120DPI boxes and it looks fine on my test VM under that DPI setting.  Would you mind posting a screenshot and I'll fix it in the next build?

- If files are already in the destination, could you skip the copy/move if filename and MD5 matches (as an option).  This might speed things up, effectively copying/moving only those files that aren't already in the destination.

I don't overwrite any existing files so they should be "skipped" already.

- Will this work with 10,000+ files (due to limited buffer space, etc.)?  I just want to make sure before I let'er rip...  ;>)

Yes, shouldn't be a problem.  The slowest part is the actual copying/moving of the files.  The tag scanning is adapted from my Trout audio player and is very fast (if I may be so bold).  I'd be curious to know how it does perform for you, though.   :D
4448
Finished Programs / Re: DONE: Group files from within folders
« Last post by skwire on February 19, 2010, 02:02 AM »
Website | Download
v1.0.4 - 2010-02-19
    + Added a "Delete to Recycle Bin" right-click option for the bucket listview.  (Thanks, R. Nesselroad)
    * Changed the icon look from the Silk set to the Fugue set found at http://www.pinvoke.com.
4449
Post New Requests Here / Re: IDEA: timer/keyboard macro combo program...
« Last post by skwire on February 18, 2010, 03:24 AM »
I forgot about "WinActivate and WinWaitActive" - I'll look into those.  I think I've used the other commands before. Thanks!

Oh, I forgot--will this still work if the computer's "locked"?
-Onesimus Prime (February 18, 2010, 01:33 AM)

Doubtful.
4450
Post New Requests Here / Re: IDEA: timer/keyboard macro combo program...
« Last post by skwire on February 18, 2010, 01:23 AM »
This is the perfect scenario for a simple personal AutoHotkey script.  http://www.autohotkey.com  The commands you're going to want to look up are Sleep, Send, WinActivate, and WinWaitActive.  If you're not able to write it yourself, let us know and we'll help out.
Pages: prev1 ... 173 174 175 176 177 [178] 179 180 181 182 183 ... 222next