Jump to content

how to display realtime logs in paragraph1


drox

Önerilen İletiler

Hi to everyone i'm creating a tools for cellphone repair. 

my problem is when i run.

my sample code:

python.exe mtk e userdata

i want to display its logs in realtime on Paragraph1

i can display the logs but not in realtime: 

sample: 

text = TextFile.ReadToString("Autoplay\\Docs\\logs\\mtk.log");
Paragraph.SetText("Paragraph1", text);

this will only display after the process is finished .

i want it to display in realtime logs on Paragraph1.

thank you...

 

 

 

image.png.9a6c4bc39ab2bce78f2eb4308333c13b.png

Yorum bağlantısı
Sitelerde Paylaş

3 hours ago, microbyte said:

dude if you want something realtime without third party try to use script in "On Timer"

sorry i'm newbie for ams thanks for your reply. Hope anyone can give me link for third party plugins etc the important thing is i can display the logs in realtime on Paragrahp1 .

Yorum bağlantısı
Sitelerde Paylaş

5 hours ago, microbyte said:

dude if you want something realtime without third party try to use script in "On Timer"

sad to say but i think your right i tried to use commandline_plugins but when i run like a command in loop example. ping google.com -t it will not display the logs and it always executing...without logs.  but if i use example: ping google.com it will display cause the ping process ends. But still maybe theres a genuis who is outside the box that can give me an answer.    

Yorum bağlantısı
Sitelerde Paylaş

  • Yönetici

Bura da Tam Olarak ne yapacaginizi anlamadim. detayli anlatirsaniz eger size yardimci olabilirim. 

Yorum bağlantısı
Sitelerde Paylaş

Falcon, 18.11.2022 - 13:40 yazdı:

Bura da Tam Olarak ne yapacaginizi anlamadim. detayli anlatirsaniz eger size yardimci olabilirim. 

TextFile.ReadToString("Autoplay\\Docs\\logs\\mtk.log");
Paragraph.SetText("Paragraph1", text); this code works if the process already stop. example "ping google.com" this will display the logs as the process stop.  but example i tried this "python mtk w boot boot.img" this code is always running without stopping or always in loop while waiting for usb detection so the logs inside mtk.log will not be display in paragraph1 cause the process is not finish yet. So what i'm trying to find is if there is other way or plugins that can display the mtk.log even when it is processing.  Thank you...

thanks for the reply sir. My problem is how to display the logs in realtime inside my paragraph1. What i did is this i save the recorded logs inside mtk.log while on processing. I use this code text = 

Yorum bağlantısı
Sitelerde Paylaş

21 hours ago, Falcon said:

Bu Eklenti ile Yapabilirsiniz. 

Gizli İçerik

 

Download Action Plugin: 

Gizli İçerik

Thank you sir Falcon for your efforts your cmd.apz is working very well when i tried ping google.com it works but when i try ping google.com -t     it didn't show the logs as the process is still ongoing.  My only solution for now is to use timer for loop and taskkill  or just show the command console running... beside with my apz...

falcon.png

Yorum bağlantısı
Sitelerde Paylaş

Sohbete katıl

Şimdi mesajını gönderebilir ve daha sonra kayıt olabilirsin. Bir hesabın varsa, hesabınla göndermek için şimdi oturum aç.

Misafir
Bu konuyu yanıtla

×   Yapıştırdığınız içerik biçimlendirme içeriyor.   Biçimlendirmeyi Temizle

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Önceki içeriğiniz geri yüklendi.   Editör içeriğini temizle

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Yeni Oluştur...

Önemli Bilgilendirme

KartalSoftware Forum kurallarını okudum ve kabul ettim.