Jump to content

Giriş Yapmak


Abdullah 37

Recommended Posts

Arkadaşlar forumlara giriş yapmak ile ilgili bir sorum var.

55027051.png

Resimde gördüğünüz gibi bir pencere oluşturdum.Benim yapmak istediğim Kullanıcı adı ve şifre bölümünü doldurduktan sonra Giriş butonuna tıklayınca mesela tnctr de giriş yapılmasını istiyorum.Kullanıcı adını ve şifreyi tekrar yazmak yerine ise beni hatırla checkbox'unu koydum.Sorum ise bu Kullanıcı adını ve şifresini web sitesindeki kullanıcı adı ve şifre yerine nasıl yazdırıp giriş yaptıracağız.Bunun ve beni hatırla bölümünün çalışması için kodlar nasıl olmalıdır.

Gui Penceresi Kodları

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 233, 155, 192, 124)
$Kullanici = GUICtrlCreateLabel("Kullanıcı Adı:", 16, 16, 79, 20)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$Sifre = GUICtrlCreateLabel("Şifre:", 16, 48, 34, 20)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$Input1 = GUICtrlCreateInput("", 96, 16, 121, 21)
$Input2 = GUICtrlCreateInput("", 96, 48, 121, 21)
$Hatirla = GUICtrlCreateCheckbox("Beni Hatırla", 16, 88, 97, 17)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$Giris = GUICtrlCreateButton("Giriş", 144, 112, 75, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd[/CODE]

Link to comment
Share on other sites

forumlara giriş için örnekler ileri düzey autoit örnekleri konusunda paylaşıldı incele.

Biliyorum İleri düzey autoit örnekleri konusunda sayfa 12 de buna benzer bir konudan bahsetmiş.Orda söylenenleri denedim ama olmadı.

Link to comment
Share on other sites

Buyur birazcık merak edip araştırsan aslında orda söylenilenlerle ypaılacağını görürdün :)

#NoTrayIcon
#include <IE.au3>
Global $User = "kullanıcı adın"
Global $Pass = "şifren"
Global $oIE,$oForm,$IN_USER,$IN_PASS
$oIE = _IECreate ("http://www.tnctr.com")
$oForm = _IEFormGetObjByName ($oIE, "LOGIN")
$IN_USER = _IEFormElementGetObjByName ($oForm, "UserName")
_IEFormElementSetValue ($IN_USER, $User)
$IN_PASS = _IEFormElementGetObjByName ($oForm, "PassWord")
_IEFormElementSetValue ($IN_PASS, $Pass)
$oSubmit = _IEGetObjByName ($oIE, "submit")
_IEAction ($oSubmit, "click")[/CODE]

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...