topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Monday December 29, 2025, 3:23 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 ... 14 15 16 17 18 [19] 20 21 22 23 24 ... 38next
451
Post New Requests Here / Re: IDEA: Desktop Teleporter
« Last post by skrommel on November 29, 2006, 07:59 PM »
 :) Any one care to test this script? It's called CleanDesk, but you can edit the settings to make rules to move any files and folders from any folders, and either ignore, move or rename them.

Please report any bugs, and I'll give it a GUI tomorrow.

Skrommel

Spoiler
;CleanDesk.ahk
; Moves files and folders from the Desktop (or any other folder) to another folder
; Make rules for certain file types or file names to be ignored, replaced or renamed
; Save to file and use AutoHotkey from www.autohotkey.com to run it
;Skrommel @ 2006


;Settings
timer=2000                         ;How often to check for new files in ms
status=0                           ;0=Hide 1=Show Traytip of files being moved
1source=%A_Desktop%                ;Use variables like %A_Desktop%, %A_ScriptDir%, %A_MyDocuments%, %A_StartMenu%
1target=%A_Desktop%\Desktop        ;  %A_AppData%, %A_ProgramFiles%, %A_WinDir%
1files=*                           ;Files to move, supports wildcards * and ?
1ignore=jpg,jpeg                   ;Filenames and extensions to ignore, separated by comma. No wildcards!
1replace=2                         ;0=No 1=Yes 2=Ask 3=Rename

2source=%A_DesktopCommon%          ;%A_DesktopCommon%, %A_StartMenuCommon%, %A_ProgramsCommon%
2target=%A_DesktopCommon%\Desktop  ;
2files=*                           ;Files to move, supports wildcards * and ?
2ignore=                           ;Filenames and extensions to ignore
2replace=2                         ;0=No 1=Yes 2=Ask 3=Rename

3source=%A_Desktop%               
3target=%A_Desktop%\Desktop       
3files=*.jp*g                      ;Only jpg and jpeg images
3ignore=                           
3replace=3                         ;Rename if same name


;Program
#Persistent
#SingleInstance,Force

SetTimer,TIMER,%timer%
Return


TIMER:
SetTimer,TIMER,%timer%,Off
Loop,9
{
  counter:=A_Index
  source:=%counter%source
  target:=%counter%target
  files:=%counter%files
  ignore:=%counter%ignore
  replace:=%counter%replace
  If source=
    Continue
  Gosub,CLEAN
}
SetTimer,TIMER,%timer%,On
Return


CLEAN:
Loop,%source%\%files%,1,0
{
  ext:=A_LoopFileExt
  name:=A_LoopFileName
  longpath:=A_LoopFileLongPath
  If ext In %ignore%
    Continue
  If name In %ignore%
    Continue
  If longpath In %ignore%
    Continue
  If status=1
    TrayTip,%applicationname%,%longpath%
  FileGetAttrib,attrib,%longpath%
  IfInString,attrib,D
    Gosub,FOLDER
  Else
    Gosub,FILE
}
Return


FOLDER:
FileCreateDir,%target%
If replace=0
{
  FileMoveDir,%longpath%,%target%,R
  If ErrorLevel=1
    FileMoveDir,%longpath%,%target%,0
}
Else
If replace=1
{
  FileMoveDir,%longpath%,%target%,R
  If ErrorLevel=1
    FileMoveDir,%longpath%,%target%,2
}
Else
If replace=2
{
  IfExist,%target%\%name%
  {
    MsgBox,3,%applicationname%,Replace folder %target%\%name% ?
    IfMsgBox,Yes
      FileMoveDir,%longpath%,%target%,1
    IfMsgBox,No
    {
      ignore=%ignore%,%longpath%
      %counter%ignore=%ignore%
    }
    IfMsgBox,Cancel
      ExitApp
  }
  Else
  {
    FileMoveDir,%longpath%,%target%,R    ;Doesn't work !?
    If ErrorLevel=1
      FileMoveDir,%longpath%,%target%,1  ;Should really be 0 !?
  }
}
Else
If replace=3
{
  IfExist,%target%\%name%
  {
    FileMoveDir,%longpath%,%target%\%name%-%A_Now%.%ext%,R
    If ErrorLevel=1
      FileMoveDir,%longpath%,%target%\%name%-%A_Now%.%ext%,0
  }
  Else
  {
    FileMoveDir,%longpath%,%target%,R
    If ErrorLevel=1
      FileMoveDir,%longpath%,%target%,0
  }
}
Return


FILE:
If replace In 0,1
  FileMove,%longpath%,%target%,%replace%
Else
If replace=2
{
  IfExist,%target%\%name%
  {
    MsgBox,3,%applicationname%,Replace file %target%\%name% ?
    IfMsgBox,Yes
      FileMove,%longpath%,%target%,1
    IfMsgBox,No
    {
      ignore=%ignore%,%longpath%
      %counter%ignore=%ignore%
    }
    IfMsgBox,Cancel
      ExitApp
  }
  Else
    FileMove,%longpath%,%target%,0
}
Else
If replace=3
{
  IfExist,%target%\%name%
    FileMove,%longpath%,%target%\%name%-%A_Now%.%ext%,0
  Else
    FileMove,%longpath%,%target%,0
}
Return

452
Post New Requests Here / Re: IDEA: Run Dialog aliases
« Last post by skrommel on November 27, 2006, 10:03 PM »
 :) I've given this advice all day today, but have you tried my own AutoClip? You don't even have to open the Run dialog, you can write your aliases anywhere!

Skrommel
453
 :) May I suggest my own AutoClip? It supports scripts for automation.

Skrommel
454
Post New Requests Here / Re: IDEA: Restart IE
« Last post by skrommel on November 27, 2006, 07:02 PM »
 :tellme: Really, you're not using Maxthon?

Skrommel
455
Finished Programs / Re: DONE: MultiMonitorManager
« Last post by skrommel on November 27, 2006, 06:41 PM »
 :) Hi, all! Been a while, hasn't it?

Just uploaded MultiMonMan v2.0 , with much improved response. I've removed the use of IrfanView, as AutoHotkey's members have pieced together the APIs for StretchBlting.

Skrommel
456
Post New Requests Here / Re: IDEA: View full file system at once (all folders)
« Last post by skrommel on October 28, 2006, 11:58 AM »
 :tellme: What do you mean by zoomable?

skrommel
457
 :) Great idea! I've also gotten a request for adding delays.

Skrommel
458
Post New Requests Here / Re: IDEA: Putting icons on the title bar?
« Last post by skrommel on July 19, 2006, 07:28 PM »
 :tellme: Any icons in particular?

Skrommel
459
 :) Try my GreenOSD - Shows changing volume and selected keys on screen!

I haven't got a multimedia keyboard at hand, so please try the script and let me know what's wrong.
Download and install AutoHotkey from www.autohotkey.com to run it.

Skrommel

;GreenOSD.ahk
; Shows changing volume and selected keys on screen
;Skrommel @2006


;OSD texts, edit for other languages or special apps
On=On
Off=Off
CapsLock=CapsLock
NumLock=NumLock
ScrollLock=ScrollLock
Insert=Insert
Browser_Back=Back
Browser_Forward=Forward
Browser_Refresh=Refresh
Browser_Stop=Stop
Browser_Search=Search
Browser_Favorites=Favorites
Browser_Home=Home
Volume_Mute=Mute
Volume_Down=Vol-
Volume_Up=Vol+
Media_Next=Next
Media_Prev=Prev
Media_Stop=Stop
Media_Play_Pause=Pause
Launch_Mail=Mail
Launch_Media=Media
Launch_App1=App1
Launch_App2=App2
PrintScreen=PrintScreen

;OSD layout, edit for other color, size and other
size=40
boldness=70
statefont=Arial
actionfont=Arial
color=00FF00
delay=5
transparency=200
xposition=Center     ; xposition=Center or any number
yposition=600        ; yposition=Center or any number


#SingleInstance,Force
#Persistent,On
SetWinDelay,0

applicationname=GreenOSD

showing=0
SoundGet,volume
SoundGet,mute,,Mute

Gui,1:+Center +ToolWindow +AlwaysOnTop -Caption -Border
Gui,1:Margin,0,0
Gui,1:Color,000000
Gui,1:Font,C%color% S%size% W%boldness%,%actionfont%
Gui,1:Add,Text,vvaction1,%PrintScreen%
Gui,1:Font,C%color% S%size% W%boldness%,%statefont%
Gui,1:Add,Text,vvstate1 x+10 yp,||||||||||||||||||||
Gui,1:Show,NoActivate X%xposition% Y%yposition% AutoSize,%applicationname%1  ; NoActivate avoids deactivating the currently active window.
WinSet,TransColor,000000 %transparency%,%applicationname%1
WinGetPos,x1,y1,width1,height1,%applicationname%1
WinMove,%applicationname%1,,0,0,1,1

SetTimer,CHECK,500
Return


CHECK:
SetTimer,CHECK,100
oldmute:=mute
SoundGet,mute,,Mute
oldvolume:=volume
SoundGet,volume
If (volume=oldvolume And mute=oldmute)
{
  showing+=1
  If (showing>=delay*10)
  {
    WinMove,%applicationname%1,,0,0,1,1
    showing=0
    SetTimer,CHECK,500
  }
  Return
}

showing=0
If mute=On
{
  action1=%Volume_Mute%
  state1=%On%
}
Else
If (volume<oldvolume)
  action1=%Volume_Down%
Else
If (volume>oldvolume)
  action1=%Volume_Up%
Else
{
  action1=%Volume_Mute%
  state1=%Off%
}
If (mute=oldmute)
{
  state1=
  Loop,% Ceil(volume/5)
    state1=%state1%|
}
Gosub,SHOW1
Return


SHOW1:
GuiControl,1:,vaction1,%action1%
GuiControl,1:,vstate1,%state1%
WinMove,%applicationname%1,,%x1%,%y1%,%width1%,%height1%
Return


~CapsLock::
~NumLock::
~ScrollLock::
~Insert::
showing=0
StringTrimLeft,action,A_ThisHotkey,1
GetKeyState,state,%action%,T
action1:=%action%
If state=D
  state1:=%On%
Else
  state1:=%Off%
Gosub,SHOW1
Return


~PrintScreen::
~Browser_Back::
~Browser_Forward::
~Browser_Refresh::
~Browser_Stop::
~Browser_Search::
~Browser_Favorites::
~Browser_Home::
~Volume_Mute::
~Media_Next::
~Media_Prev::
~Media_Stop::
~Media_Play_Pause::
~Launch_Mail::
~Launch_Media::
~Launch_App1::
~Launch_App2::
showing=0
StringTrimLeft,action,A_ThisHotkey,1
action1:=%action%
state1=
Gosub,SHOW1
Return
460
Post New Requests Here / Re: IDEA: (10+2)*5 Timer
« Last post by skrommel on July 19, 2006, 04:00 PM »
 :) Will my TakeABreak do, or is the *5 very important?

Skrommel
461
 :) Try TicTocTitle v1.4!

Added keys lock states for CapsLock, NumLock, ScrollLock and Insert. In the settings, use the words caps, num, scroll and insert.

I also corrected a bug when applying new settings.

Skrommel
462
Finished Programs / Re: DONE: Sync Network Folder Contents as Shortcuts
« Last post by skrommel on July 11, 2006, 05:09 PM »
 :) Please do!

Skrommel
463
Post New Requests Here / Re: IDEA: Symantec anti-virus auto-updater
« Last post by skrommel on July 11, 2006, 05:05 PM »
 :-[ I actually forgot that there's more to the Run option in DownloadAndRun, it can run another tool.

Try this script instead:

Run,PkUnzip.exe -d "downloaded file's path and name" "dir to extract to",,hide

(Change the above line to match your system)

Save it as Action.ahk, rightclick it and choose Compile Script to make  Action.exe.

Now update the ini-file to show action=Run Action.exe

Skrommel
464
 :) Yes! The world's shortest script! Something for Guinness' book of world records?

To have a program run when it is dropped on an icon, use the following AutoHotkey script:

Run,%1%

Save it to a file called DragToRun.ahk, and place it on your desktop. Download and install AutoHotkey from www.autohotkey.com, and during installation, check Enable drag & drop onto scripts. If not, you have to compile the script to an exe file by rightclicking it and choosing Compile Script.

Phew! Programming is such hard work!

Skrommel
465
Post New Requests Here / Re: IDEA: warn if IE has been running for too long
« Last post by skrommel on July 11, 2006, 03:56 PM »
 :tellme: I think detecting ahk_class IEFrame is more universal than detecting IExplore.exe. Many programs use the Internet Explorer engine without showing IExplore.exe in the tasklist.

Skrommel
466
Post New Requests Here / Re: IDEA: Symantec anti-virus auto-updater
« Last post by skrommel on July 11, 2006, 02:26 PM »
 :tellme: MikeMM wrote
to unpack, replace and delete the old lpt.zip file

This is not supported by DownloadAndRun, but a simple AutoHotkey script should correct this. It uses the command line version of PkUnzip, downloadable from here: http://membrane.com/synapse/library/pkunzip.exe

;Extract.ahk
; Checks if a file exist every minute, and extracts it
;Skrommel @2006

#Persistent

file=C:\Download\lpt.zip
dir=C:\Program files\Kaspersky

SetTimer,EXIST,60000
Return

EXIST:
IfExist,%file%
{
  RunWait,PkUnzip.exe -d "%file%" "%dir%",,hide
  FileDelete,%file%
}
Return


I'm also working on a more elaborate version of DownloadAndRun.

Skrommel
467
Post New Requests Here / Re: IDEA: Email Attachments Browser
« Last post by skrommel on July 11, 2006, 01:19 PM »
 :) For Outlook Express there's several recovery tools that will extract your attachments.

Macallan Outlook Express Extraction from http://macallan.club.fr/index.htm is free, but you have to select the dbx files individually.

Express Archiver from http://expressarchiver.com is a trial version, but easier to use.

Skrommel
468
Post New Requests Here / Re: IDEA: Secure auto-deleting directories
« Last post by skrommel on July 11, 2006, 12:37 PM »
:tellme: I would suggest using an encryption tool and a strong password instead, as the chance of data loss is greatly reduced. Try Private Disk from http://www.dekart.com, they even have a freeware Light version.

But if you really must, here's a script to try.


Disclaimer!
I've chosen not to make a "pretty" version of this tool to limit it's use.
It's untested! It will destroy your most valuable data beyond recovery! If you forget your pasword, turn off your computer immediately! Bypassing it is simple! Use with extreme caution!


DoOrDel - Startup tool that will delete user defined folders unless the right password is entered.

Features:
- Change the folders, password and wiping by editing the script.
- Supports wiping to prevent recovery. Download and install Eraser from http://www.tolvanen.com/eraser in the same folder as the script.
- Keeps the program focused while active.



You'll find the downloads and more info at 1 Hour Software by Skrommel.

Skrommel
469
 :) Sorry for the late reply. So far DownloadAndRun only supports one file, and it's only made to run the downloaded file. But it could easily be extended. Care to elaborate?

Skrommel
470
Finished Programs / Re: DONE: Sync Network Folder Contents as Shortcuts
« Last post by skrommel on July 11, 2006, 07:44 AM »
 :) Here's a command line version.

ShortcutSync - Command line tool to place shortcuts to files in a different folder, preserving the tree structure, and removing missing files.

Example: ShortcutSync.exe C:\Music D:\MusicLinks mp3 wav TrayTip

Syntax: ShortcutSync.exe <fromfolder> <tofolder> <extentions> [TrayTip]
<fromfolder> is the folder where the files are located
<tofolder> is the folder where the links should be created
<extensions> is the file types to make links to
TrayTip is added for visual feedback

You'll find the downloads and more info at 1 Hour Software by Skrommel.

Skrommel
471
Finished Programs / Re: DONE: Automatic Copy when highlighted
« Last post by skrommel on July 11, 2006, 07:17 AM »
 :) Absolutety possible!

Skrommel
472
Finished Programs / Re: DONE: Scroll Thru Clipbard Contents When Pasting
« Last post by skrommel on July 02, 2006, 07:36 AM »
 :) To
show the tooltip at the cursor
should be possible. I'll check it out when I get round to upgrading ClipStep.

Skrommel
473
Skrommel's Software / Re: Key Macros for MS WORD
« Last post by skrommel on July 02, 2006, 07:34 AM »
 :) Check out AutoHotkey's Suspend command.

Skrommel
474
 :tellme: It appears that the guarding.p2p list is external to PGLite, so what is needed is to download the latest version and restart PGLite? Where do you download from?

I think my DownloadAndRun combined with Windows' scheduler should do the trick.

Skrommel
475
Post New Requests Here / Re: IDEA: Limit Taskbar Autohide
« Last post by skrommel on June 20, 2006, 11:25 PM »
 :tellme:
Clicking maximize with FadingTaskbar only maximizes up to the point where the taskbar would be

You have to set Windows' taskbar to autohide.

About the Activation rectangle, it's just screen coordinates, where X is the leftmost, Y is the topmost, Width is the width of the rectangle and Height is the height of the rectangle. You can also use the variables ScreenHeight, ScreenWidth, TaskbarX, TaskbarY, TaskbarHeight and TaskbarWidth to make FadingTaskbar work with different resolutions.

So to make it only activate when the mouse is at the bottom of the screen, use X=ScreenHeight-1, Y=0, Width=ScreenWidth and Height=1.

Skrommel
Pages: prev1 ... 14 15 16 17 18 [19] 20 21 22 23 24 ... 38next