LifeSux Posted November 8, 2011 Share Posted November 8, 2011 Butona basınca benim istediğim web sayfasını ie ile açmasını nasıl sağlayabilirim. ? varsayılan tarayıcı ile açsa daha iyi olur ama... Quote Link to comment Share on other sites More sharing options...
SimpsoN_Bart Posted November 8, 2011 Share Posted November 8, 2011 [font="Georgia"]Basit bir örnek verecek olursak;[/font] [font="Georgia"] [/font] [codebox]Local $Form1 = GUICreate("Form1", 314, 157, 192, 124) Local $Button1 = GUICtrlCreateButton("Google", 216, 120, 75, 25) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case -3 Exit Case $Button1 ShellExecute("www.google.com") EndSwitch WEnd[/codebox] [font="Georgia"]Bu gibi işlemler için autoitin hali hazırda fonksiyonları da vardır misal _IENavigate() de aynı işlevi görür daha fazlası için help dosyasının IE Management bölümüne bakabilirsiniz.[/font] [font="Georgia"] [/font] [font="Georgia"]İyi Bayramlar..[/font] Quote Link to comment Share on other sites More sharing options...
Mehmet Posted November 8, 2011 Share Posted November 8, 2011 veya daha basit bir örnekle [codebox] #include <IE.au3> ;IE fonksiyonumuz #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $Form1 = GUICreate("Form1", 206, 161) $Button1 = GUICtrlCreateButton("tnctr git", 64, 48, 75, 25) ;tnctr butonu GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE ;çarpıya basınca çık Exit Case $Button1 ;button1'e tıklayınca $oIE = _IECreate() _IENavigate($oIE, "http://www.tnctr.com");tnctr git EndSwitch WEnd[/codebox] Quote Link to comment Share on other sites More sharing options...
g.a Posted November 8, 2011 Share Posted November 8, 2011 (edited) Alternatif bir yöntem ve en basiti cmdye komut yollar ve açar [code]_RunDOS("start www.tnctr.com") ;önanlatımlı tarayıcıda açar [/code] Edited November 8, 2011 by g.a Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.