NEWS
Wie Objekt aus Windows heraus schalten?
-
Hallo zusammen,
hat jemand eine Idee, wie ich am besten ein Objekt aus windows heraus steuere?
ich möchte, dass mein AVR über ioBroker angeschaltet wird, wenn ich spotify starte.
Hab mir jetzt übergangsmäißg mit einer bat geholfen, die spofity startet und einen befehl per url an iobroker sendet.
start http://192.168.xxx.xxx:8082/set/javascript.0.VSX921.Steuerung.921_Power?value=true start C:\Users\User\AppData\Roaming\Spotify\Spotify.exeaber dabei öffnet sich unnötigerweise natürlich auch immer der browser mit der ausgabe.
Wie kann man das verhindern bzw. das ganze insgesamt etwas eleganter machen?
Vielen Dank und Grüße.
-
wget installieren (https://sourceforge.net/projects/gnuwin … /1.11.4-1/)
In der bat Datei dann:
@echo off start C:\"Program Files (x86)"\GnuWin32\bin\wget.exe -q -O- http://192.168.xxx.xxx:8082/set/javascript.0.VSX921.Steuerung.921_Power?value=trueEs öffnet/schließt sich allerdings ganz kurz ein Dos Fenster.
-
wget installieren (https://sourceforge.net/projects/gnuwin … /1.11.4-1/)
In der bat Datei dann:
@echo off start C:\"Program Files (x86)"\GnuWin32\bin\wget.exe -q -O- http://192.168.xxx.xxx:8082/set/javascript.0.VSX921.Steuerung.921_Power?value=trueEs öffnet/schließt sich allerdings ganz kurz ein Dos Fenster. `
Hat wunderbar funktioniert, vielen Dank.
Nur aus Interesse, gäb es da eigentlich auch eine einfache javascript oder python Lösung für?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login