Announcement

Collapse
No announcement yet.

minicam container for embedding

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

  • minicam container for embedding

    since there was no real and current solution I ended up writing a autoit container for 4 copies of minicam to allow them to be embedded on the same Riderunner skin screen I hope of others find it useful.

    to use simply add the cam.exe to your minicam folder and either embed it into a skin or simply run.



    http://neondawg.com/~Reg/cam.zip

    I hope everyone enjoys,
    yonu

  • #2
    This is a very good idea.

    Is it possible to see your source code to see how you have done that ?

    Thanks ...

    Comment


    • #3
      sure when i get in this afternoon I will post it as it is on my home pc

      Comment


      • #4
        Originally posted by yonu View Post
        sure when i get in this afternoon I will post it as it is on my home pc
        Thank you, it's very cool !

        Comment


        • #5
          here is the code it is fairly straight forward it will work to embed any program

          Code:
          #include <GUIconstantsEx.au3>
          #include <WindowsConstants.au3>
          #include <WinAPI.au3>
          
          $hGui = GUICreate('cams', 800, 508, 100, 100, BitOR($WS_POPUP, $WS_SIZEBOX, $GUI_SS_DEFAULT_GUI, $WS_CLIPCHILDREN))
          GUISetState()
          
          ; Open minicam
          Run("minicam.exe")
          WinWaitActive("CuriousTech - MiniCam 1")
          
          ; Resize MINICAM to fit
          $hminicam = WinGetHandle("CuriousTech - MiniCam 1")
          WinMove($hminicam, "", 0, 0, 400, 254)
          Sleep(0)
          
          ; Open minicam
          Run("minicam.exe")
          WinWaitActive("CuriousTech - MiniCam 2")
          
          ; Resize MINICAM to fit
          $hminicam1 = WinGetHandle("CuriousTech - MiniCam 2")
          WinMove($hminicam1, "", 0, 255, 400, 254)
          Sleep(0)
          
          ; Open minicam
          Run("minicam.exe")
          WinWaitActive("CuriousTech - MiniCam 3")
          
          ; Resize MINICAM to fit
          $hminicam2 = WinGetHandle("CuriousTech - MiniCam 3")
          WinMove($hminicam2, "", 400, 0, 400, 254)
          Sleep(0)
          
          ; Open minicam
          Run("minicam.exe")
          WinWaitActive("CuriousTech - MiniCam 4")
          
          ; Resize MINICAM to fit
          $hminicam3 = WinGetHandle("CuriousTech - MiniCam 4")
          WinMove($hminicam3, "", 400, 255, 400, 254)
          Sleep(0)
          
          ; Set minicam as child of our GUI
          $hOriginalParent = _WinAPI_SetParent($hminicam, $hGUI)
          $hOriginalParent1 = _WinAPI_SetParent($hminicam1, $hGUI)
          $hOriginalParent3 = _WinAPI_SetParent($hminicam2, $hGUI)
          $hOriginalParent4 = _WinAPI_SetParent($hminicam3, $hGUI)
          
          
          While 1
              Switch GUIGetMsg()
                  Case $GUI_EVENT_CLOSE
                      ;Reset minicam to original parent
                      _WinAPI_SetParent($hminicam, $hOriginalParent)
                      Sleep(500)
                      WinClose($hminicam)
                      Exit
              EndSwitch
          WEnd
          Enjoy,
          yonu

          Comment


          • #6
            Looks good.

            I made one small change to MiniCam so you can hit the borderless button and it doesn't reposition. Don't use fullscreen mode though.



            http://www.curioustech.net/minicam.html

            Comment


            • #7
              cool thanks and thank you for the not fullscreening warning as I haven't tried fullscreen yeat. just figured it would work

              figures as I had planed on being able to fullscreen lol but hey i can live without it
              yonu

              Comment


              • #8
                Well, download it again. I made it do fullscreen, but there's no overlay buttons and you have to double-tap.

                Comment


                • #9
                  thanks yonu

                  Comment


                  • #10
                    cool thanks Curiosity

                    Comment


                    • #11
                      yonu,

                      Nice, simple piece of work, well done.

                      Have you updated the source you posted when you included full-screen support?

                      Were did you download minicam from?

                      And what cameras does it support?

                      Regards,
                      Jim

                      Comment


                      • #12
                        well minicam can be downloaded from http://curioustech.home.insightbb.com/xport.html which is Curiosity's site as they designed minicam and nope i haven't updated the source code as the changes were made to minicam not the container I posted and as far as I know minicam will work with any WDM camera

                        Comment


                        • #13
                          yonu,

                          Thanks for the info. I've downloaded minicaml and I am in the process of playing with it natively with one camera and already have a couple of questions:

                          1. Once in full-screen, how does one get back to the small image?

                          2. where does minicam store its settings?

                          Once I've played with it a bit, I'll give it the acid test. A four camera setup using 4 of the same cameras that no other package seems to be able to run successfully all at the same time. I can get 2 and sometimes 3 on a good day. I've tried at least 4 different packages, in 3 cases I tried multiple instances of a single app and the 4th proported to support all four at the same time. Interestingly, all of the cameras work fine if I only use then one at a time.

                          So I ended up writing an AutoIt app that displayed each of the cameras in a rotation where I dynamically changed the active camera in the program. I used AmCap for the camera support.

                          Therefore, I am quite interested to see if minicam will do as I want (4 at once) with my cameras (4 $16.95 el cheapos).

                          Regards,
                          Jim

                          Comment


                          • #14
                            what is the verdict on 4 cams at once the nost i have tryed is 2 so far as I am still deciding on the locations of the last 2 cams

                            Comment


                            • #15
                              Maybe you should write a 2 cam version.

                              @obrienj Fullscreen toggle is either double click anywhere or ESC key.

                              Comment

                              Working...
                              X