korasoglu Posted April 8, 2019 Share Posted April 8, 2019 (edited) İni Dosyasını Okuma İşlemi Arkadaşlar ben bir siteye Kullanıcı Adı ve şifre girişi yapmak istiyorum ama kullanıcı ad ve şifreyi yanındaki iniden alması gerekiyor. Sleep(5000) Send("xxxxxxx") Send("{TAB}") Send("xxxxxxx") Send("{TAB}") Send("{ENTER}") inimiz şöyle olsa [Kullannici] Ad Soyad gibi olsa bu kod istediğimi yapıyor fakat aynı zamanda chrome açık değilse açmasıni (www.google.com açmasını) ve işi bitincede kapanmasını istiyorum yardımlarınızdan dolayı teşekkür ederim. Edited April 8, 2019 by korasoglu Quote Link to comment Share on other sites More sharing options...
darendeli Posted April 8, 2019 Share Posted April 8, 2019 ini degilde input olusturalım ne yazarsan o kullanıcı adı ve sifreyi yazsın Olurmu Quote Link to comment Share on other sites More sharing options...
korasoglu Posted April 8, 2019 Author Share Posted April 8, 2019 Ben autoit daha sağlıklı olur düşüncesiyle bu yolu tercih ettim ama bu dile uzak olduğum için c# yaptım isteyen olursa yardımcı olabilirim. Not: Yorumu olanlar yazsınki autoitt nasıl yapılabilir öğrenilsin. Quote Link to comment Share on other sites More sharing options...
Mehmet Posted April 9, 2019 Share Posted April 9, 2019 (edited) En basitinden ini dosyasına yazmak,okumak,silmek vs. $sFilePath = @TempDir & "\LoginNamePass.ini" $skullaniciAd = InputBox("Kullanici ekle", "Kullanici Adı?", "mehmet") $skullaniciSoyAd = InputBox("Kullanici ekle", "Kullanici Soy Adı?", "TNCTR") IniWrite($sFilePath, "Kullanici", "Ad", $skullaniciAd) IniWrite($sFilePath, "Kullanici", "SoyAd", $skullaniciSoyAd) $sReadAd = IniRead($sFilePath, "Kullanici", "Ad", "Default Value") $sReadSoyAd = IniRead($sFilePath, "Kullanici", "SoyAd", "Default Value") MsgBox(0, "", "Kullanıcı Ad: " & $sReadAd & @CRLF & _ "Kullanıcı SoyAd: " & $sReadSoyAd) ShellExecute($sFilePath) ;~ IniDelete($sFilePath, "Kullanici", "Ad") ;~ IniDelete($sFilePath, "Kullanici", "SoyAd") ;~ FileDelete($sFilePath) Edited April 9, 2019 by Mehmet 1 1 Quote Link to comment Share on other sites More sharing options...
korasoglu Posted April 9, 2019 Author Share Posted April 9, 2019 Emeğine sağlık harika bir örnek hazırlamış Buna birde herhangi bir linki açtırabilersem istediğimi karşılar. Normal dosya çalıştırır gibi yaptım olmadı. Quote Link to comment Share on other sites More sharing options...
Mehmet Posted April 10, 2019 Share Posted April 10, 2019 (edited) Eğer bu link get yöntemi ise... $sFilePath = @TempDir & "\LoginNamePass.ini" $skullaniciAd = InputBox("Kullanici ekle", "Kullanici Adı?", "mehmet") $skullaniciSoyAd = InputBox("Kullanici ekle", "Kullanici Soy Adı?", "TNCTR") IniWrite($sFilePath, "Kullanici", "Ad", $skullaniciAd) IniWrite($sFilePath, "Kullanici", "SoyAd", $skullaniciSoyAd) $sReadAd = IniRead($sFilePath, "Kullanici", "Ad", "Default Value") $sReadSoyAd = IniRead($sFilePath, "Kullanici", "SoyAd", "Default Value") MsgBox(0, "", "Kullanıcı Ad: " & $sReadAd & @CRLF & _ "Kullanıcı SoyAd: " & $sReadSoyAd) ;~ ShellExecute($sFilePath) ;~ IniDelete($sFilePath, "Kullanici", "Ad") ;~ IniDelete($sFilePath, "Kullanici", "SoyAd") ;~ FileDelete($sFilePath) _Linkac($sReadAd & " " & $sReadSoyAd) Func _Linkac($sSearch) ShellExecute('https://www.google.com/search?q='& $sSearch) EndFunc Edited April 10, 2019 by Mehmet 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.