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="larry_S" data-source="post: 647503" data-attributes="member: 85587"><p><strong>AW: per Batch Programme in best. Reihenfolge starten</strong></p><p></p><p>[USER=62730]lembugu[/USER]</p><p>Dein Code dürft nur mit Visual Studio laufen.</p><p></p><p>[USER=53383]Ponyriemen[/USER]</p><p>Hier mal ein simpler Code welcher eine Excel Tabelle aufruft, wartet bis das Fenster "Kennwort" kommt und dann test123 eingibt.</p><p></p><p>[CODE]Set WshShell = Wscript.CreateObject("WScript.Shell")</p><p></p><p>intreturn = wshshell.run(chr(34) & "S:\xxx\xxx\Tabelle.XLS"&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[/CODE]</p><p></p><p>Gruß</p><p>Larry</p></blockquote><p></p>
[QUOTE="larry_S, post: 647503, member: 85587"] [b]AW: per Batch Programme in best. Reihenfolge starten[/b] [USER=62730]lembugu[/USER] Dein Code dürft nur mit Visual Studio laufen. [USER=53383]Ponyriemen[/USER] Hier mal ein simpler Code welcher eine Excel Tabelle aufruft, wartet bis das Fenster "Kennwort" kommt und dann test123 eingibt. [CODE]Set WshShell = Wscript.CreateObject("WScript.Shell") intreturn = wshshell.run(chr(34) & "S:\xxx\xxx\Tabelle.XLS"&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] Gruß Larry [/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