 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
n8makar
Joined: 06 Aug 2009 Posts: 2
|
Posted: Thu Aug 06, 2009 1:02 am Post subject: Change Function Keys to Complex Macro |
|
|
Now I'm not an awesome programmer, but i've taken a class or two. However, before I start to learn AHK I wanted to know if it is possible to completely change the actions of the F1,F2,F3, etc keys to complex macros.
By complex I mean open a program, say songbird, and run a certain playlist in that program or other action (Hey it's complex to ME). Will i be able to learn this by reading the documentation or am I just wasting my time? If it is possible any suggestions or hints? Thanks all. |
|
| Back to top |
|
 |
lilalurl.T32
Joined: 17 May 2007 Posts: 391 Location: Titan
|
Posted: Thu Aug 06, 2009 1:53 am Post subject: |
|
|
Some programs are more difficult to interact with than others, but it is very likely that there is one way or another to do what you want.
If you want to get an idea of possible things that you can do with AHK, do a search for "winamp" limited to the Scripts and Functions forum.
Winamp being well documented, many ways of interacting via AHK have been developed.
Nothing can be guaranteed but you should be able to do similar things with Songbird.
Read at least the first items in the help file (tutorial, FAQ, hotkeys, scripts showcase).
To open: Either you mean activating, if it already running and then you will need to look at the WinActivate command or you mean launch, in which case you should look at the Run command (and if the playlist can be passed as a command line parameter that should do exactly what you want).
________
ULTIMATE FIGHTER
Last edited by lilalurl.T32 on Sun Mar 13, 2011 6:43 am; edited 1 time in total |
|
| Back to top |
|
 |
n8makar
Joined: 06 Aug 2009 Posts: 2
|
Posted: Fri Aug 07, 2009 12:33 am Post subject: |
|
|
ah okay i understand what you mean with activating or launching. and i think i may have a few ideas. im assuming there is a way i can move a window once selected. if i move it to the same spot everytime then mouse clicks in a certain spot should register the same. if not then i will have to do a workaround with winamp
also, i remapped my function keys. they went from say F1(00_3B) to an unknown function (00_54). is there anyway i can specify that 00_54 instead of just F1 to activate a script? |
|
| Back to top |
|
 |
lilalurl.T32
Joined: 17 May 2007 Posts: 391 Location: Titan
|
Posted: Fri Aug 07, 2009 5:27 am Post subject: |
|
|
You can also act on window Controls, supposing the application uses control that can be interacted with by AHK (see the examples in the help file for automating Winamp, which use such a method)
Moving a window (using the WinMove command) could be a solution too, but if the application has internal keyboard shortcuts for the action you want to do, Sending them via AHK would be more efficient.
There is also the Post/Sendmessage command that could be used. It is a bit more complex to use though.
This pictorial will help you if you choose this method:
http://www.autohotkey.com/forum/viewtopic.php?t=40112
Regarding F1 etc..., have a look at Key List -> Special Keys, you will see the syntax to use a key via its scan code.
________
Kitchen Measures |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|