Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 09:24

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

Advertisement



AutoIt soll URLs mit bestimmten Browsern öffnen

Discussion on AutoIt soll URLs mit bestimmten Browsern öffnen within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1

 
.yorliK's Avatar
 
elite*gold: 0
Join Date: Nov 2011
Posts: 1,448
Received Thanks: 1,258
AutoIt soll URLs mit bestimmten Browsern öffnen

Moin,

ich bin grad bei n Script zu schreiben das, wenn n Button gedrückt wird, der n Link öffnet. Ich habs schon soweit, das er es mit meinem Standart Browser öffnet, dem Internet Explorer. Nun möchte ich aber das es mit Firefox geöffnet wird, ohne das ich FireFox als Standartbrowser eingestellt habe.

Hier mein code:
Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <ProgressConstants.au3>


#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 559, 445, 479, 133)
GUISetBkColor(0x000000)
$Button1 = GUICtrlCreateButton("Google.de", 160, 72, 97, 57)
GUICtrlSetBkColor(-1, 0xFFFF00)
GUISetState(@SW_HIDE)
#EndRegion ### END Koda GUI section ###

$Form0 = GUICreate("Form2", 433, 63, 503, 345, BitOR($WS_SYSMENU,$WS_POPUP))
GUISetBkColor(0x000000)
$Progress1 = GUICtrlCreateProgress(8, 8, 417, 49)
GUICtrlSetColor(-1, 0x00FF00)
GUISetState(@SW_SHOW)

For $i = 0 To 100
GUICtrlSetData($Progress1, $i)
Sleep(40)
Next

GUIDelete($Form0)
GUISetState(@SW_SHOW, $Form1)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $Button1
            ShellExecute("http://google.de/")
			    EndSwitch
WEnd
Weiß jemand wie ich das mache?

MfG
Kilroy.
.yorliK is offline  
Old 03/07/2013, 19:02   #2
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,254
ShellExecute("firefox.exe", "www.elitepvpers.com")
omer36 is offline  
Thanks
1 User
Old 03/07/2013, 19:06   #3

 
.yorliK's Avatar
 
elite*gold: 0
Join Date: Nov 2011
Posts: 1,448
Received Thanks: 1,258
Wow, so schnelle Antwort und es funktioniert.

#Thanks!
.yorliK is offline  
Reply


Similar Threads Similar Threads
AutoIt soll URL in Firefox im Hintergrund öffnen.
12/04/2011 - AutoIt - 15 Replies
Hallo, ich bin Anfänger und will wissen,wie ich per Button1 den Standartbrowser (minimized) einen URL öffnen lassen kann. Das ist der Code: #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Titel", 625, 443, 192, 124) $Button1 = GUICtrlCreateButton("Button1", 16, 24, 99, 41, $WS_GROUP)
Autoit/Hotkey für bestimmten Abschnitt...
10/20/2011 - AutoIt - 6 Replies
Hey Leute, ich bin gerade dabei ein Script zu schreiben. Dieses Script verlangt nach drei Koordinaten, die per Maus ausgelesen werden. Wie kann man ein Hotkey so setzen, dass es alle drei Koordinaten mit dem gleichen Hotkey abgespeichert werden, ohne die alten Koordinaten zu löschen? Hier noch bissal Code und Erklärung: Das existiert jetzt 3x(Mit dem Unterschied dass sich D in D2 verändert usw.), 1x für jeden Hotkey. Das möchte ich ja jetzt ändern^^ IniWrite(@ScriptDir & "\xy.ini",...
AutoIT:bestimmten Bereich nach Farben abbsuchen
08/01/2010 - General Coding - 3 Replies
Hi :D, ich hab das problem ich hab von einem spiel einen Bereich wo irgendwo ein weißes kreuz erscheint und jetzt wollte ich mal fragen ob und wie es mit autoit geht das sobald das kreuz erscheint der Bot automatisch draufklickt. Mfg Crossi xD Schomma danke im Vorraus :handsdown: :handsdown:
AutoIT-Auf einen bestimmten Prozess konzentrieren
10/16/2008 - AutoIt - 3 Replies
Ist es möglich AutoIT so einzustellen das es sich nur auf einen Prozess anwendet? Damit man z.B auch nebenbei Chatten oder Surfen kann? z.B man hat AutoIT auf und es arbeitet an einem "Fenster" und wenn man es Minimiert funktioniert es ja nichtmehr... Kann man etwas machen damit AutoIT auch minimiert funktioniert?



All times are GMT +2. The time now is 09:24.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.