Bir link otomatik olarak nasıl çalıştırılır? sürekli kendini yenileyecek şekilde nasıl yapabilirim
örneğin şuan bu sayfaya sürekli F5 attığınızı düşünün
Hocam ChatGPT kullanarak tarayıcısız bir şekilde sayfa yenileyebileceğiniz bir kod oluşturdum. Spoiler içindeki kodu metin belgesine yapıştırıp, url yi düzenledikten sonra uzantısını ".vbs" (Visual Basic Script) olarak kaydederek kullanabilirsiniz.
```python You can use the following VBScript code to refresh a specific URL every second without using a web browser:
Set objHTTP = CreateObject("MSXML2.XMLHTTP") Do While True objHTTP.open "GET", "http://example.com", False objHTTP.send WScript.Sleep 1000 'wait for 1 second Loop
This code creates an instance of the `MSXML2.XMLHTTP` object, sends a GET request to the specified URL (in this case, "http://example.com"), and then waits for 1 second before looping back to send another request. You can replace "http://example.com" with the URL you want to refresh. Save the code in a file with a ".vbs" extension and run it using Windows Script Host.