Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. Test Adapter Windows-Control v0.1.x GitHub

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Test Adapter Windows-Control v0.1.x GitHub

    This topic has been deleted. Only users with topic management privileges can see it.
    • bahnuhr
      bahnuhr Forum Testing Most Active @dos1973 last edited by

      @dos1973 sagte in Test Adapter Windows-Control v0.1.x GitHub:

      Cannot find module 'battery-level'

      steht doch da.
      du hast dieses module nicht installiert.

      D 1 Reply Last reply Reply Quote 0
      • D
        dos1973 @bahnuhr last edited by

        @bahnuhr
        habe ich alles gemacht.

        in welchem Pfad muss die webserver.js liegen?

        bahnuhr 2 Replies Last reply Reply Quote 0
        • bahnuhr
          bahnuhr Forum Testing Most Active @dos1973 last edited by

          @dos1973 sagte in Test Adapter Windows-Control v0.1.x GitHub:

          in welchem Pfad muss die webserver.js liegen?

          Ich habe diese unter meinem Benutzer in einem Ordner "Webserver"

          1 Reply Last reply Reply Quote 0
          • bahnuhr
            bahnuhr Forum Testing Most Active @dos1973 last edited by

            @dos1973 sagte in Test Adapter Windows-Control v0.1.x GitHub:

            habe ich alles gemacht.

            Und warum kommt dann die Fehlermeldung?

            D 1 Reply Last reply Reply Quote 0
            • D
              dos1973 @bahnuhr last edited by

              @bahnuhr
              Weil die datei scheinbar im benutzer liegen muss.

              Da startet die datei

              Hast du einen normalen Benutzer oder einen admin Account für dein vis

              bahnuhr 1 Reply Last reply Reply Quote 0
              • bahnuhr
                bahnuhr Forum Testing Most Active @dos1973 last edited by

                @dos1973 sagte in Test Adapter Windows-Control v0.1.x GitHub:

                Hast du einen normalen Benutzer oder einen admin Account für dein vis

                Halt moment.
                Verwechselts du da was?

                Die Datei muss auf dem Win laufen, das du steuern willst.

                Der iob ist auf einem anderen Rechner!

                D 1 Reply Last reply Reply Quote 0
                • D
                  dos1973 @bahnuhr last edited by

                  @bahnuhr

                  Ja,
                  Und hat windows keine admin/ user 😉

                  bahnuhr 1 Reply Last reply Reply Quote 0
                  • bahnuhr
                    bahnuhr Forum Testing Most Active @dos1973 last edited by

                    @dos1973 sagte in Test Adapter Windows-Control v0.1.x GitHub:

                    @bahnuhr

                    Ja,
                    Und hat windows keine admin/ user 😉

                    ich bin da nur alleine angemeldet. Und ich hab admin.

                    Glaube aber, dass das damit nichts zu tun hat.

                    D 1 Reply Last reply Reply Quote 0
                    • D
                      dos1973 @bahnuhr last edited by

                      @bahnuhr

                      Ok, ich bin jetzt auch im admin, aber mein w10 bootet in einen normalen useraccount und öffnet dort chrome mit vis.

                      bahnuhr 1 Reply Last reply Reply Quote 0
                      • bahnuhr
                        bahnuhr Forum Testing Most Active @dos1973 last edited by

                        @dos1973 sagte in Test Adapter Windows-Control v0.1.x GitHub:

                        @bahnuhr

                        Ok, ich bin jetzt auch im admin, aber mein w10 bootet in einen normalen useraccount und öffnet dort chrome mit vis.

                        Warum öffnest du chrome mit vis.
                        Du willst doch, z.b. den Akku Stand deines win tablet abrufen.
                        Dort muss der webserver laufen.

                        und dann gehst du in javascript auf deinem iob rechner und probierst mein script aus zum Akku lesen.

                        D 1 Reply Last reply Reply Quote 0
                        • D
                          dos1973 @bahnuhr last edited by

                          @bahnuhr

                          Ich glaube ich hab da wirklich etwas falsch verstanden.

                          Ich hab kein w10 Tablet.
                          Ich hab einen w10 Nuc mit touchdisplay
                          Und suche eine Möglichkeit F-Tasten aus dem Vis an den Nuc zu senden.

                          Ich brauche F2/F3/F11

                          bahnuhr 1 Reply Last reply Reply Quote 0
                          • bahnuhr
                            bahnuhr Forum Testing Most Active @dos1973 last edited by

                            @dos1973 sagte in Test Adapter Windows-Control v0.1.x GitHub:

                            @bahnuhr

                            Ich glaube ich hab da wirklich etwas falsch verstanden.

                            Ich hab kein w10 Tablet.
                            Ich hab einen w10 Nuc mit touchdisplay
                            Und suche eine Möglichkeit F-Tasten aus dem Vis an den Nuc zu senden.

                            Ich brauche F2/F3/F11

                            w10 tablet oder w10 nuc ist egal.

                            F-Tasten gehen mit dem send-key modul

                            Befehl wäre dann:

                            request("http://" + IP_Tablet + ":3000/key/f2");
                            

                            Musst dir die Sachen mal anschauen und durchdenken.

                            D 1 Reply Last reply Reply Quote 0
                            • D
                              dos1973 @bahnuhr last edited by

                              @bahnuhr
                              okay, da muss ih morgen mal weserschauen.
                              Aber was ich bisher überhaupt nicht verstanden habe.

                              wie löse ich denn den Befehl aus?
                              ich brauche ja einen Datenpunkt? den ich im VIS ansprechen kann

                              bahnuhr 1 Reply Last reply Reply Quote 0
                              • bahnuhr
                                bahnuhr Forum Testing Most Active @dos1973 last edited by

                                @dos1973 sagte in Test Adapter Windows-Control v0.1.x GitHub:

                                ich brauche ja einen Datenpunkt? den ich im VIS ansprechen kann

                                Du hast schon mehr als 1500 Beiträge.
                                Weißt du das jetzt echt nicht ?

                                • Datenpunkt erzeugen
                                • In vis Datenpunkt einfügen
                                • per script trigger per on auf diesen datenpunkt
                                • und dann wird er request gesendet.
                                D 1 Reply Last reply Reply Quote 0
                                • D
                                  dos1973 @bahnuhr last edited by dos1973

                                  @bahnuhr

                                  Ich kann nicht einen satz mit javascript,
                                  Also ich bekomme das nicht umgebaut… das wollte ich danit ausdrücken.

                                  bahnuhr 1 Reply Last reply Reply Quote 0
                                  • bahnuhr
                                    bahnuhr Forum Testing Most Active @dos1973 last edited by

                                    @dos1973 sagte in Test Adapter Windows-Control v0.1.x GitHub:

                                    Ich kann nicht einen satz mit javascript,

                                    Dann wirds aber sehr schwierig.

                                    Les dich mal ein.
                                    Und verstehe doch mal den Ablauf wie oben in dem verlinkten Beitrag zu verstehen.

                                    meld dich dann wieder.

                                    D 1 Reply Last reply Reply Quote 0
                                    • D
                                      dos1973 @bahnuhr last edited by

                                      @bahnuhr

                                      Ne, wenn dann nur mit blockly, aber js, da bin ich einfach zu doof

                                      bahnuhr 1 Reply Last reply Reply Quote 0
                                      • bahnuhr
                                        bahnuhr Forum Testing Most Active @dos1973 last edited by

                                        @dos1973 sagte in Test Adapter Windows-Control v0.1.x GitHub:

                                        @bahnuhr

                                        Ne, wenn dann nur mit blockly, aber js, da bin ich einfach zu doof

                                        Na dann, blockly mag ich überhaupt nicht.
                                        mache alles per js.
                                        Probier es halt aus.

                                        D 1 Reply Last reply Reply Quote 0
                                        • D
                                          dos1973 @bahnuhr last edited by

                                          @bahnuhr
                                          ... das bisschen Vollbild (F11) kostet mich den letzen Nerv.

                                          Ich hab zwar jetzt über Umwege eine Möglichkeit gefunden auch ohne javascript die Befehle abzusetzen... die kommen auch an, aber es passiert einfach nichts.

                                          ich habe noch einen Lightmanager, da kann ich die Befehle direkt ausprobieren.
                                          Bildschirmfoto 2021-07-19 um 00.58.26.png

                                          Befehle komme an - aber es passiert nichts 😞

                                          
                                          C:\Users\Admin>node C:\Users\Admin\webserver\webserver.js
                                          server is listening on 3000
                                          /key/F11
                                          /key/F2
                                          /key/F3
                                          
                                          
                                          bahnuhr 1 Reply Last reply Reply Quote 0
                                          • Q
                                            Qlink last edited by

                                            Hat das Tool MCE Controller schon jemand erfolgreich über längere Zeit mit iobroker im Einsatz ?

                                            Ich hab mir jetzt die Doku kurz durchgelesen bin mir aber bei folgendem Punkt nicht sicher:

                                            Kann man damit auch auslesen, ob z.B. gerade Chrome.exe läuft oder VLC.exe ?

                                            Aus diesem Passus werd ich nicht ganz schlau:

                                            SetForgroundWindow Commands
                                            The SetForegroundWindow command sets the specified process’s main window to the foreground.
                                            
                                            For example, eiter of the following makes Notepad the foreground Window (assuming Notepad is running):
                                            
                                            <SetForegroundWindow Cmd="activatenotepad" AppName="Notepad"/>
                                            <SetForegroundWindow Cmd="activatenotepad" ClassName="Notepad"/>
                                            AppName is the “friendly process name” of an app. This is the name shown in Properties dialog for items listed in the Details tab of Windows Task Manager.
                                            
                                            MCEC uses the Windows GetProcessesByName API which returns a list of all instances of an app with the given process name. MCE picks the first process in the list that has a main window.
                                            
                                            Note, the argument ClassName is mis-named and preserved for backwards compatibility. It is a hold-over when MCEC worked on older versions of Windows that enabled setting any window to the foreground. Starting with Windows Vista it is no longer possible for one app to set arbitrary windows of another app to the foreground.
                                            

                                            Ist diese Funktion genau das was ich suche/meine, oder kann man die nur dazu nutzen ein Programm in den Vordergrund zu bringen ?

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            548
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            adapter control getadmin tester windows windows-control
                                            27
                                            211
                                            25899
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo