Page 1 of 10 12345678910 LastLast
Results 1 to 10 of 93

Thread: RR application indicator

  1. #1
    Maximum Bitrate jonessc's Avatar
    Join Date
    Nov 2006
    Location
    Wales, UK
    Posts
    787

    Question RR application indicator

    I want to make a simple plugin for RR that displays an indicator in a skin when a program is loaded, can this be achieved with a plugin?

    Would be grateful if anyone has the sourse code for a plugin they have made, so I can have a look through, to help better understand as well.

    Many thanks for any info

    CarPuter Progress:
    Planning:-----> [||||||||||] 100%
    Hardware Buying:-> [||||||||||] 100%
    Software:-----> [||||||||||] 100%
    Installing:-----> [||||||||||] 100%
    Current Project= Making skins in photoshop...

  2. #2
    FLAC Sal R.'s Avatar
    Join Date
    Aug 2006
    Location
    Sun Diego
    Posts
    1,448
    Can easily be done w/ AI scripty running in the background:

    Code:
    $rr = ObjCreate("RoadRunner.sdk")                           												;Create link to RR's sdk.
    
    $ondata = 0
    
    While $ondata = 0
    	If WinExists("RoadRunner") Then																			;if RR is not Running whats the point in run this.
    		$rr.execute("SETIND;custom_rrind;ON")
    		
    	Else
    		$rr.execute("SETIND;custom_rrind;OFF")
    		
    	EndIf
    	$ondata = $rr.getinfo("=$ondata$")
    	
    WEnd
    Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

  3. #3
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,078
    Do not use that code..

    That script would just send RR to a 100% CPU. That code would need some logic to only update the indicator when something changed.

    This would also be very easy to do with a ext plug in and not req any additional running programs.

    I will attatch an example ext plugin code to this post when I get home. I already have that part in my media plugin.
    RideRunner...The #1 FE, PERIOD.

    Current Project: DFXVoice [v1.0 Released]
    Next in line: RRMedia v2.0

    DFX 5.1.1 Skin
    Appstore Link

    My RideRunner Plugins
    RRMedia
    RRExtended
    DFXVoice

    "There are no bugs - only undocumented features."

  4. #4
    FLAC Sal R.'s Avatar
    Join Date
    Aug 2006
    Location
    Sun Diego
    Posts
    1,448
    Quote Originally Posted by Blue ZX3 View Post
    Do not use that code..

    That script would just send RR to a 100% CPU. That code would need some logic to only update the indicator when something changed.

    This would also be very easy to do with a ext plug in and not req any additional running programs.

    I will attatch an example ext plugin code to this post when I get home. I already have that part in my media plugin.
    Yeah, just slapped it together as an example as I was posting.

    Definitely not optimal to be running consistently in the background.
    Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

  5. #5
    Maximum Bitrate jonessc's Avatar
    Join Date
    Nov 2006
    Location
    Wales, UK
    Posts
    787
    Quote Originally Posted by Sal R. View Post
    Yeah, just slapped it together as an example as I was posting.

    Definitely not optimal to be running consistently in the background.
    Quote Originally Posted by Blue ZX3 View Post
    Do not use that code..

    That script would just send RR to a 100% CPU. That code would need some logic to only update the indicator when something changed.

    This would also be very easy to do with a ext plug in and not req any additional running programs.

    I will attatch an example ext plugin code to this post when I get home. I already have that part in my media plugin.
    thanks for the info, im starting to program in vb6, been a while since i used it (more familar with autoit now

    CarPuter Progress:
    Planning:-----> [||||||||||] 100%
    Hardware Buying:-> [||||||||||] 100%
    Software:-----> [||||||||||] 100%
    Installing:-----> [||||||||||] 100%
    Current Project= Making skins in photoshop...

  6. #6
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,078
    So, here is the complete sample code and precompiled dll for you to try.

    If only checking one program, you just need to change two things:
    #1 In the Form1's Timer1_Timer() sub, change the "NotePad.exe" to what ever prog you want to watch for.
    #2 In the RRExtention Class's ReturnIndicator Function, Change the name of the indicator to what ever name you want to call it. Typed in all lower case!!
    #3 Save and make dll file
    #4 Place dll file in rr's root folder
    #5 Reg said dll file
    #6 Put X,ProgRunning in your menu.skin file

    Then have a go with RR and see if all works, if you use the example, I just look for a notepad process and the indicator name is "NotePadStatus", which is checked once every second.

    [ EDIT ]

    I have now incorperated this into my RRExtended plugin, and upgraded it, found > HERE <
    Attached Files Attached Files
    RideRunner...The #1 FE, PERIOD.

    Current Project: DFXVoice [v1.0 Released]
    Next in line: RRMedia v2.0

    DFX 5.1.1 Skin
    Appstore Link

    My RideRunner Plugins
    RRMedia
    RRExtended
    DFXVoice

    "There are no bugs - only undocumented features."

  7. #7
    Maximum Bitrate jonessc's Avatar
    Join Date
    Nov 2006
    Location
    Wales, UK
    Posts
    787
    Blue,

    Thanks for the example, just been playing with the sourse (thanks for the commenting made life easier)

    Much easier to learn from a working model!

    It works a treat, thanks for doing it!

    Few questions:

    Can I add multiple applications (2-3) from the same plugin (seperate indicators like your notepad example)?

    Can a similar thing be done when the F2 key has been pressed? (That turns my microphone on)

    CarPuter Progress:
    Planning:-----> [||||||||||] 100%
    Hardware Buying:-> [||||||||||] 100%
    Software:-----> [||||||||||] 100%
    Installing:-----> [||||||||||] 100%
    Current Project= Making skins in photoshop...

  8. #8
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,078
    Ya, it would just need some vars to help keep track of the different apps. and then the matching indicators...
    RideRunner...The #1 FE, PERIOD.

    Current Project: DFXVoice [v1.0 Released]
    Next in line: RRMedia v2.0

    DFX 5.1.1 Skin
    Appstore Link

    My RideRunner Plugins
    RRMedia
    RRExtended
    DFXVoice

    "There are no bugs - only undocumented features."

  9. #9
    Maximum Bitrate jonessc's Avatar
    Join Date
    Nov 2006
    Location
    Wales, UK
    Posts
    787
    Quote Originally Posted by Blue ZX3 View Post
    Ya, it would just need some vars to help keep track of the different apps. and then the matching indicators...
    Thanks. Same apply for the 'key' monitoring?
    CarPuter Progress:
    Planning:-----> [||||||||||] 100%
    Hardware Buying:-> [||||||||||] 100%
    Software:-----> [||||||||||] 100%
    Installing:-----> [||||||||||] 100%
    Current Project= Making skins in photoshop...

  10. #10
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,078
    Well, here is yet another version. This one has 3 process that it looks for. Excel.exe, WinWord.exe, & Notepad.exe.

    Example ind codes are "ExcelStatus","WordStatus","NotepadStatus"

    This one will prob be a little harder to follow. There is only one array that I used to keep track of all items...

    [ EDIT ]

    I have now incorperated this into my RRExtended plugin, and upgraded it, found > HERE <
    Attached Files Attached Files
    RideRunner...The #1 FE, PERIOD.

    Current Project: DFXVoice [v1.0 Released]
    Next in line: RRMedia v2.0

    DFX 5.1.1 Skin
    Appstore Link

    My RideRunner Plugins
    RRMedia
    RRExtended
    DFXVoice

    "There are no bugs - only undocumented features."

Page 1 of 10 12345678910 LastLast

Similar Threads

  1. Replies: 70
    Last Post: 10-15-2007, 05:21 PM
  2. How do I use the Base plugin sources ?
    By guino in forum RR FAQ
    Replies: 1
    Last Post: 04-24-2006, 03:43 PM
  3. Notifying child application of Hibernation wakeup
    By mullaly in forum Road Runner
    Replies: 2
    Last Post: 04-24-2006, 03:44 AM
  4. status update....
    By 0l33l in forum PowerVoice
    Replies: 17
    Last Post: 05-05-2005, 12:22 PM
  5. Bruno Speech Recognition with RR?
    By ruairi in forum Road Runner
    Replies: 12
    Last Post: 05-03-2005, 12:20 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •