Welcome Guest.   Make a donation to an author on the site November 27, 2014, 02:42:47 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Your Support Funds this Site: View the Supporter Yearbook.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: Daily Autohotkey  (Read 6031 times)
mahesh2k
Supporting Member
**
Posts: 1,409



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« on: May 05, 2011, 05:31:13 AM »

I don't know if this topic is posted already in some another sub-forum. I thought it's good idea to see what autohotkey apps are most of us are using on daily basis. Or apps made in autohotkey that you can't live without ? Just wanted to see if there are some good autohotkey apps that are missing from my radar or are worth to use to save time everyday on computer.  :-)
Logged
AbteriX
Charter Honorary Member
***
Posts: 1,053


Member #520

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #1 on: May 05, 2011, 05:50:33 AM »

Daily Autohotkey? Good idea ( i loved to read DailyVIM too)

-

One script of mine is to translate english to german.
I am german and can't english very well, so i use QuickDic (a little free portable app) to my translation aid.

Usually i do
- select an word
- copy to clipboard
- focus QuickDic
- paste in the word - read - and minimize QuickDic

Now i have  handicrafts an ahk script to help me doing this more easier and quicker.

I don't say that this is done well, just showing an idea:


Formatted for Autohotkey with the GeSHI Syntax Highlighter [copy or print]
  1. ;  # Win,  ! Alt,  ^ Control,  + Shift, RControl Right Control
  2.  
  3. RControl & ^Q::
  4. send ^c                 ;current selection to clipboard
  5. ;SetTitleMatchMode, 2 ;1: must start with ;2: can contain ;3: must exactly match
  6. ;SendMode, Input      
  7.  
  8. IfWinExist, QuickDic
  9. {
  10.   WinActivate, QuickDic
  11. }
  12. {
  13.   DetectHiddenWindows, On ;see invisible windows - zB um Windows im Tray zu erkennen
  14.   WinRestore, QuickDic        ;Un-minimizes or un-maximizes
  15. }
  16. IfWinActive, QuickDic
  17.        send ^a  ;select all for overwriting
  18. send ^v  ;paste



Hmm, it seams that the Code Highlighting for AutoHotkey is somehow broken?
So again in AutoIt:

EDIT:
ahh, i see the Code Highlighting for AutoHotkey is only messed up in the preview (with FireFox) and looks ok once posted.
« Last Edit: May 05, 2011, 05:52:41 AM by AbteriX » Logged

Greetings, Stefan.
Ath
Supporting Member
**
Posts: 2,268



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #2 on: May 05, 2011, 05:52:33 AM »

Why would you want to limit that request to AutoHotKey apps?
And there are several other threads on most used/useful apps already Grin
Logged

nosh
Supporting Member
**
Posts: 1,396


View Profile Give some DonationCredits to this forum member
« Reply #3 on: May 05, 2011, 06:44:51 AM »

There's a numlock always on script posted by lanux that I have in my startup.

Here.
Logged
Nisun
Supporting Member
**
Posts: 1

View Profile Give some DonationCredits to this forum member
« Reply #4 on: May 05, 2011, 10:52:03 AM »

The only AHK app I use daily is Belvedere. I use it to clean out my Firefox "Downloads" folder. I'm a bit of a download hoarder, and I forget/neglect to clean out the downloads, so I just have Belvedere delete everything over 3 days old. Keeps me from getting confused, or using older versions for installs.

http://lifehacker.com/341...tes-your-self+cleaning-pc
Logged
app103
That scary taskbar girl
Global Moderator
*****
Posts: 5,327



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #5 on: May 05, 2011, 10:53:46 AM »

Logged

mahesh2k
Supporting Member
**
Posts: 1,409



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #6 on: May 05, 2011, 02:10:27 PM »

Quote
Why would you want to limit that request to AutoHotKey apps?

To see if there are any ahk apps that i can use to automate tasks. (Looking for ways to save time)
Logged
doctorfrog
Supporting Member
**
Posts: 134


see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #7 on: May 05, 2011, 03:24:35 PM »

  • Anuran, of course (my idea, skillfully coded by Skwire)
  • Belvedere, to clean out my downloads directory every week
  • hktunes, to control iTunes
Logged
MilesAhead
Member
**
Posts: 5,054



View Profile WWW Give some DonationCredits to this forum member
« Reply #8 on: May 05, 2011, 04:03:28 PM »

Here's 3 hotkeys I always have loaded:

Transpose : one of mine - Control-t to swap the 2 characters left of the caret to fix "reverse order typos" on the fly. It also has some other hotkeys such as for Chromium based browsers(control-click opens new tab in foreground etc..) By getting the class names with the spy tool you can add apps to the groups. The download has source, custom icon, readme and the compiled exe:
http://www.favessoft.com/hotkeys.html

edit: added a function to Transpose. I like to try Chromium nightly builds portables. The first thing that seems to drop out is the AutoCopy extension.  Everything else works the vast majority of the time.  I removed AutoCopy and use Shift-Right-Click the mouse in Transpose(only active in Chromium/Chrome based browsers) to copy selected text to clipboard.  After a pause to give you a chance to let off the Shift key, it deselects the text. You still have your normal right click menu in Chromium.


The 2nd is WinSize2 by Magra for automatically placing your windows.  Great script with a nice tabbed options dialog:
http://www.autohotkey.com...75&highlight=winsize2


The 3rd is my latest app.  Not ahk, it's AutoIt3 but still a hotkey.  ReRun pops up a window with 14 buttons that fill with the icons from the most recent programs(watches the active window.)  The idea is if you close an app inadvertently, hit the hotkey or double-click the icon to pop up the window.  Enabled buttons have the icon of the program. Hovering the mouse shows the short name of the program. The icons fill in right to left as it's oriented for right-handed people.  Perhaps I'll make it adjustable in later versions.. but it's still pretty new. Just getting the main bugs out. ReRun does not include source as there are just too many nested include files of user defined functions. It's on the same Hotkey page as Transpose:

http://www.favessoft.com/hotkeys.html





edit: I just updated ReRun. If you would prefer the buttons to fill in left to right set the LeftHanded option in ReRun.ini to non zero.  Default setting is 0.
« Last Edit: May 09, 2011, 04:00:01 PM by MilesAhead » Logged

"It's only called research if you didn't find it the first time."
-- MilesAhead
IainB
Supporting Member
**
Posts: 4,876


Slartibartfarst

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #9 on: May 08, 2011, 08:33:50 AM »

Has anyone here migrated from AHK (32-bit) to AHK (64-bit)?
I tried it and rapidly went back to 32-bit as a lot of my scripts seemed to be broken.
I'd be very interested in any pointers to make the migration.
Logged
capitalH
Participant
*
Posts: 71


see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #10 on: May 09, 2011, 01:51:58 AM »

By me (or modified by me)
AltTab - based on http://www.autohotkey.net/~evl/AltTab/AltTab.ahk, but heavily modified.
BetterPaste - Plain text pasting
AutoBackup - Detects if my external HD is inserted and the starts the backup (after a confirmation of course, otherwise if I want to do a restore it would be a problem!)
SimpleVersionControl - Once every hour, makes a copy of every changed dox, docx, xls, xlsx etc. and renames it with the time-date in the filename (heavy lifting done by RoboCopy+Dos Batch File (Renaming part), SVC is just a scheduler)
KeePassByPass - Simple script to have KeePass work properly with IE (some passwords were sent incomplete with 1/2 characters missing)
Startup - Runs a list of programs depending if I am at work or at home

By other people
ShutDown Timer - ShutDown after a specified amount of time
FolderMenu - not done by me, but was written in AHK

Stuff that I am working on (but not usable)
Work Logger - Capturing of active window titles, assignment to projects based on rules, and reporting of time spent on those projects
TDL Sync - Sync ToDoList http://www.codeproject.com/KB/applications/todolist2.aspxto GroupWise
ShutDown Timer2 - ShutDown when a process cease to exist (should be easy - but just have not started with it yet)
Logged
MilesAhead
Member
**
Posts: 5,054



View Profile WWW Give some DonationCredits to this forum member
« Reply #11 on: May 17, 2011, 08:14:33 PM »



DriveKeysAtoZ is handy. I like the RControl as it doesn't interfere with say Control-t or other use of left control key.

I reworked it just a tad, mainly to add EmptyWorkingSet() call that reduces memory usage to around 328 KB sitting in the tray. I also added a 2 second time-out to the error box so that the user isn't forced into a key press to clear it.

Edit: also added ifwinactive so that the hotkeys would only work if Explorer or the Desktop is that active window.  Avoids conflicts with editors etc..

Edit2: also added tray and taskbar to make life a bit easier.

[copy or print]
#NoEnv
#SingleInstance,Force
SetBatchLines,-1
SetTitleMatchMode,RegEx
GroupAdd,DesktopGroup, ahk_class CabinetWClass
GroupAdd,DesktopGroup, ahk_class ExploreWClass
GroupAdd,DesktopGroup, ahk_class Progman
GroupAdd,DesktopGroup, ahk_class WorkerW
GroupAdd,DesktopGroup, ahk_class Tray
Hotkey, IfWinActive, ahk_Group DesktopGroup

Loop,% Asc("Z")-Asc("A")+1
{
  drive:=Chr(Asc("A")+A_Index-1)
  Hotkey,RCtrl & %drive%,OPEN
}
  _EmptyWorkingSet()
Return

OPEN:
  StringTrimLeft,drive,A_ThisHotkey,8
  IfNotExist, %drive%:\
  MsgBox, 4112, DriveKeysAtoZ, %drive% drive does not exist, 2
  Else
  {
    Run,Explorer.exe /e`,%drive%:\
  }
  _EmptyWorkingSet()
Return

_EmptyWorkingSet()
{
  Return DllCall("psapi.dll\EmptyWorkingSet", "UInt", -1)
}
« Last Edit: May 17, 2011, 10:24:36 PM by MilesAhead » Logged

"It's only called research if you didn't find it the first time."
-- MilesAhead
MilesAhead
Member
**
Posts: 5,054



View Profile WWW Give some DonationCredits to this forum member
« Reply #12 on: May 17, 2011, 11:03:00 PM »

Ok, now I see why you did it the long way using all :: for hotkeys.

Basically I went back to the source in your download and just added the
IfWinActive bit.  The other wrinkle is holding the Left Mouse Button down while
hitting a key.  That way I can use the mouse click to make the desktop or some
non application space active, such as task tray.  While holding the left mouse
button down I just hit a letter key.  Otherwise I have to click someplace to make
a safe window the active window, then let go of the mouse and hit a key combo.
If you are more keyboard oriented this is probably no hassle as you may hit
AltTab to go to another window or some other key combo.  But I'm mouse
oriented.  This is just a variation more comfortable for me. I hope you don't
mind me tromping on your ahk code. It's just a handy util so I wanted to
modify for the mouse oriented types like myself. smiley

edit: even with the hotkeys all hard coded using :: the calls to EmptyWorkingSet()
keep memory usage in the tray under a MB.

[copy or print]
;DriveKeysAtoZ.ahk
;Opens Explorer to the root of the desired drive letter.
;Version 1.0
;April 23, 2007
;Author: A. Russo (app103)
;Home page: http://www.appsapps.info
;Email:  apps.freeware.apps@gmail.com

;Visit DonationCoder.com for more great original software.

;NOTE:
;The hotkey combination I used will not work on 9x systems.
;I will change it or compile a 9x version as soon as I can think of
;   an appropriate key to use in place of the Right Control key.

; limitations on active window and change of RCtrl modifier to
; left mouse button by MilesAhead

SetTitleMatchMode,RegEx
GroupAdd,DesktopGroup, ahk_class CabinetWClass
GroupAdd,DesktopGroup, ahk_class ExploreWClass
GroupAdd,DesktopGroup, ahk_class Progman
GroupAdd,DesktopGroup, ahk_class WorkerW
GroupAdd,DesktopGroup, ahk_class Tray
Hotkey, IfWinActive, ahk_Group DesktopGroup

~LButton & a::
IfNotExist, A:\
MsgBox, 4112, DriveKeysAtoZ, Drive not found, 2
else
Run,explore A:\
_EmptyWorkingSet()
return

~LButton & b::
IfNotExist, B:\
MsgBox, 4112, DriveKeysAtoZ, Drive not found, 2
else
Run,explore B:\
_EmptyWorkingSet()
return

~LButton & c::
IfNotExist, C:\
MsgBox, 4112, DriveKeysAtoZ, Drive not found, 2
else
Run,explore C:\
_EmptyWorkingSet()
return

~LButton & d::
IfNotExist, D:\
MsgBox, 4112, DriveKeysAtoZ, Drive not found, 2
else
Run,explore D:\
_EmptyWorkingSet()
return

~LButton & e::
IfNotExist, E:\
MsgBox, 4112, DriveKeysAtoZ, Drive not found, 2
else
Run,explore E:\
_EmptyWorkingSet()
return

~LButton & f::
IfNotExist, F:\
MsgBox, 4112, DriveKeysAtoZ, Drive not found, 2
else
Run,explore F:\
_EmptyWorkingSet()
return

~LButton & g::
IfNotExist, G:\
MsgBox, 4112, DriveKeysAtoZ, Drive not found, 2
else
Run,explore G:\
_EmptyWorkingSet()
return

~LButton & h::
IfNotExist, H:\
MsgBox, 4112, DriveKeysAtoZ, Drive not found, 2
else
Run,explore H:\
_EmptyWorkingSet()
return

~LButton & i::
IfNotExist, I:\
MsgBox, 4112, DriveKeysAtoZ, Drive not found, 2
else
Run,explore I:\
_EmptyWorkingSet()
return

~LButton & j::
IfNotExist, J:\
MsgBox, 4112, DriveKeysAtoZ, Drive not found, 2
else
Run,explore J:\
_EmptyWorkingSet()
return

~LButton & k::
IfNotExist, K:\
MsgBox, 4112, DriveKeysAtoZ, Drive not found, 2
else
Run,explore K:\
_EmptyWorkingSet()
return

~LButton & l::
IfNotExist, L:\
MsgBox, 4112, DriveKeysAtoZ, Drive not found, 2
else
Run,explore L:\
_EmptyWorkingSet()
return

~LButton & m::
IfNotExist, M:\
MsgBox, 4112, DriveKeysAtoZ, Drive not found, 2
else
Run,explore M:\
_EmptyWorkingSet()
return

~LButton & n::
IfNotExist, N:\
MsgBox, 4112, DriveKeysAtoZ, Drive not found, 2
else
Run,explore N:\
_EmptyWorkingSet()
return

~LButton & o::
IfNotExist, O:\
MsgBox, 4112, DriveKeysAtoZ, Drive not found, 2
else
Run,explore O:\
_EmptyWorkingSet()
return

~LButton & p::
IfNotExist, P:\
MsgBox, 4112, DriveKeysAtoZ, Drive not found, 2
else
Run,explore P:\
_EmptyWorkingSet()
return

~LButton & q::
IfNotExist, Q:\
MsgBox, 4112, DriveKeysAtoZ, Drive not found, 2
else
Run,explore Q:\
_EmptyWorkingSet()
return

~LButton & r::
IfNotExist, R:\
MsgBox, 4112, DriveKeysAtoZ, Drive not found, 2
else
Run,explore R:\
_EmptyWorkingSet()
return

~LButton & s::
IfNotExist, S:\
MsgBox, 4112, DriveKeysAtoZ, Drive not found, 2
else
Run,explore S:\
_EmptyWorkingSet()
return

~LButton & t::
IfNotExist, T:\
MsgBox, 4112, DriveKeysAtoZ, Drive not found, 2
else
Run,explore T:\
_EmptyWorkingSet()
return

~LButton & u::
IfNotExist, U:\
MsgBox, 4112, DriveKeysAtoZ, Drive not found, 2
else
Run,explore U:\
_EmptyWorkingSet()
return

~LButton & v::
IfNotExist, V:\
MsgBox, 4112, DriveKeysAtoZ, Drive not found, 2
else
Run,explore V:\
_EmptyWorkingSet()
return

~LButton & w::
IfNotExist, W:\
MsgBox, 4112, DriveKeysAtoZ, Drive not found, 2
else
Run,explore W:\
_EmptyWorkingSet()
return

~LButton & x::
IfNotExist, X:\
MsgBox, 4112, DriveKeysAtoZ, Drive not found, 2
else
Run,explore X:\
_EmptyWorkingSet()
return

~LButton & y::
IfNotExist, Y:\
MsgBox, 4112, DriveKeysAtoZ, Drive not found, 2
else
Run,explore Y:\
_EmptyWorkingSet()
return

~LButton & z::
IfNotExist, Z:\
MsgBox, 4112, DriveKeysAtoZ, Drive not found, 2
else
Run,explore Z:\
_EmptyWorkingSet()
return

_EmptyWorkingSet()
{
  Return DllCall("psapi.dll\EmptyWorkingSet", "UInt", -1)
}
« Last Edit: May 17, 2011, 11:07:52 PM by MilesAhead » Logged

"It's only called research if you didn't find it the first time."
-- MilesAhead
MilesAhead
Member
**
Posts: 5,054



View Profile WWW Give some DonationCredits to this forum member
« Reply #13 on: May 18, 2011, 12:14:50 AM »

After messing around I decided staying away from the mouse may be better.
This seems like a simple approach.  You may want to stick in an #IfWinActive
but I don't use Control-UpArrow much that I can remember. With calls to
EmptyWorkingSet it hangs in the tray at around 350 KB.

Edit: added an error notifier ToolTip for drive letters than don't exist.
It disappears after 3 seconds.

[copy or print]
; KeyDrive - another approach to opening a drive with a hotkey
;
; Author - MilesAhead
;
; Usage - Press Control Up Arrow, and when prompted, press a letter.
; if that drive letter exists it should open in Explorer.
;
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
CoordMode, ToolTip,Screen
Menu Tray,NoStandard
Menu Tray,Add,About,DoAbout
Menu Tray,Add
Menu Tray,Add,Quit,DoQuit
Menu Tray,Default,About
Menu Tray,Tip,KeyDrive

_EmptyWorkingSet()

^Up::
  ToolTip,Press a letter to open Explorer to that drive,(A_ScreenWidth / 2) - 100,A_ScreenHeight / 2
  Input,keypress,L1
  ToolTip
  dr := keypress . ":\"
  If FileExist(dr)
  {
Run,Explorer.exe /e`,%keypress%:\
  }
  else
  {
    ToolTip,%keypress%:\  Drive Does Not Exist!,(A_ScreenWidth / 2) - 100,A_ScreenHeight / 2
    Sleep,3000
    ToolTip
  }
  _EmptyWorkingSet()
Return

_EmptyWorkingSet()
{
  Return DllCall("psapi.dll\EmptyWorkingSet", "UInt", -1)
}

DoAbout:
  MsgBox, 4160, KeyDrive, Press Control Up Arrow then a letter to Open that drive in Explorer, 10
Return 
 
DoQuit:
  ExitApp
« Last Edit: May 18, 2011, 04:29:02 AM by MilesAhead » Logged

"It's only called research if you didn't find it the first time."
-- MilesAhead
MilesAhead
Member
**
Posts: 5,054



View Profile WWW Give some DonationCredits to this forum member
« Reply #14 on: May 19, 2011, 03:54:08 PM »

Sorry to keep doing follow-ups. But when I see a good idea I like to try to add variations or features.

I added a couple more hotkeys with sort of a fake Snap functionality.  Unlike Windows7 where you hit Winkey Left Arrow to put the active window on the left half of the screen, here you use RWinKey Left Arrow and hit a letter to open an Explorer window for that drive on the left half of the screen.  Also you can hit RWinKey Up Arrow and 2 letters to put up 2 drives side by side. They can be the same letter to allow 2 views of C: as example.

It's good for a couple of quick drag & drops.  Complicated file maintenance and you may as well bring up a file manager.  But this snaps up quickly.

The latest version can be downloaded here:
http://www.favessoft.com/hotkeys.html

I called it KeyDrive. I included source and custom icon as well as .exe file. See the About box for hotkeys.

Thanks to App for the inspiration and working code.   Thmbsup

Logged

"It's only called research if you didn't find it the first time."
-- MilesAhead
ewemoa
Honorary Member
**
Posts: 2,492



View Profile Give some DonationCredits to this forum member
« Reply #15 on: May 25, 2011, 01:08:37 AM »

I thought it's good idea to see what autohotkey apps are most of us are using on daily basis. Or apps made in autohotkey that you can't live without ?
Recently I've used the following on more than a few occasions:

sWeather
Video2MP3
SelectAll
DisablePortableAppSplashScreen
Logged
lanux128
Global Moderator
*****
Posts: 6,133



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #16 on: June 05, 2011, 12:31:49 AM »

nice topic, the following would be my often used scripts..

1. WinWarden by Skrommel.
2. Trout by Skwire.
3. Ctrl+backspace Delete by Ewemoa.
4. Wikipedia Autocorrect by Jim Biancolo.
5. CopyCap + LocateFolder by me with some code from AndyM/Shimanov.
Logged

Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.104s | Server load: 0.05 ]