dersiniar Posted December 27, 2018 Share Posted December 27, 2018 Hellows~~ I made a program, it have to check if user has registred on a website before it continues. Local $sAnswer = InputBox("Question", "What is your email you have registred?", "", "", _ - 1, -1, 0, 0) Now how i can make it to find if email entered into inputbox is at specific website Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted December 27, 2018 Share Posted December 27, 2018 @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: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
dersiniar Posted December 27, 2018 Author Share Posted December 27, 2018 umm It have to compare email adress entered into InbutBox with emails listed on specific website. Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted December 27, 2018 Share Posted December 27, 2018 @dersiniar So you need a For...Next loop to compare each of your addresses with the one inserted by the user Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
dersiniar Posted December 27, 2018 Author Share Posted December 27, 2018 if user inserts hes email into field, then my program have to check if same email is registred in www.smthing.com. if it finds email adress listed there, then program continues, if not the msgbox. Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted December 27, 2018 Share Posted December 27, 2018 @dersiniar As I've said, you need a For...Next loop to do that. Just do it Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
Nine Posted December 27, 2018 Share Posted December 27, 2018 How would YOU compare his email with all emails registered in that site ? “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
dersiniar Posted December 27, 2018 Author Share Posted December 27, 2018 1 minute ago, Nine said: How would YOU compare his email with all emails registered in that site ? https://dersiniar.webs.com/apps/members/ Link to comment Share on other sites More sharing options...
dersiniar Posted December 27, 2018 Author Share Posted December 27, 2018 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 More sharing options...
caramen Posted December 27, 2018 Share Posted December 27, 2018 (edited) 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 December 27, 2018 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 - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki Link to comment Share on other sites More sharing options...
Nine Posted December 27, 2018 Share Posted December 27, 2018 Ok currently there is only ONE member ? Do you want to simply compare the input box with that specific member ? “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
dersiniar Posted December 27, 2018 Author Share Posted December 27, 2018 y 1 minute ago, Nine said: Ok currently there is only ONE member ? Do you want to simply compare the input box with that specific member ? yes Link to comment Share on other sites More sharing options...
Nine Posted December 27, 2018 Share Posted December 27, 2018 Just now, dersiniar said: yes Not very helpful as an answer, it is yes to what exactly, explainations please “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
dersiniar Posted December 27, 2018 Author Share Posted December 27, 2018 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 Link to comment Share on other sites More sharing options...
Nine Posted December 27, 2018 Share Posted December 27, 2018 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 ? “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
dersiniar Posted December 27, 2018 Author Share Posted December 27, 2018 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 More sharing options...
FrancescoDiMuro Posted December 27, 2018 Share Posted December 27, 2018 @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: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
Nine Posted December 27, 2018 Share Posted December 27, 2018 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 ? “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
dersiniar Posted December 27, 2018 Author Share Posted December 27, 2018 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 More sharing options...
dersiniar Posted December 27, 2018 Author Share Posted December 27, 2018 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? expandcollapse popup; 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now