Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
U must have the audio paths wrong or a NaN value for the volume.... v.0.0.3 has no change regarding sound playback.

Here's my current config.xml
Code:
<config croparea="679,336,166,142" search_color1="0xFFc19a55" search_color2="0xFFf43" refresh_rate="1" useAF="true" sound1="/System/Library/Sounds/Hero.aiff" vol1="8" sound2="/System/Library/Sounds/Basso.aiff" vol2="5"/>
 
OK, cutting and pasting yours back in (although other than the data, I see no difference) works, and escaping the spaces in th file path for the sound now works, too.
 
Not familiar with JSON, so I don't know. If it's simpler, it might be better. For some reason, when I open the file, it shows in multi-line format, but when the app grabs the coords, the fie (open, and on disk) revert to a single line. Working on it in Xcode Tools and/or BBEdit, does the same either one.

Looking forward to setting it and trying it out when I get the next couple of attacks up on screen. I appreciate all the help and work.
 
JSON replicates native Objects structures... and, most languages, have parsers to convert that plain/text string into native types... I use this online tool a lot to change or preview json data.

The multiline XML is the original hardcoded file i used (/Applications/GameHorn.app/Contents/Resources/config.xml), when the app doesnt find a config.xml in the storageFolder... (~/Library/Application Support) it copies the hardcoded version like a "default" config... when u set a detection area (CMD+D), the XML is re-generated by the app, losing the "format".
That's it.
 
Not really, is "easier" for me though. Maybe cause I'm used to it.
Maybe later I will remove the detection area step including it in the pixel selector with a size threshold, and add some GUI to change config values
 
One thing I noticed, when the color picker returns a value, a leading 0 (the color value, not the FF of the alpha) get stripped. I was wondering why my second color was not detecting except in some tests, and I was getting a value for the actual color needed as "0xFFa4b7e" (no leading 0 before the "a" in that hex value

----------

Not really, is "easier" for me though. Maybe cause I'm used to it.
Maybe later I will remove the detection area step including it in the pixel selector with a size threshold, and add some GUI to change config values

That would be cool. You could include an "Open File" button for selecting the sound file. Also, if you ever decide to get ambitious and you're bored, instead of having it only detect from one spot, if it could be a list of spots, each with their own defined coords, color, sound, refresh, and volume, that would be awesome.

I think I've trained it in for now, we'll see next time I get an attack or a notice of one.
 
still eating up my copy-paste main clipboard history, though :(

Ew, and doing it with a full-screen screenshot each time, too
 
Is there a different way to do a screen detection? The issue of messing with the clipboard, and overwriting/clearing it every time the app does a detection makes it unusable to leave running all the time, because while I am working, it's destroying my ability to use the clipboard. It's OK for the middle of the night (the main reason I want it, so that's good) because I can shut down CopyPaste Pro and it doesn't seem to affect anything else (except clearing the main clipboard). But during the day, I work, and leave my computer, and come back, fairly frequently, so I'd prefer it be running constantly rather than having to start and stop it every time I leave and come back.
 
GameHorn v.0.0.4

- No more images on the clipboard.
- Added a fix to the retina display... the clipboard had a "scaled" version of the desktop, which may return incorrect pixel values, i just figured that.

I think this is as far as i will go with the app 4 now... I'm not in the mood to design a UI :D
 
OK, downloading to test now. I really, really, really appreciate the work you put into this thing.
 
OK, after thorough testing and real-time use, the app works as advertised :) I'm grateful for the work you put into it.

I did have one question I didn't see the answer to, and that is what is "Max" volume? 10? 25? I already know that it is relative to the setting of the system volume.

So, thank you. here's a wish list if you ever decide to play with it some more:

1) A "list" type config (and settings window) where more than just the two colors/sounds can be enabled or disabled (and each color/sound would have its own coords and refresh time)
2) an "open file" dialog for selecting the sound file
3) a quick access (from menu or keyboard) to enter a time delay to restart detection, so I don't have to do it manually after the horn goes away (of course, resetting it immediately just re-detects the same horn, which doesn't go away until the attack actually lands)
4) a pony
5) a red wagon
(sorry, those last two were an obscure reference to the "Myth" series by Robert Aspirin :D)
 
I'm not sure about the red dragon, but the pony is out of discussion... :p

As soon i get some spare time i will add those features, don't worry.
In the meantime, If u know any designer... ask him for some sketchs for the panels... I did the app for you, so be my guest to design what u want :)
Maybe someone else is interested in this type of app as well, and u can get more feedback to make something more "solid" (image recognition, iphone notifications, emails, idk ) ...

MaxVolume is relative to system volume, yes... but it can be boosted a lot... compared to OSX.
 
I'm not sure about the red dragon, but the pony is out of discussion... :p

As soon i get some spare time i will add those features, don't worry.
In the meantime, If u know any designer... ask him for some sketchs for the panels... I did the app for you, so be my guest to design what u want :)
Maybe someone else is interested in this type of app as well, and u can get more feedback to make something more "solid" (image recognition, iphone notifications, emails, idk ) ...

MaxVolume is relative to system volume, yes... but it can be boosted a lot... compared to OSX.

<Foghorn Leghorn voice>"Wagon, Ah' said WAGON, son.... Nice kid, but about as smart as an overripe grapefruit...."</voice> :)


I can draw a rough sketch of the panels, nothing elaborate. Just a list box with editable entries, and a button in each row to open the file dialog for the sound file. The other features would be cool (especially the iPhone notification, or sending a text through the new iMessage/iPhone link in OS X 10.10/IOS 8.1), but I;m not gonna push it.

Don't get me wrong, I'm happy enough with what I got, but you know, the user is never happy until the app resembles a MicroCrap Bloatware project :)
 
Ideal (and you asked for it :) would be a dialog with the following controls:


  1. Default Sound button (opens file dialog, button name changes to current sound selected for default)
  2. List box with the following columns, preferably sortable:
    • "Enabled" Checkbox (turns that row data on and off)
    • Name Field Box, for naming the row
    • Coords button (selects coords, as now, but separately for each row), displays current coords (ignoring H,W)
    • Color/[Sample] Button (selects color, as now, but also has a small icon of the color selected)
    • refresh rate (as now, but individualized for each row)
    • sound volume textbox
    • sound file name button (opens file dialog, shows currently selected sound, or "default")
  3. Add New/Delete buttons [+] / [-]
  4. Cancel/Revert/Save buttons (self explanatory)
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.