Announcement

Collapse
No announcement yet.

RR application indicator

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


    • #3
      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."

      Comment


      • #4
        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

        Comment


        • #5
          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.
          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...

          Comment


          • #6
            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
            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."

            Comment


            • #7
              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...

              Comment


              • #8
                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."

                Comment


                • #9
                  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...

                  Comment


                  • #10
                    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
                    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."

                    Comment


                    • #11
                      Thanks blue , just looking through the code now, thats a good way of doing it, how many RR plugins have you made so far? seems to be u and festy that have made most of them?
                      CarPuter Progress:
                      Planning:-----> [||||||||||] 100%
                      Hardware Buying:-> [||||||||||] 100%
                      Software:-----> [||||||||||] 100%
                      Installing:-----> [||||||||||] 100%
                      Current Project= Making skins in photoshop...

                      Comment


                      • #12
                        Ya, I have made a few... I just got more accustom to how to use the ext plugin and vb coding.

                        But these are all simple ones, the media one is not so simple...
                        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."

                        Comment


                        • #13
                          Originally posted by Blue ZX3 View Post
                          But these are all simple ones, the media one is not so simple...
                          yea best of luck with that one, i used vb over 5 years ago, whats worrying is im better with autoit! tho i will send a donation your way when your done

                          To monitor the press of a key (f2) to trigger an indicator like your using in the example you made for me, I was thinking of creating a seperate timer with something like this to trigger it

                          Code:
                          If KeyCode = vbKeyF2 Then Timer2.Enabled = True
                          is this the best way?
                          CarPuter Progress:
                          Planning:-----> [||||||||||] 100%
                          Hardware Buying:-> [||||||||||] 100%
                          Software:-----> [||||||||||] 100%
                          Installing:-----> [||||||||||] 100%
                          Current Project= Making skins in photoshop...

                          Comment


                          • #14
                            Originally posted by jonessc View Post
                            yea best of luck with that one, i used vb over 5 years ago, whats worrying is im better with autoit! tho i will send a donation your way when your done
                            Well, I'm like just the oppsite, I know AI fairly good now(~4yrs), and when switching between the two constantly is a big PITA! That and VB's pickyness about adding two strings together if they are not both of string type...

                            Both JohnWPB & I will be demoing the Media plugin at todays meets...

                            Originally posted by jonessc View Post
                            To monitor the press of a key (f2) to trigger an indicator like your using in the example you made for me, I was thinking of creating a seperate timer with something like this to trigger it

                            Code:
                            If KeyCode = vbKeyF2 Then Timer2.Enabled = True
                            is this the best way?
                            Can't really answer that as I haven't gotton that far into VB yet...but I would think that something along those lines should work ok?
                            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."

                            Comment


                            • #15
                              Any chance making this available to all?

                              maybe put all the application names in rr.ini that uses the plugin to set an indicator for the respective application?

                              I know I could really use this as a quick check to see if xport.exe is running, browsecovers.exe, etc. since I run RR as a shell.

                              Not that you don't have enough on your plate already.
                              Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

                              Comment

                              Working...
                              X