home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Language specific support
Deutsches MediaPortal Forum
MediaPortal 1
Allgemeines Supportforum
per Batch Programme in best. Reihenfolge starten
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Ponyriemen" data-source="post: 647518" data-attributes="member: 53383"><p><strong>AW: per Batch Programme in best. Reihenfolge starten</strong></p><p></p><p>[USER=85587]larry_S[/USER]</p><p></p><p>Danke soweit!</p><p>habe das mal testweise mit Notepad versucht und Notepad wird auch aufgerufen.</p><p></p><p>[CODE]Set WshShell = Wscript.CreateObject("WScript.Shell")</p><p></p><p>intreturn = wshshell.run(chr(34) & "C:\WINDOWS\Notepad.exe"&chr(34) ,9,false)</p><p>PW="test123"</p><p></p><p>'Warten bis das Fenster Kennwort kommt. Nach 10 Sekunden abbrechen.</p><p>while wshShell.AppActivate("Kennwort") = FALSE and a<>20</p><p> a=a+1</p><p> wscript.sleep 500 '500 Millisekunden warten</p><p>wend</p><p></p><p>if wshShell.AppActivate("Kennwort") = True then</p><p> wshShell.AppActivate("Kennwort")</p><p> wscript.sleep 150</p><p> wshShell.SendKeys PW</p><p> wscript.sleep 150</p><p> wshShell.AppActivate("Kennwort")</p><p> wscript.sleep 150</p><p> wshShell.SendKeys "{TAB}"</p><p> wscript.sleep 150</p><p> wshShell.AppActivate("Kennwort")</p><p> wscript.sleep 150</p><p> wshShell.SendKeys " "</p><p>end if</p><p>[/CODE]</p><p></p><p>es wäre für mich, was die Eingabe des Passworts angeht, deutlich simpler und einfacher, wenn das Script Stumpf was eingibt, dann TAB drückt und wieder was eingibt, dann Enter, dann einmal Alt+N - zack, nächstes Programm starten.</p><p>Eine Abfrage mit if und so scheint mir etwas zu kompliziert, vor allem, weil ich sie nicht verstehe und damit auch nicht richtig umändern kann... <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite10" alt=":oops:" title="Oops! :oops:" loading="lazy" data-shortname=":oops:" /></p><p></p><p>Geht sowas auch ganz simpel wie o.g. beschrieben von mir?</p></blockquote><p></p>
[QUOTE="Ponyriemen, post: 647518, member: 53383"] [b]AW: per Batch Programme in best. Reihenfolge starten[/b] [USER=85587]larry_S[/USER] Danke soweit! habe das mal testweise mit Notepad versucht und Notepad wird auch aufgerufen. [CODE]Set WshShell = Wscript.CreateObject("WScript.Shell") intreturn = wshshell.run(chr(34) & "C:\WINDOWS\Notepad.exe"&chr(34) ,9,false) PW="test123" 'Warten bis das Fenster Kennwort kommt. Nach 10 Sekunden abbrechen. while wshShell.AppActivate("Kennwort") = FALSE and a<>20 a=a+1 wscript.sleep 500 '500 Millisekunden warten wend if wshShell.AppActivate("Kennwort") = True then wshShell.AppActivate("Kennwort") wscript.sleep 150 wshShell.SendKeys PW wscript.sleep 150 wshShell.AppActivate("Kennwort") wscript.sleep 150 wshShell.SendKeys "{TAB}" wscript.sleep 150 wshShell.AppActivate("Kennwort") wscript.sleep 150 wshShell.SendKeys " " end if [/CODE] es wäre für mich, was die Eingabe des Passworts angeht, deutlich simpler und einfacher, wenn das Script Stumpf was eingibt, dann TAB drückt und wieder was eingibt, dann Enter, dann einmal Alt+N - zack, nächstes Programm starten. Eine Abfrage mit if und so scheint mir etwas zu kompliziert, vor allem, weil ich sie nicht verstehe und damit auch nicht richtig umändern kann... :ooops: Geht sowas auch ganz simpel wie o.g. beschrieben von mir? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Language specific support
Deutsches MediaPortal Forum
MediaPortal 1
Allgemeines Supportforum
per Batch Programme in best. Reihenfolge starten
Contact us
RSS
Top
Bottom