Jump to content


Photo

AutoHotKey


  • Please log in to reply
12 replies to this topic

#1 Pico_No_Blackbox

Pico_No_Blackbox

    AHK Scripter

  • Members
  • PipPipPip
  • 53 posts

Posted 15 August 2014 - 06:36 AM

http://ahkscript.org   AutoHotKey is a non-gui based language that is great for both automation and system interaction. All your editing in AHK is done in notepad(or similar) just like you do for BlackBox. So if you have scripts you wanna share, problems or anything of the AHK nature, feel free to post em here.   below are two ahk scripts (also in exe form fr those who dont wanna use ahk)   One is volume up, one is volume down. When you run them they will increase or decrease the system volume by 5%. I use these on my winamp player because the built in winamp 1% is just too much clicking and these scripts effect master volume, not just winamp volume. Edit note: After reviewing the post made below i have updated the link tot he new ahkscript community site as it seems much more active and i expect better content from that source.

Attached Files

  • Attached File  vol.zip   1.31MB   9 downloads

  • pitkon and diabol like this

#2 Pico_No_Blackbox

Pico_No_Blackbox

    AHK Scripter

  • Members
  • PipPipPip
  • 53 posts

Posted 20 August 2014 - 05:56 AM

A script to toggle hiding the title bar of the active window. Hotkey Shift + w   you can change the hotkey to whatever you want by editing the "+w" to  any key or combo.
ws = ""+w::if ws = ""{WinSet, Style, -0xC00000, Aws = 1}else{WinSet, Style, +0xC00000, Aws = ""}return
This will hide the title bar and remove the resize border. Note it has a different hotkey of Ctrl+w
ws = ""^w::if ws = ""{WinSet, Style, -0xC00000, AWinSet, Style, -0x40000, Aws = 1}else{WinSet, Style, +0xC00000, AWinSet, Style, +0x40000, Aws = ""}return

  • pitkon likes this

#3 diabol

diabol

    Lazyass

  • Validating
  • 236 posts

Posted 20 August 2014 - 02:16 PM

Btw, you can create guis with autohotkey as well as notification popups and stuff.

Also it allows you to call into dlls, so you can use gdi and whatnot.

It's a bit cumbersome to do that yourself, but there are libraries available for that


  • pitkon likes this

#4 Pico_No_Blackbox

Pico_No_Blackbox

    AHK Scripter

  • Members
  • PipPipPip
  • 53 posts

Posted 20 August 2014 - 03:47 PM

very true! One of the great things about AHK is how lightweight and powerful it is at the same time. Just about anything you can imagine to do with a full blown mainstream language you can do with AHK, usually, in less code.
  • pitkon likes this

#5 xDemonessx

xDemonessx

    Member

  • Members
  • PipPipPip
  • 56 posts
  • LocationChicago

Posted 22 August 2014 - 05:45 AM

Something to note is that autohotkey.com is hosting a version that is no longer being developed. http://ahkscript.org/ is the new community website.

 

I'd love to see some scripts for notifications, I'm not very literate with it.


  • firewater and Pico_No_Blackbox like this

#6 Pico_No_Blackbox

Pico_No_Blackbox

    AHK Scripter

  • Members
  • PipPipPip
  • 53 posts

Posted 26 August 2014 - 04:47 AM

Something to note is that autohotkey.com is hosting a version that is no longer being developed. http://ahkscript.org/ is the new community website.   I'd love to see some scripts for notifications, I'm not very literate with it.

you mean tooltip notifications? if so all you do is add traytip, , text here example:  

b1:= 0loop{	if b1 = 1	{	GetKeyState, state, Xbutton2	if state = D	{	send {ctrl down}	send {rbutton down}	sleep 10	send {rbutton up}	send {ctrl up}	}	else	GetKeyState, state1, XButton1	if state1 = D	{		loop 4		{		send {[ down}		sleep 10		send {[ up}		sleep 10		}	sleep 10	send {] down}	sleep 10	send {] up}	}	}}returnnumpad1::b1 := !b1if b1=1traytip,, ONelsetraytip,, OFFreturnnumpad0::reload sleep 100exitappreturn

this is a script i use to sell fish in my game easier. when i press number pad 1 it will say on or off letting me knwo if its safe to use the mouse keys for something else.


  • pitkon likes this

#7 xDemonessx

xDemonessx

    Member

  • Members
  • PipPipPip
  • 56 posts
  • LocationChicago

Posted 26 August 2014 - 10:38 PM

you mean tooltip notifications? if so all you do is add traytip, , text here example

 

this is a script i use to sell fish in my game easier. when i press number pad 1 it will say on or off letting me knwo if its safe to use the mouse keys for something else.

 

That's nice to have on hand, but not exactly what I'm looking for. I'd like AHK to function more like growl would, hooking up to logs with my chat client and popping up in the tooltip with certain words or text highlights.



#8 Pico_No_Blackbox

Pico_No_Blackbox

    AHK Scripter

  • Members
  • PipPipPip
  • 53 posts

Posted 27 August 2014 - 02:52 PM

 I'd like AHK to function more like growl would

 

no idea what "growl" is. sorry.



#9 pitkon

pitkon

    Administrator

  • Head Administrator
  • 1,333 posts
  • LocationAthens & Nafplio, Greece

Posted 27 August 2014 - 02:53 PM

no idea what "growl" is. sorry.

http://en.wikipedia....rowl_(software)



#10 diabol

diabol

    Lazyass

  • Validating
  • 236 posts

Posted 29 August 2014 - 05:24 AM

That's nice to have on hand, but not exactly what I'm looking for. I'd like AHK to function more like growl would, hooking up to logs with my chat client and popping up in the tooltip with certain words or text highlights.

 

That is certainly doable and probably has been done before


  • pitkon likes this

#11 adabo

adabo

    Advanced Member

  • Members
  • Pip
  • 1 posts

Posted 29 August 2014 - 04:42 PM

That's nice to have on hand, but not exactly what I'm looking for. I'd like AHK to function more like growl would, hooking up to logs with my chat client and popping up in the tooltip with certain words or text highlights.

 

If you know the file path to your log, then you could start with something like a Timer on a FileRead.


  • pitkon likes this

#12 aar0nism

aar0nism

    JoATMoN

  • Members
  • Pip
  • 7 posts

Posted 02 January 2015 - 06:34 AM

I <3 AHK. It is pretty powerful. I have used it for automation plenty of times in real world applications. 



#13 sed

sed

    VIP

  • Moderators
  • 59 posts
  • LocationCleveland, Ohio U.S.A.

Posted 28 May 2015 - 01:03 PM

Good post! :)


  • pitkon likes this




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users