Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Bleazle

Pages: 1 [2] 3 4
16
MediaMonkey / Re: Play hits by the current playing artist
« on: April 25, 2014, 07:12:33 AM »
Hi James

Great stuff, that's what I was after, thanks!  ::bow .... now I need to work out some more ways to use this.... "play more songs from this era/genre/album" maybe?  ;D

Cheers!


17
MediaMonkey / Play hits by the current playing artist
« on: April 23, 2014, 07:09:27 PM »
You know the scenario, you've got some random music playing (e.g. a playlist, a genre or an AutoDJ list etc) and you hear a song and think "I'd like to hear the songs by that Artist" - or does that just happen to me?  ::) ;D

This command will load all songs (well up to 200 in this case..) rated at >60 in your music database for the currently playing artist  ;D

Code: [Select]
<?xml version="1.0" encoding="utf-8"?>
    <commandGroup open="True" name="Play more songs by this artist" enabled="True" prefix="" priority="0" requiredProcess="" description="">
        <command id="171" name="Play more songs by this artist" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
            <action>
                <cmdType>MM.SoftMute</cmdType>
                <cmdString>20</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>MM.currentsongdata</cmdType>
                <cmdString>Artist</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>OSD.ShowText</cmdType>
                <cmdString>{lastresult}</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <if ifBlockDisabled="False" ifNot="False">
                <ifType>LastActionSuccess</ifType>
                <ifParams>&amp;&amp;</ifParams>
                <then>
                    <action>
                        <cmdType>TTS.SpeakSync</cmdType>
                        <cmdString>Please wait while I select hits by {lastresult}</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                </then>
                <else>
                    <action>
                        <cmdType>TTS.SpeakSync</cmdType>
                        <cmdString>I'm sorry I don't know who sings this song</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                </else>
            </if>
            <action>
                <cmdType>MM.LoadBySQL</cmdType>
                <cmdString>Artist = '{lastresult}' and rating&gt;60 order by random() limit 200</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>MM.Play</cmdType>
                <cmdString />
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>MM.SoftUnmute</cmdType>
                <cmdString />
                <cmdRepeat>1</cmdRepeat>
            </action>
            <phrase>Play more songs by this artist</phrase>
        </command>
    </commandGroup>

I'm happy with the command but the one issue I have is that it stops (and clears) the currently playing song. I don't mind that it clears the "now playing" list but the main reason I (generally) want to play more songs by the currently playing artist is because I like the song I'm listening to  ::) If anyone has got another way to do this I'd love to see it  :)

18
I appreciate that this is an old thread but it pointed me in the right direction so I figured I'd share a couple of things I added:

In this particular script I turn my outside speakers on using VC and EventGhost. Once the speakers are on Bob (there's no "Jarvis" in my house..) announces that they have been turned on. The problem I had with the script as it was is that Bobs volume was set to 100% which effectively meant he yelled that the speakers were on!  :o and if music was playing when I gave the command to turn the speakers on it wasn't muted while Bob was talking.

So firstly I set up a Global Hot Key in MediaMonkey (Cntrl+Shift+M) to mute/unmute the sound. Then I added this to the top and bottom of the script:

Code: [Select]
Set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys "^+{M}"

Then to stop Bob yelling I added the following which sets the TTS volume and rate. NOTE: These settings only apply to the announcements Bob makes in this script - I use other commands to tell Bob to speak up or stop yelling if I want to change the VC's TTS level:

Code: [Select]
Dim sapi,ttsmeassage
set sapi = CreateObject("sapi.spvoice")
with sapi
       Set .voice = .getvoices.item(0)
       .Volume = 15
       .Rate = 1
     end with

So the whole thing looks like this:

Code: [Select]
Set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys "^+{M}"

Dim sapi,ttsmeassage
set sapi = CreateObject("sapi.spvoice")
with sapi
       Set .voice = .getvoices.item(0)
       .Volume = 15
       .Rate = 1
     end with
Randomize
myrand = Int((3)*Rnd+1)
if hour(now)<6 then
  ttsmessage = "wow,  your up early David! The outside speakers are now on"
elseif hour(now)<12 then
 ttsmessage = "Good morning David, The outside speakers are now on"
elseif hour(now)<17 then
  ttsmessage = "Good after noon David. The outside speakers are now on"
elseif hour(now)<22 then
  ttsmessage = "Good evening David. The outside speakers are now on"
else
  ttsmessage = "Good evening David, isn't it past your bed time? The outside speakers are now on"
end if

sapi.Speak ttsmessage

Set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys "^+{M}"

Ideally I would like to use a "softmute" option rather than having to fully mute MediaMonkey but I haven't found a way to do that.  I tried using nircmd.exe but that didn't give me what I wanted either because I couldn't "unmute" to the previous volume level. Anyone got any ideas?

Cheers

19
Hi All

I posted some info on how I have done this using VoxCommando and EventGhost in the EventGhost forum. Rather than copy and past the same information here I figured it was easier to give you a link - so here it is  ;D

EDIT: Actually an easier way to do this is to use the EventGhost script posted by James below (Post #4)


Enjoy

Bleazle

20
XML Exchange / Re: "Ducking" command for Android-VoxMic
« on: November 19, 2013, 05:43:46 AM »
This forum needs a "Thanks" button! This bit of code (along with lots of other help I have received) is awesome :)

21
Other Plugins / Re: RoboB - Robo Browser
« on: November 17, 2013, 05:07:45 AM »
SORTED!!  ;D Cheers Guys (and gals!)  ;D

22
Other Plugins / Re: RoboB - Robo Browser
« on: November 16, 2013, 03:20:14 PM »
Thanks guys - items are now being added  :) but the "check if item is already on the list" part doesn't work. I changed the RoboB.ElementRegex patter to "iname" because "class=iname" was throwing an error in VC History but apart from that i haven't had any luck. Any ideas on this one?

23
Other Plugins / Re: RoboB - Robo Browser
« on: November 16, 2013, 01:36:58 AM »
Thanks for the informative reply, unfortunately the code you posted doesn't work for me. The "Add Item" button Input tag is index no. 7 for me so I changed that, added a test payload ("beer" as it happens ;) ) and gave it a go - "beer" is entered into the "zipbox_command" field and the screen acts as though the "Add Item" button has been clicked (i.e. the screen fades out and the "wait" icon appears) but when the list re-loads the item hasn't been added. I tried all sorts of different things but nothing worked - unfortunately I eventually managed to crash VC so I can't show you what I tried  ::confused Did you manage to get items to load?

24
Hi James

In VoxWav Free it only takes 2 clicks to select the computer I wanted to communicate with but in VoxWav Pro it takes 3 clicks. Would it be possible to go to the "2 click" option in the next Pro release?

Cheers

Dave 

25
Other Plugins / Re: RoboB - Robo Browser
« on: November 15, 2013, 07:05:10 PM »
Hi guys

This is a little bit off topic but I figured this was the best place to post my question. OurGroceries is good but I've just installed ZipList (www.ziplist.com) which is far more versatile/powerful. I'm the cook in the house at the moment thanks to my wife working long hours so I want to make my job as easy as possible  ;D I have tweaked the OurGroceries group and changed it so that RoboBrowser opens up the ZipList shopping list but I can't get VC to check/add items to the shopping list. Looking at the page source for ZipList it is far more involved than the OurGroceries page source - I've tried a few different ID's but haven't had any luck. I have attached the Group Command with "????" noted, it would be great if someone could give me a clue as to what I need to do here..

Cheers

Dave

26
Other Plugins / Re: RoboB - Robo Browser
« on: November 13, 2013, 05:40:01 AM »
I've deleted the file I was playing with but I will have another crack when I get a chance and upload it if I don't have any luck, cheers.

27
Other Plugins / Re: RoboB - Robo Browser
« on: November 12, 2013, 03:24:15 PM »
Update: I couldn't get the muting to work but apart from that the above works well in that it no longer includes items crossed off the list but I found that when I used a command (e.g. Play Music) I was getting an HTML version of the shopping list showing up on my screen (as part of the command OSD) and in VoxWav. When I changed back to the "standard" version which checks for duplicates in OurGroceries this no longer happened (so now I just delete the crossed off items at the bottom of the screen). I'll have another look at the muting thing today...

28
Other Plugins / Re: RoboB - Robo Browser
« on: November 09, 2013, 03:16:28 AM »
Excellent, thanks, it's working here  ;D

One thing, when music is playing (via MediaMonkey) I want to mute the volume when the RoboB response happens. I've tried adding a MM.Softmute action before the response & an unmute action after the response but the volume level doesn't change. Can this be done?

Cheers

29
Other Plugins / Re: RoboB - Robo Browser
« on: November 08, 2013, 02:54:08 PM »
Hi James

I've added the code you posted above and it's working fine except that if an item has been crossed off the list (for example "eggs") but is still showing in the "crossed off" list VC tells me I already have eggs on my list  :-\ is there any way to restrict the duplicate item check to just the "Shopping List"?

Cheers

Dave
 

30
Bug Reports / Error message on launching VC with W7
« on: February 01, 2012, 03:10:36 AM »
As per the subject title I get the following message when VC (0.937) launches with W7 on startup - I'm getting this message on both my main htpc and the client. I've searched the forum for some keywords from the error report but haven't found anything so here it is...

Cheers

Bleazle

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at VoxCommando.MainWindow.doEvent(String strEventName, List`1 payloads)
   at VoxCommando.MainWindow.timerCheckFocus_Tick(Object sender, EventArgs e)
   at System.Windows.Forms.Timer.OnTick(EventArgs e)
   at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5448 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
VoxCommando
    Assembly Version: 0.9.3.7
    Win32 Version: 0.9.3.7
    CodeBase: file:///C:/VoxCommando0937/VoxCommando.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5446 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5447 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
PluginInterface
    Assembly Version: 1.0.4348.29252
    Win32 Version: 1.0.4348.29252
    CodeBase: file:///C:/VoxCommando0937/PluginInterface.DLL
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Management
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
System.Speech
    Assembly Version: 3.0.0.0
    Win32 Version: 3.0.6920.1109 (lh_tools_devdiv_wpf.071009-1109)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Speech/3.0.0.0__31bf3856ad364e35/System.Speech.dll
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.



Pages: 1 [2] 3 4