Jump to content

Butona Basınca İstediğim Web Sayfası Açılsın


LifeSux
 Share

Recommended Posts

[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]

Link to comment
Share on other sites

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]

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...