AutoHotkey Community

It is currently May 27th, 2012, 9:12 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 15 posts ] 
Author Message
PostPosted: November 10th, 2011, 1:38 am 
AutoHotKey is awesome!

let's share simple and not so simple/complex/unique/intriguing ... ways we use AutoHotKey...

preferably with info on how you implemented with [code][/code] tags...

thank you...

[ Moderator! : Moved from Scripts and Functions ]


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 10th, 2011, 1:46 am 
one basic essential script is to auto reload of AutoHotkey.ahk after every save in notepad...

Code:
#ifwinactive, AutoHotkey.ahk - Notepad
^s::
send, {ctrl down}s{ctrl up}
sleep 100
reload, "C:\Users\SONY\Documents\AutoHotkey.ahk"
return


script #2 When pressing Win+E - I did not want to open the regular Explorer - but instead a more advanced Q-Dir so I made:

Code:
#e::Run C:\_Q\open_q_dir_with_four_paths.qdr


script #3 - I have used Maxthon browser for many years and I got used to navigating tabs left and right using F2 and F3 respectively...
I have achieved the same in Firefox using plugin called "Keyconfig"
and now I am using Chrome and can't seem to be able to make a plug in to navigate tabs using F2 and F3

so I made:
Code:
#IfWinActive ahk_class Chrome_WidgetWin_0
F2::
Send {Ctrl Down} {Shift Down} {Tab} ; Hold down the left-arrow key.
;Sleep 100  ; Keep it down for one second.
Send {Ctrl Up} {Shift Up}
return

#IfWinActive ahk_class Chrome_WidgetWin_0
F3::
Send {Ctrl Down} {Tab} ; Hold down the left-arrow key.
;Sleep 100  ; Keep it down for one second.
Send {Ctrl Up}
return


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 10th, 2011, 2:53 am 
Offline

Joined: March 10th, 2008, 12:55 am
Posts: 1907
Location: Minnesota, USA
I see you've been posting a bit, you should register an account :) Edit your posts, keep track of your topics, get a signature and other nice things.
Quote:
one basic essential script is to auto reload of AutoHotkey.ahk after every save in notepad...

you might want to consider upgrading to Notepad++ or SciTe4AutoHotkey. Np++ is a bit more work to configure, but they both have a LOT of helpful features, like press F5 to run code. and unlimited undo/redo, syntax highlighting and parameter hints on commands/functions.

Quote:
Maxthon browser

I love Maxthon 3, using it right now. about a year, probably. I wish v3 had as many features as v2

__________________________________

There are also a few other topics like this.

But this is my main program (It's been updated since this image):
I don't really do much with AHK, but one of my main script is this, Mango. I prefer menus over hotkeys.

_________________
rawr. be very afraid
*poke*
Note: My name is all lowercase for a reason.
"I think Bigfoot is blurry, that's the problem. It's not the photographer's fault, Bigfoot is blurry. So there's a large, out-of-focus monster roaming the countryside."


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 10th, 2011, 4:06 am 
Offline

Joined: December 26th, 2010, 7:40 pm
Posts: 4172
Location: Awesometown, USA
What image, tidbit? :lol:

_________________
Autofire, AutoClick, Toggle, SpamWindow Control Tools
Recommended: AutoHotkey_L


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 10th, 2011, 1:11 pm 
To auto activate the window under mouse (scroll lock status will enable it)

Code:
~ScrollLock::
 
   SLStatus := GetKeyState("ScrollLock", "T")
   SPI_SETACTIVEWINDOWTRACKING = 0x1001
   SPIF_UPDATEINIFILE = 1
   SPIF_SENDCHANGE = 2
   DllCall("SystemParametersInfo",UInt,SPI_SETACTIVEWINDOWTRACKING,UInt,0,UInt,SLStatus,UInt,SPIF_UPDATEINIFILE | SPIF_SENDCHANGE)
return


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 10th, 2011, 5:04 pm 
Offline

Joined: March 10th, 2008, 12:55 am
Posts: 1907
Location: Minnesota, USA
nimda wrote:
What image, tidbit? :lol:

Image

_________________
rawr. be very afraid
*poke*
Note: My name is all lowercase for a reason.
"I think Bigfoot is blurry, that's the problem. It's not the photographer's fault, Bigfoot is blurry. So there's a large, out-of-focus monster roaming the countryside."


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 10th, 2011, 7:28 pm 
How has this not been moved to General Chat yet?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 10th, 2011, 9:06 pm 
Offline

Joined: December 26th, 2010, 7:40 pm
Posts: 4172
Location: Awesometown, USA
oh, that image :P


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 10th, 2011, 9:18 pm 
Mod, please move to General Chat. Thx.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 21st, 2011, 12:51 am 
!a::WINHIDE,A
!r::RELOAD

#s::
loop
{
WinGet,pid, pid, A
Process, CLOSE, %pid%
sleep 50
}


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 21st, 2011, 1:34 am 
Offline
User avatar

Joined: November 2nd, 2008, 4:23 pm
Posts: 2906
Location: 127.0.0.1
I find this really useful:
Code:
Clipboard := Clipboard


It can be used for a number of things. The most common is getting the path to a file you copied in explorer.

_________________
aboutscriptappsscripts
Any code ⇈ above ⇈ requires AutoHotkey_L to run


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 21st, 2011, 10:38 am 
Code:
SetScrollLockState, AlwaysOff
Such a pleasure :wink:


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 21st, 2011, 12:50 pm 
Offline

Joined: December 26th, 2010, 7:40 pm
Posts: 4172
Location: Awesometown, USA
You can do better than that! Bind the scrollLock key to do something usedul ;)

_________________
Autofire, AutoClick, Toggle, SpamWindow Control Tools
Recommended: AutoHotkey_L


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 21st, 2011, 1:01 pm 
I have, it is my launch button for 320mph :-)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 21st, 2011, 1:50 pm 
Offline
User avatar

Joined: November 2nd, 2008, 4:23 pm
Posts: 2906
Location: 127.0.0.1
I've never really known... what does scroll lock do?


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: garry and 11 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group