Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 22:10

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Chrome-Fenster schliessen

Discussion on Chrome-Fenster schliessen within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2010
Posts: 5
Received Thanks: 0
Chrome-Fenster schliessen

Hallo, könnte mir vielleicht jemand helfen ?
Möchte mit AutoIt ein Chrome-Fenster öffnen, und wieder schliessen, wie man es öffnet, hab ich wohl, aber wie schliesst man das ?

Run ("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe")
Sleep (2000)
Send ("http://google.com")
Send ("{enter}")
Hexer71 is offline  
Old 11/18/2018, 12:53   #2
 
elite*gold: 100
Join Date: Apr 2008
Posts: 860
Received Thanks: 1,487
Quote:
Originally Posted by Hexer71 View Post
Hallo, könnte mir vielleicht jemand helfen ?
Möchte mit AutoIt ein Chrome-Fenster öffnen, und wieder schliessen, wie man es öffnet, hab ich wohl, aber wie schliesst man das ?

Run ("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe")
Sleep (2000)
Send ("http://google.com")
Send ("{enter}")
>
Ist auch ein Beispiel dabei, das tut genau was du suchst.

Quote:
Function Run

Return Value
Success: the PID of the process that was launched.
Failure: 0 and sets the @error flag to non-zero.
florian0 is offline  
Thanks
2 Users
Old 11/18/2018, 13:28   #3
 
elite*gold: 0
Join Date: Feb 2013
Posts: 1,354
Received Thanks: 280
Local $pid = Run ("C:\ProgramFiles(x86)\Google\Chrome\Application\c hrome.exe")
Sleep (2000)
Send ("http://google.com")
Send ("{enter}")
ProcessClose($pid)

So sollte es dann funktionieren einmal die ProcessId speichern welche man durch die Run funktion bekommt und mittels ProcessClose Funktion und der ProcessId von dem geöffneten Programm dann wieder schließen
Twist' is offline  
Thanks
1 User
Old 11/18/2018, 16:35   #4

 
Moneypulation's Avatar
 
elite*gold: 138
Join Date: Apr 2012
Posts: 3,494
Received Thanks: 1,769
Das Starten geht auch viel eleganter:

Code:
Run ("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe google.com")
Moneypulation is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[Buying] BUYING HEAVY CHROME AND NVG CHROME!!!!!!!!
01/17/2017 - Infestation Trading - 0 Replies
Title Buying heavy chrome and nvg chrome skype is marcusjansson24
[Buying] Custom Chrome and NVG Chrome
06/28/2016 - Infestation Trading - 0 Replies
Want to buy Custom Chrome 3$ //Contact me on Steam;): http://steamcommunity.com/id/Hyprox321312
Sell small invisible backpack heavy chrome moto helmet chrome
02/19/2016 - Infestation Trading - 0 Replies
offers add me on skype aksoy.gokhan
[Selling] Conquer Chrome 2016 Bot - www.conquer-chrome.comlu.com
02/06/2016 - Conquer Online 2 Trading - 3 Replies
www.conquer-chrome.comlu.com For more information checkout our website. Public sales are open for 7 days only!
Fenster Schliessen Button2 schliesst Button1
06/18/2010 - AutoIt - 1 Replies
So da ich gestern mit dem AutoIt angenfangen habe und versuche einen AFK Bot zu schreiben, bleib ich doch noch etwas hängen. Und zwar wenn man Start klickt, kann man das Fenster nicht mehr schliessen. Wenn man Start nicht klickt, kann man das Fenster schliessen. So das wäre das erste Problem was ich hab ich da falsch geschrieben. Die zweite Sache wäre, wie beenden ich die Funktion 1 Button1 mit dem Button2. Ich hab einfach keine Idee :( #include <GUIConstantsEx.au3> #include...



All times are GMT +1. The time now is 22:11.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.