Hallo,
kann ich auch Befehle f├╝r einen http Aufruf erstellen?
Wenn ein Ereignis eintritt m├Âchte ich zum Beispiel "http://192.168.1.1/demo.html" aufrufen ... wobei aber der Explorer nicht ge├Âffnet werden soll, sondern nur 1x der Link angesteuert werden soll.
Sobald der Link nämlich aufgerufen wird, wird am Webserver eine Folgeaktion ausgeführt.
Danke
Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
http Aufruf
Re: http Aufruf
Notfalls mit "wget" die Seite runterladen lassen.
Geht bestimmt auch mit Python direkt, da m├╝sste ich aber erst nachgucken.
Geht bestimmt auch mit Python direkt, da m├╝sste ich aber erst nachgucken.
- Bitmonster
- Site Admin
- Posts: 2239
- Joined: Mon Feb 06, 2006 10:28 pm
Re: http Aufruf
PythonScript:
Code: Select all
import urllib2
urllib2.urlopen("http://192.168.1.1/demo.html")
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
- Pako
- Plugin Developer
- Posts: 2294
- Joined: Sat Nov 11, 2006 1:31 pm
- Location: Czech Republic
- Contact:
Re: http Aufruf
Vielleicht wird dies dazu beitragen:Pako
Code: Select all
wx.LaunchDefaultBrowser("http://192.168.1.1/demo.html")- Bitmonster
- Site Admin
- Posts: 2239
- Joined: Mon Feb 06, 2006 10:28 pm
Re: http Aufruf
@Pako
He didn't wanted to open the page in a browser. He only wants to invisibly initiate a request to his webserver, that will then react in some way on the request.
He didn't wanted to open the page in a browser. He only wants to invisibly initiate a request to his webserver, that will then react in some way on the request.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
Re: http Aufruf
Hallo an alle,
danke f├╝r die Zahlreichen Infos ... wie bekomme ich die Codezeilen zum laufen, bzw. wo gebe ich diese ein?
Und es ist wie BitMonster es geschrieben hat ... die Seite soll nur einmal initialisiert werden ... ein Aufruf oder Anzeigen ist nicht n├Âtig.
Danke
danke f├╝r die Zahlreichen Infos ... wie bekomme ich die Codezeilen zum laufen, bzw. wo gebe ich diese ein?
Und es ist wie BitMonster es geschrieben hat ... die Seite soll nur einmal initialisiert werden ... ein Aufruf oder Anzeigen ist nicht n├Âtig.
Danke
Re: http Aufruf
Befehl hinzuf├╝gen... => EventGhost => Python SkriptUnique24 wrote:... wie bekomme ich die Codezeilen zum laufen, bzw. wo gebe ich diese ein?
Einfach Copy & Paste in das Fenster
Re: http Aufruf
Sorry für die späte Antwort,
es hat geklappt mit dem Pyton Script.Habt vielen Dank!
es hat geklappt mit dem Pyton Script.Habt vielen Dank!