hab im Code nur die "2" mit einer "3" in der Zeile ersetzt:
Code: Alles auswählen
value = stdout.Substr(stdout.Find(cut2) + cut2.Length() + 1, 3);
Moderator: Co-Administratoren
Code: Alles auswählen
value = stdout.Substr(stdout.Find(cut2) + cut2.Length() + 1, 3);
Code: Alles auswählen
<?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html lang="de" xmlns="http://www.w3.org/1999/xhtml" xml:lang="de"><head><meta http-equiv="Content-Script-Type" content="text/javascript" /><meta http-equiv="Content-Style-Type" content="text/css" /><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="../common/css/common.css" />
<link rel="stylesheet" type="text/css" href="../common/css/ews.css" />
<link rel="stylesheet" type="text/css" href="../common/css/simple.css" />
<script type="text/javascript" src="../common/js/cookie.js"></script>
<script type="text/javascript" src="../common/js/language.js"></script>
<script type="text/javascript" src="../common/js/lcddisplay.js"></script><link rel="stylesheet" type="text/css" href="/common/css/simple.css" /><title>Brother DCP-J562DW</title></head><body ><div id="baseFrame"><div id="frameContainer"><div id="rightFrameContainer"><div id="rightFrame"><div id="mainContent"><div id="pageTitle"><h2>Status</h2></div><div id="pageContents"><form method="post" action="/general/status.html"><div><input type="hidden" id="pageid" name="pageid" value="1" /></div><div class="contentsGroup"><dl class="items"><dt>Tintenvorrat</dt><dd><div id="ink_level"><table id="inkLevel" summary="ink level"><tr><th></th><th></th><th></th><th></th></tr><tr><td><img src="../common/images/magenta.gif" alt="Magenta" class="tonerremain" height="9" /></td><td><img src="../common/images/cyan.gif" alt="Cyan" class="tonerremain" height="48" /></td><td><img src="../common/images/yellow.gif" alt="Yellow" class="tonerremain" height="38" /></td><td><img src="../common/images/black.gif" alt="Black" class="tonerremain" height="39" /></td></tr><tr><th>M</th><th>C</th><th>Y</th><th>BK</th></tr></table></div></dd></dl></div><div class="contentsGroup links"><p class="links"><a href="/general/index.html" pageid="PAGEID_GENERAL_INDEX">Menü</a></p></div></form></div></div></div></div><div id="footerFrameContainer"><div id="copyright">Copyright(C) 2000-2015 Brother Industries, Ltd. All Rights Reserved.</div><div id="topBack"><a href="#">Top<img src="/common/images/ic_pt.gif" alt="Top" /></a></div></div></div></div></body></html>