Jump to content

Local $sAnswer = InputBox


 Share

Recommended Posts

@dersiniar

If $sAnswer = "email@domain.com" Then
    ; Do something
Else
    MsgBox($MB_ICONERROR, "", "User not registered.")
EndIf

You can also use StringInStr(), StringRegExp(), and other Str* functions to search for an email.
By the way, if you have any question, please post your entire code :)

Click here to see my signature:

Spoiler

ALWAYS GOOD TO READ:

 

Link to comment
Share on other sites

2 minutes ago, Nine said:

How would YOU compare his email with all emails registered in that site ?

no idea how to do it

Func _user()
Local $sAnswer = InputBox("INFO", "What is your email you have registred with?", "", "", 300, 300, 400,400)
EndFunc

thats all i have made. if emails wont mach with boxfield and site then this Func cant be finished

Link to comment
Share on other sites

6 minutes ago, dersiniar said:

no idea how to do it

*This should be is the Thread title becose this is your problem

 

How to do it ?

11 minutes ago, FrancescoDiMuro said:

@dersiniar
As I've said, you need a For...Next loop to do that.
Just do it ;)

 

Try something.

And look my avatar.

Edited by caramen

My video tutorials : ( In construction )  || My Discord : https://discord.gg/S9AnwHw

How to Ask Help ||  UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote

Spoiler

 Water's UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Link to comment
Share on other sites

3 minutes ago, dersiniar said:

it have to compare if entered email addres and adress on website are same. if same then EndFunc if not same then MsgBox

If there will be multiple emails later in website, program have to find if entered email mach with one on the website

Ok got it thanks.  Now I see that there is a list view of the email addresses.  It will show some number of emails not all I suppose (I mean in the future) or will it show all somehow ?

Link to comment
Share on other sites

16 minutes ago, Nine said:

Ok got it thanks.  Now I see that there is a list view of the email addresses.  It will show some number of emails not all I suppose (I mean in the future) or will it show all somehow ?

soo it kinda shold work like in IE   ctrl+f  you fill  in tat email adress and it have to find it from wepage.  myabe i change those emails into keys or smthhing else. it just have to find same txt that has entered into InputBox and find it from website.

Link to comment
Share on other sites

@dersiniar
Use _IE* functions to get all the information you need from your website.
And please, read Forum Etiquette, since this is not the place where you ask for the code, and someone codes for you.
As you did in the first post, post your code and tell us what's not working, so we can see if we can help you.

Click here to see my signature:

Spoiler

ALWAYS GOOD TO READ:

 

Link to comment
Share on other sites

Yes I understand that.  My question was not that.  I asked you HOW IN THE FUTURE the list of the members will show ?  When there is tens or hundreds of them,  will it show on a single page, or will there be multiple pages of it ?

Link to comment
Share on other sites

22 minutes ago, Nine said:

Ok got it thanks.  Now I see that there is a list view of the email addresses.  It will show some number of emails not all I suppose (I mean in the future) or will it show all somehow ?

lets say i type in inputbox "Google offered in" press enter and it go to www.google.com and finds that txt there. 

if it finds then funcend if it does not find then it gives msgbox

Link to comment
Share on other sites

Finaly found what i need, now how i can recode it to not open and not navigate to given site. or theres no way to do so? or if it does then maybe gui 1, 1, 1, 1?

; demonstration to find chracters that change between to standard points
; or just find a string
#include <IE.au3>
#include <String.au3>

#Region --- IE-Builder generated code Start ---

$oIE = _IECreate()

;------------- User input --------------
_IENavigate($oIE, "http://www.autoitscript.com/") ; web address
$Find = "autoit "  ; my info shows after this line... or just find this line
$Before = "- the home "     ; my info shows before this line... or set as ""
; ------------ End User input -------------
Sleep(1000)
$body = _IEBodyReadHTML($oIE)
$sloc = @TempDir & "\stest.txt"
FileDelete($sloc)
FileWrite($sloc, $body)
$sfile = FileOpen($sloc, 0)
$num = 0
While 2
    $num = $num + 1
    $sline = FileReadLine($sfile, $num)
    If @error Then
        MsgBox(262208, "Fail", "The string was NOT found   ")
        FileClose($sfile)
        Exit
    EndIf
    If StringInStr($sline, $Find) Then
        MsgBox(64, "Success", "The string " & $Find & " was found    " & @CRLF & " on line # " & $num, 5)
        If $Before = "" Then ExitLoop
        $Found = _StringBetween($sline, $Find, $Before)
        MsgBox(64, "Found", "The string is *" & $Found[0] & "*    ", 5)
        ExitLoop
    EndIf
WEnd

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...