Iranian Programming Support

Welcome To Csharp TeaM Forum.
For Use All Forum Posts And See Links
Please Register
Thanks
www.Programming.MrForum.net
Csharp TeaM Administrator
Iranian Programming Support

Csharp TeaM

Top posting users this month

Latest topics

» html to c# source code convert help
by launchar Tue Dec 06, 2016 7:22 am

» User input
by nesraz Sun Dec 20, 2015 8:39 am

» darkhaste source mediaplayer baraye b4a
by parham01 Tue Dec 15, 2015 10:31 am

» Tolide esme file gheire tekrari
by sajjad3011 Fri Jul 31, 2015 5:00 pm

» 368 library basic 4 android
by alimusavi71 Fri Jul 17, 2015 6:45 pm

» نرم افزار دریافت لایسنس آنتی ویروس نود 32
by programmer-x Wed Jul 15, 2015 3:19 pm

» help for java applications
by launchar Wed Jul 01, 2015 12:25 am

» Nimbuzz id Maker auto Captcha & Auto add FlooD & id BloCker
by briant Sat Jun 20, 2015 12:46 pm

» best mobile server v.1.0.0 persian edition
by programmer-x Fri Jun 19, 2015 12:41 am

» plz help me i neez xml code for spy bot
by alone Sun Mar 22, 2015 9:30 pm

» Dialogs Lib {Basic 4 Android}
by abdo0o Mon Mar 09, 2015 4:02 pm

» Room + PV Flooder Nimbuzz 2015
by sholeh Sat Feb 21, 2015 8:06 am

» PV Flooder Nimbuzz 2015
by sholeh Sat Feb 21, 2015 8:03 am

» سی شارپ سورس
by tr0 Wed Dec 24, 2014 12:15 pm

» help plz auto maker ids
by launchar Wed Dec 17, 2014 5:57 pm

» Join Multi Id To Room + Captcha [ Badbuzz Team ] In Seri Ba AgsXMPP !!
by abdo0o Fri Dec 12, 2014 4:47 am

» Amoozesh Ersale Sms Dar B4a
by abdo0o Fri Dec 12, 2014 4:43 am

» help me pls mehran brother
by launchar Wed Dec 03, 2014 6:36 pm

» plz help code Refresh captcha join Room
by ayad53 Wed Dec 03, 2014 12:24 pm

» please Help Me For AutoCaptchaa kardan IdMaker
by abdo0o Tue Dec 02, 2014 12:12 pm

» source C# bot addlist sender by ==> Alone_051@n.c
by walahazrat Mon Dec 01, 2014 2:34 am

» s2a sender tro help me pls
by walahazrat Mon Dec 01, 2014 2:28 am

» Help For {Data id } C# asixmpp.dll
by abdo0o Sun Nov 30, 2014 11:17 pm

» Help C# {Join & Left With Remoter}
by $iahi Tue Nov 25, 2014 10:31 am

» Source Nimbuzz User Searcher By Mehr,an [ Badbuzz TeaM ]
by waseemmalik Wed Nov 19, 2014 11:35 am


    Load Captcha In B4A

    Share
    avatar
    Emad Arta
    Csharp Admin
    Csharp Admin

    Posts : 118
    Points : 214
    Thanks : 48
    Join date : 2013-08-03
    Age : 24
    Location : Iran,Baloochestan,Iranshahr

    Open Load Captcha In B4A

    Post by Emad Arta on Wed Aug 20, 2014 10:57 am

    Ba Salam
    Omidvaram Haleton KHub Bashe


    Aqa Man To Topic Jamei Ke Marbot Be Gereftanae ElementHa Hala Che By Name Ya Che By Id Bud Niga Kardam Kheyli Chizaro Yad gereftam


    Hala Mikham Age Zahmati Nis Ye Amozesh Kochik Va Ekhtesasi Baraye Load Captcha Begid


    Captchae Load Shude Ro To Kdom Control Be Namayaesh Dar Miyaran?


    Amozesh Mikhama Source Na Mc Az Hame  Sage 
    avatar
    Mehdi izadi
    Administrator
    Administrator

    Posts : 793
    Points : 1182
    Thanks : 288
    Join date : 2013-06-06
    Age : 25
    Location : Iran,Hormozgan,Bandare Lengeh

    Open Re: Load Captcha In B4A

    Post by Mehdi izadi on Wed Aug 20, 2014 11:39 am

    Salam Emad Jan .



    Khob In Site Ro Bebinin:  http://10.8.206.66/



    Load Captchash Injast:




    Code:
    <div style='background-color:White;font-size:10px;width:85px;'><img src="CaptchaImage.axd?guid=971c2aa6-f8d5-4f16-84ca-a7afb5e27c79" border='0' width=100 height=38></div>






    Har Daf'e Ke Site Ro Load Koni Ye Captchaye Jadid Behet Mide Ke Linke Jadidi Ham Dare.



    Khob Kare Ma Ine :

    1- Az Library Hamun WebViewExtras Ke Vase Dl Gozashte Shode Va HttpUtils2 Ro Add Mikonim.

    2-




    Code:
       Dim HttpJob1 As HttpJob
       Public WebViewExtras1 As WebViewExtras
       Private WebView1 As WebView
            Private imgCap As ImageView



    ( Yadet Nare ke ImageView Va WebView Ro Add Koni Az Design

    Dar Activity_Create Ham:



    Code:
            HttpJob1.Initialize("MyJob1",Me)
       WebViewExtras1.addJavascriptInterface(WebView1,"B4A")
       WebViewExtras1.addWebChromeClient(WebView1,"")
       WebView1.LoadUrl("http://10.8.206.66/")



    Khob Ta Inja Ke Mesle Gereftane GetElementByName O ... Hast Faghat Yek HttpJob1 Ro

    Ezafe Kardim .




    Miaeim Migim Ke Vaghti Ke WebView Kamel Load Shod Kolle Html Code Haro Process_HTML Begire.




    Code:
    Sub WebView1_PageFinished (Url As String)
    WebViewExtras1.executeJavascript(WebView1, "B4A.CallSub('Process_HTML', true, document.documentElement.outerHTML)")
    End Sub



    Khob Hala Process_HTML Ro Tarif Mikonim:




    Code:
    Sub Process_HTML(Html As String)
        Html = Html.Replace("""","'")  <<<~~~~ Niaz Be Tozih Nadare
       Dim captcha As String <<< Inam Ke Behtar Az Man Midooni Chie
       captcha  = Html.SubString(Html.IndexOf("'CaptchaImage.axd?guid=")+1)
       captcha = "http://10.8.206.66/"&captcha.SubString2(0,captcha.IndexOf("'")-0)
       HttpJob1.Download(captcha)
    End Sub



    Khatte Sevvom Ro Ye Tozihi Dar Barash Bedam Albate Motmaenan Mifahmi Khodet.

    Html As String Ro Ke Ma Tarif Kardim Toosh Tamame Html Code Haye Un Source Code Siti Ke Load Shode

    Vojood Dare. Miaeim Migim Az 1 Dune Harf Bad Az 'CaptchaImage.axd?guid= Vase Ma Joda Kone

    Ta : captcha.SubString2(0,captcha.IndexOf("'")-0)

    Dalile Inke 1 Dune Harf Bad Az 'CaptchaImage.axd?guid= Ro Darim Migirim Vase Ine Ke In Ghesmat

    Tooye Tamame Captcha Haye In Site Mesle Hamdg Hastan.

    Dar Ghesmate HttpJob1.Download(captcha) Ham Migim Kt HttpJobi Ke Tarif Kardim Captcha Ro

    Ke Be Soorate String Tarif Kardim Download Kone.

    Hala Voide Downloadesh:

    Code:
    Sub JobDone (Job As HttpJob)
       imgCap.Bitmap = Job.GetBitmap
       imgCap.Gravity = Gravity.FILL
    End Sub



    Vaghti Ke Download Shod imgCap Ke Esme ImageView E Ma Hast Ro Mosavie Job.GetBitmap Gharar Midim

    Va imgCap.Gravity = Gravity.FILL Ham Vase Ine Ke Captcha Kolle ImageVew Ro Begire. Tooye

    Barname Nevisi C# Be FILL Migoftim Streach.




    Soali Ya Moshkeli Dashti Dar Khedmatam Boos






    Lotfan Baraye Tashakor Va Emtiaz Dehi Az + Estefade Konid
    avatar
    Mehdi izadi
    Administrator
    Administrator

    Posts : 793
    Points : 1182
    Thanks : 288
    Join date : 2013-06-06
    Age : 25
    Location : Iran,Hormozgan,Bandare Lengeh

    Open Re: Load Captcha In B4A

    Post by Mehdi izadi on Wed Aug 20, 2014 11:44 am

    Rasti Age Dar Akhare Kar Khasti Ke WebView Ro Az Design Add Nakoni Va Faghat ImageView Bashe

    Ke WebView Tooye Softet Neshun Dade Nashe WebView Ro Az Design Pak Kon.

    FagHat Tooye Sub_globals Yadet Nare WebView1 Ro Tarif Koni.

    Tooye Create Faghat In Ro Ezafe Kon:


    Code:
    WebView1.Initialize("WebView1")






    Lotfan Baraye Tashakor Va Emtiaz Dehi Az + Estefade Konid
    avatar
    Emad Arta
    Csharp Admin
    Csharp Admin

    Posts : 118
    Points : 214
    Thanks : 48
    Join date : 2013-08-03
    Age : 24
    Location : Iran,Baloochestan,Iranshahr

    Open Re: Load Captcha In B4A

    Post by Emad Arta on Wed Aug 20, 2014 12:26 pm

    Man Behet CHi Begam  Boos  KHeyli KHeyli Mamnon 


    Vaghaan Damet Garm Mehdi Jon KHeyli Rasa Va Shiva Bud 
    Mc Mehdi Jan  +   Boos 

    Baad Ye Chizi Mehdi 
    Man Age Bekham Javab Captcha Ro Ba UserName Va Pasword Send Kunam Bayad Chika kunam ?
    Yani Hamun Submit Kardan!
    avatar
    Mehdi izadi
    Administrator
    Administrator

    Posts : 793
    Points : 1182
    Thanks : 288
    Join date : 2013-06-06
    Age : 25
    Location : Iran,Hormozgan,Bandare Lengeh

    Open Re: Load Captcha In B4A

    Post by Mehdi izadi on Wed Aug 20, 2014 2:30 pm

    Fadaye To Boos To Vase In Forum Zahmat Haye Kheili Kheili Ziadi Keshidi Ke Gheire Ghabele Jobrane.
    Masalan In Code Sumbit Bashe:

    Code:
    <input type="submit" name="LoginButton" value="ورود به سیستم" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;LoginButton&quot;, &quot;&quot;, true, &quot;Login1&quot;, &quot;&quot;, false, false))" id="LoginButton" class="button" style="font-family:tahoma;font-size:10px;height:23px;width:132px;" />


    Ham Az Tarighe Name Mitoonim Va Ham Az Tarighe ID.
    Jofteshun Ham Esmeshun Ine Age Tooye Code Ha Deghat Koni: LoginButton

    Faghat Kafie In Code Ro Be Click E Buttoni Bedim Ke Tooye Soft Gharar Dadim:

    Code:
    WebViewExtras1.executeJavascript(WebView1,"document.getElementById('LoginButton').click()")

    Age Doost Dashti Az Tarighe ByName Ham Mitooni Anjamesh Beshi.






    Lotfan Baraye Tashakor Va Emtiaz Dehi Az + Estefade Konid

    Sponsored content

    Open Re: Load Captcha In B4A

    Post by Sponsored content


      Current date/time is Wed Aug 23, 2017 12:47 pm