 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
joebodo
Joined: 28 Apr 2008 Posts: 46
|
|
| Back to top |
|
 |
joebodo
Joined: 28 Apr 2008 Posts: 46
|
Posted: Thu May 22, 2008 8:49 am Post subject: |
|
|
Sample Plugins (included in the download)
| Code: |
; Install files into plugins/helloworld
; Restart RedStone
; type: *hello world
#include CR_PluginClient.ahk
helloWorld_Initialize() {
CommandRegister("Hello World", "helloWorld_Command")
}
helloWorld_Command(A_Command, A_Args) {
MsgBox,Hello World
}
|
Miro Plugin (Mozilla Media Application)
| Code: | #include CR_PluginClient.ahk
miro_Initialize() {
CommandRegister("Miro Command", "miro_Command")
}
miro_Command(A_Command, A_Args) {
entry := syslist_Get("Windows", "/filter:name=Miro")
if (entry <> "") {
wid := getValue(entry, "wid")
WinGet, pid, PID, ahk_id %wid%
WinActivate, ahk_pid %pid%
SetKeyDelay, 0, 25
command := getValue(A_Args, "args")
if (command = "Play") {
ControlSend,MozillaWindowClass1,^{Space},ahk_id %wid%
} else if (command = "Pause") {
ControlSend,MozillaWindowClass1,^{Space},ahk_id %wid%
} else if (command = "Stop") {
ControlSend,MozillaWindowClass1,^D,ahk_id %wid%
} else if (command = "Next") {
ControlSend,MozillaWindowClass1,^{Right},ahk_id %wid%
} else if (command = "Rewind") {
ControlSend,MozillaWindowClass1,^{Left},ahk_id %wid%
} else if (command = "Forward") {
ControlSend,MozillaWindowClass1,{Right},ahk_id %wid%
} else if (command = "Back") {
ControlSend,MozillaWindowClass1,{Left},ahk_id %wid%
} else if (command = "Fullscreen") {
ControlSend,MozillaWindowClass1,!{Enter},ahk_id %wid%
}
WinActivate, RedStone
}
}
|
|
|
| Back to top |
|
 |
Fry
Joined: 01 Nov 2007 Posts: 609
|
Posted: Thu May 22, 2008 1:13 pm Post subject: |
|
|
Awsome program! _________________ check out my site
www.eliteknifesquad.com |
|
| Back to top |
|
 |
_adam Guest
|
Posted: Thu May 22, 2008 2:45 pm Post subject: |
|
|
| can you provide another download link? |
|
| Back to top |
|
 |
ahklerner
Joined: 26 Jun 2006 Posts: 1205 Location: USA
|
Posted: Thu May 22, 2008 3:09 pm Post subject: |
|
|
we need source _________________
 |
|
| Back to top |
|
 |
joebodo
Joined: 28 Apr 2008 Posts: 46
|
Posted: Thu May 22, 2008 6:03 pm Post subject: |
|
|
In the download, I included the source for several of the plugins. The source is located in the plugins subdirectory. Here is a description of each of the plugins:
GDS
This plugin shows how to perform a dynamic search using Google Desktop. The user types in /gds {search term}. The GDS plugin executes the search, parses the returned XML, and displays the results in the listview.
HelloWorld
Simple plugin test
Miro
Creates custom commands that allow the user to control the Miro media player.
System
A custom scanner that indexes the systems drives and resources.
Volume
Creates a slider on the main UI that allows the user to adjust the volume using the mouse wheel.
If requested, I can post the code for any specific component (nearly everything is a plugin and can be customized). I don't want to post the entire source right now as I want to keep control over the core functionality. |
|
| Back to top |
|
 |
pokercurious
Joined: 16 Dec 2007 Posts: 38
|
Posted: Thu May 22, 2008 7:28 pm Post subject: |
|
|
This looks really promising, but I get really funky behavior right now.
I keep randomly getting a big heading that says "Errors".
Upon startup it tells me that it's "Unable to locate the Skype configuration file"
The hello world pluging doesn't work: "*hello world" tells me that its an invalid command - the ahk file is in the folder as per the comments in the plugin.
MButton and Escape don't hide the GUI.
I will second ahklerner's request for source - you seem to have done some very cool things that lots of people can learn from. Perhaps you can consider some of the open-source licensing alternatives that are out there. |
|
| Back to top |
|
 |
joebodo
Joined: 28 Apr 2008 Posts: 46
|
Posted: Thu May 22, 2008 7:40 pm Post subject: |
|
|
To get rid of the Skype error, go to Configuration->plugins (click on the > button). Disable the Skype plugin by right clicking on it and hitting disable.
There are several display modes for the UI. The toggle is right next to the > button:
^ is always on top
V is auto-hide
blank is normal (will not autohide)
The hello world plugin is disabled by default. Go to configuration->plugins and right-click on the plugin to enable it. |
|
| Back to top |
|
 |
tidbit
Joined: 10 Mar 2008 Posts: 90
|
Posted: Thu May 22, 2008 8:10 pm Post subject: |
|
|
you tricked me.
RedStone is a free MMO
but good app.
you might want to make an easy way to close it. like put an X button in a corner.
unless I'm blind, I didn't see any  _________________ rawr. be very affraid |
|
| Back to top |
|
 |
joebodo
Joined: 28 Apr 2008 Posts: 46
|
Posted: Thu May 22, 2008 8:17 pm Post subject: |
|
|
Thanks for the feedback. I uploaded a new version that contains the following:
Skype plugin is initially disabled
Hello World plugin is initially enabled
Autohide mode is default
The way that I completely exit the program is by right-clicking on the tray icon and hitting exit. |
|
| Back to top |
|
 |
joebodo
Joined: 28 Apr 2008 Posts: 46
|
Posted: Fri May 23, 2008 2:41 am Post subject: |
|
|
Helpful tips on writing plugins
Logging
Add this section to the redstone.ini file:
[Logging]
Debug=1
Fail=1
List=1
Pass=1
State=0
Plugin=1
A Redstone.log file will be written to in the installation directory. Review the logA method in the CR_Util.ahk to get a better understanding of the logging mechanism.
Metadata
Right click on the ">" button to get a list of all the metadata used in the system. If make any changes to the metadata, the changes will be reflected immediately. The exception is types and handlers - if you make changes to either of these two, you must restart the application. If you enabled debug logging, you will have additional options for editing the metadata (by right clicking on the item).
Code and Lists
It is easier to develop directly in the installation directory. Make your changes to the lists in this directory. Only extract your list changes to your plugin directory after you have finalized your plugin (I'll try and add an easier way to develop plugins outside of the install directory soon).
If you place your code in the installation directory, each time you save your file, the application and plugins will be reloaded automatically (as long as you have debug logging enabled).
Redstone code
If you need access to any of the core code, let me know which plugin you need and I will post it. At this time, I do not want to distribute the entire source as it is being actively developed. Any changes that you make to the core code, I will review and incorporate back into the main source. |
|
| Back to top |
|
 |
TheOtherWoods Guest
|
Posted: Fri May 23, 2008 6:30 am Post subject: Redstone Redstone Redstone |
|
|
This is the single greatest utility I've seen in my whole F-Bombing life. Finally a utility that I can use to get things done.
Rather powerful, thin, and oh so nimble.
well done JoeBodo.
well done. |
|
| Back to top |
|
 |
joebodo
Joined: 28 Apr 2008 Posts: 46
|
Posted: Sat May 24, 2008 10:35 pm Post subject: |
|
|
To use a search engine other than google, add your query to the redstone.ini file. Example:
[Search]
URL=http://www.google.com/search?q=%s
To enable firefox bookmark scanning, edit the redstone.ini and add the location of your bookmarks file. Example:
[Firefox]
BookmarksFile=C:\firefox\profile\bookmarks.html |
|
| Back to top |
|
 |
joebodo
Joined: 28 Apr 2008 Posts: 46
|
|
| Back to top |
|
 |
Guest12345 Guest
|
Posted: Thu May 29, 2008 1:38 am Post subject: |
|
|
I am creating a plugin for Swept Away by Adam Pash.
http://lifehacker.com/software/downloads/lifehacker-code-swept-away-windows-255055.php
I have most of the functionality completed but do not know how to add items to the tray menu. Here's the code from Swept Away:
| Code: |
TRAYMENU:
Menu,TRAY,NoStandard
Menu,TRAY,DeleteAll
Menu,TRAY,Add,&Preferences,PREFS
...
|
Is it possible to add items to the tray menu?
Thanks |
|
| 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
|