Abdullah 37 Posted June 6, 2010 Share Posted June 6, 2010 Arkadaşlar autoplay media studio ile şöyle birşey nasıl yapılabilir.Mesela ben tnctr otomatik ye giriş yapmak istiyorum.Ams de bir tane buton oluşturdum ve bu butona tıklayınca otomatik olarak Kullanıcı adı ve şifre yerlerini doldurup direk tnctr de giriş yapılmasını istiyorum bunu nasıl yapabiliriz.Kodlar nasıl olmalıdır?Bu kodlar çoklu kullanıcı için nasıl olmalıdır. Link to comment Share on other sites More sharing options...
KintaRo Posted June 6, 2010 Share Posted June 6, 2010 Bunun için sitenin hangi değerlerle postlari aldığını bilmek gerek. yani mesela www.tnctr.com/index.php?id=login&username=KintaRo&password=cokgizlisifrem post bu sekilde örneğin. Link to comment Share on other sites More sharing options...
Abdullah 37 Posted June 6, 2010 Author Share Posted June 6, 2010 Bunun için sitenin hangi değerlerle postlari aldığını bilmek gerek. yani mesela www.tnctr.com/index.php?id=login&username=KintaRo&password=cokgizlisifrem post bu sekilde örneğin. hocam tam olarak dediğini anlayamadım.Acaba bir apz dosyası örneği verebilirmisin? Link to comment Share on other sites More sharing options...
KintaRo Posted June 6, 2010 Share Posted June 6, 2010 abi işte o değerleri bilmeden yapamayız diyorum :-) Link to comment Share on other sites More sharing options...
Abdullah 37 Posted June 7, 2010 Author Share Posted June 7, 2010 abi işte o değerleri bilmeden yapamayız diyorum :-) peki hocam autoit plugininden falan yararlanamazmıyız? Link to comment Share on other sites More sharing options...
KintaRo Posted June 7, 2010 Share Posted June 7, 2010 O şekilde olabilir. Örnek çalışmalarda AMS içinde AutoIT plugini olacaktı. Ona bir bak istersen. Link to comment Share on other sites More sharing options...
Abdullah 37 Posted June 7, 2010 Author Share Posted June 7, 2010 O şekilde olabilir. Örnek çalışmalarda AMS içinde AutoIT plugini olacaktı. Ona bir bak istersen. hocam plugin varda hangi kodla ve nasıl kullanılacağını bilmiyorum Link to comment Share on other sites More sharing options...
KintaRo Posted June 7, 2010 Share Posted June 7, 2010 Sonunda beni AutoIt'ede bulaştırdınız ya helal olsun Senin için bir örnek hazırladım kodlar şu şekilde; handle = Application.GetWndHandle() tblPos = Window.GetPos(handle) -- pencere pozisyonunu al AutoIt.MouseClick(AUTOIT_MOUSE_LEFT, tblPos.X+417, tblPos.Y+593, 1, 10) -- kullanıcı adına git AutoIt.Send("KULLANICI ADINIZI BURAYA YAZIN", 0) -- kullanıcı adını gir AutoIt.MouseClick(AUTOIT_MOUSE_LEFT, tblPos.X+417, tblPos.Y+633, 1, 10) -- şifreye git AutoIt.Send("ŞİFRENİZİ BURAYA YAZIN", 0) -- şifreyi gir AutoIt.MouseClick(AUTOIT_MOUSE_LEFT, tblPos.X+497, tblPos.Y+715, 1, 10) -- girişe tikla[/CODE] Önce kullanıcı adı, şifre ve giriş buttonlarının Mouse X,Y pozisyonlarını buldum. daha sonra Pencere pozisyonu alarak (tblPos) bunlara daha önceki kullanıcı adı, şifre, giriş pozisyonlarını ekledim (tblPos.X+593) bu şekilde mouse'un oraya yönlenmesini sağladım. Artık kendine göre düzenlersin. Örnek Proje: [CODE]http://rapidshare.com/files/396182308/autoit_otogiris.rar[/CODE] Not: Normalde örnek projeleri kendi siteme yüklerim kullanıcılar kolay indirsinler diye. Şu an başka bir bilgisayarda olduğum için rapidshare'e yüklüyorum. Bilginiz olsun. Link to comment Share on other sites More sharing options...
MostWanted Posted June 12, 2010 Share Posted June 12, 2010 Kintaro'cum bulaş autoit'e bulaş autoit nurdur nur Bu arada demin autoit bölümünde tnctr'ye giriş yapma scripti isteyen birisi gördüm buna dayanarak küçük bi exe yapayım dedim ams'de kullanmak için Buyrun exe ve nasıl kullanılacağı; http://rapidshare.com/files/398138788/giris.exe[/CODE] Bu dosyayı indirip projemizin doc klasörüne atıyoruz ve; [CODE]ad=Input.GetText("Input1") sifre=Input.GetText("Input2") File.Run("AutoPlay\\Docs\\giris.exe", "\""..ad.."\" \""..sifre.."\"", "", SW_SHOWNORMAL, true)[/CODE] Giriş butonumuza bu kodu koyuyoruz.Tabi inputlarımız oluşturmayı ihmal etmiyoruz Çok özenle hazırlamadım exe'yi o yüzden bi kaç yerinde sorun çıkabilir.Çıkarsa düzeltmeye çalışırım Link to comment Share on other sites More sharing options...
KintaRo Posted June 12, 2010 Share Posted June 12, 2010 abi güzel diyorsunda oda başlı başına bir dil. AMS'yi tam anlamıyla öğrenmeden geçmem ona heralde. Link to comment Share on other sites More sharing options...
MostWanted Posted June 12, 2010 Share Posted June 12, 2010 Kesinlikle haklısın.Ben mesela bu işe yavaştan başladım 1 seneden beri AMS'yi bıraktım autoit öğreniyorum.Emin ol AMS'yi aratmıyor.Ama tabiki seçim senin Link to comment Share on other sites More sharing options...
by_mehmet_emin Posted June 12, 2010 Share Posted June 12, 2010 abi güzel diyorsunda oda başlı başına bir dil. AMS'yi tam anlamıyla öğrenmeden geçmem ona heralde. Abi sen daha öğrenicen mi yok artık. Link to comment Share on other sites More sharing options...
KintaRo Posted June 12, 2010 Share Posted June 12, 2010 talha; bende ufaktan bakmaya başlıyayım o zaman haklısın mehmet; öyle deme AMS çok geniş kapsamlı halen öğreneceğim şeyler var biliyorum. Son seviyeye kadar gitmek istiyorum Link to comment Share on other sites More sharing options...
Abdullah 37 Posted June 13, 2010 Author Share Posted June 13, 2010 Kintaro'cum bulaş autoit'e bulaş autoit nurdur nur Bu arada demin autoit bölümünde tnctr'ye giriş yapma scripti isteyen birisi gördüm buna dayanarak küçük bi exe yapayım dedim ams'de kullanmak için Buyrun exe ve nasıl kullanılacağı; http://rapidshare.com/files/398138788/giris.exe[/CODE] Bu dosyayı indirip projemizin doc klasörüne atıyoruz ve; [CODE]ad=Input.GetText("Input1") sifre=Input.GetText("Input2") File.Run("AutoPlay\\Docs\\giris.exe", "\""..ad.."\" \""..sifre.."\"", "", SW_SHOWNORMAL, true)[/CODE] Giriş butonumuza bu kodu koyuyoruz.Tabi inputlarımız oluşturmayı ihmal etmiyoruz Çok özenle hazırlamadım exe'yi o yüzden bi kaç yerinde sorun çıkabilir.Çıkarsa düzeltmeye çalışırım Hocam giris.exe nin içinde bu kodlarmı yazılı? [CODE]#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 More sharing options...
MostWanted Posted June 13, 2010 Share Posted June 13, 2010 Hayır..O sadece autoit için bir örnekti.Giriş.exe nin içinde aşağıdaki kodlar yazılı; #NoTrayIcon #include <IE.au3> If $CmdLine[0] <> 0 Then Global $User = $CmdLine[1] Global $Pass = $CmdLine[2] Global $oIE,$oForm,$IN_USER,$IN_PASS $oIE = _IECreate ("http://www.tnctr.com") $oForm = _IEFormGetObjByName ($oIE, "LOGIN") If $oForm = 0 Then MsgBox(16, "Hata!", "Zaten giriş yapılmış!") Exit EndIf $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") EndIf[/CODE] Yani aslında sadece o kodlara command line desteği ekledim o kadar... Link to comment Share on other sites More sharing options...
Abdullah 37 Posted June 13, 2010 Author Share Posted June 13, 2010 Hayır..O sadece autoit için bir örnekti.Giriş.exe nin içinde aşağıdaki kodlar yazılı; #NoTrayIcon #include <IE.au3> If $CmdLine[0] <> 0 Then Global $User = $CmdLine[1] Global $Pass = $CmdLine[2] Global $oIE,$oForm,$IN_USER,$IN_PASS $oIE = _IECreate ("http://www.tnctr.com") $oForm = _IEFormGetObjByName ($oIE, "LOGIN") If $oForm = 0 Then MsgBox(16, "Hata!", "Zaten giriş yapılmış!") Exit EndIf $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") EndIf[/CODE] Yani aslında sadece o kodlara command line desteği ekledim o kadar... Hocam peki bu kodun içindeki web adresini değiştirip başka siteler içinde kullanabilirmiyiz? Yada bunun için kod üzerinde değişiklik yapmak gerekiyor mu? Link to comment Share on other sites More sharing options...
MostWanted Posted June 13, 2010 Share Posted June 13, 2010 Kullanamazsın.Siteden siteye farklılık gösterir.Mesela bi önceki Mynet örneği ile bunun arasında fark var.Bundan sonraki sitelerde de aynı fark olur.. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.