caramen Posted December 27, 2018 Share Posted December 27, 2018 @Nine @FrancescoDiMuro Why repeat yourself guys... Let him read carefully. Then maybe he will have the great idea of follow pointed help. He got few question not unswered here and few suggestion not even tested... 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...
dersiniar Posted December 27, 2018 Author Share Posted December 27, 2018 please help out with 2 things in this code. First. IE cant be open or seen. maybe let it open in so tiny window that it wont be seen second i cant get $Find = "$sAnswer" to work as it shold be Func _user() Local $sAnswer = InputBox("INFO", "What is your email you have registred with?", "", "", 300, 300, 400,400) $oIE = _IECreate() _IENavigate($oIE, "google.com/") ; web address $Find = "$sAnswer" ; my info shows after this line... or just find this line 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 EndFunc Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted December 27, 2018 Share Posted December 27, 2018 Just now, dersiniar said: please help out with 2 things in this code. Help file is and will always be your best friend. 1 minute ago, dersiniar said: First. IE cant be open or seen. maybe let it open in so tiny window that it wont be seen Did you barely see in the Help file about the functions you are using or you just copy-paste code and wish to get it working? 1 minute ago, dersiniar said: second i cant get $Find = "$sAnswer" to work as it shold be That's because $sAnswer is a variable, so you have to access it without double quotes, which make it a string. 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 1 minute ago, FrancescoDiMuro said: Help file is and will always be your best friend. Did you barely see in the Help file about the functions you are using or you just copy-paste code and wish to get it working? That's because $sAnswer is a variable, so you have to access it without double quotes, which make it a string. bff first i still take baby steps with coding. I look what i need across google, and modify, this is how i learn. help file kinda helps me but not lot cos english explaining isnt that create on me. im not that good in english. allways when i start up with smthing new, ofc i dont know hoew to do it. specialy if autoit help is way difficult for me cos of language. so i learn from google, off from other scripts so i can see how or what is made... why u need to be so full of yourself... if u wanna help, then help or else dont even bother to read if help is asked. No need for be rude! Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted December 27, 2018 Share Posted December 27, 2018 1 minute ago, dersiniar said: why u need to be so full of yourself... If you would care to read at least Forum Etiquette, you can see that we help you with YOUR code; this means that, if you want to be helped, then you need to post YOUR script. The reason why we don't write script for others, is that there's a motto around here: "Give a man a fish, and you feed him for a day; teach a man to fish, and you feed him for a lifetime". So, if you show us that you want to learn instead of keep posting questions ignoring what we're suggesting to you, then you'll get help. I suggested you something... Did you try 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...
dersiniar Posted December 27, 2018 Author Share Posted December 27, 2018 1 minute ago, FrancescoDiMuro said: I suggested you something... Did you try it? I Di didnt even understand what you ment by this. and i posted my code. thats all the code i had. cos im studing this part, iuf i get this, then ill start with project i wanna make Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted December 27, 2018 Share Posted December 27, 2018 (edited) @dersiniar Referring to this post, you made some questions: 1) You don't have any GUI in your script. You just need to set the _IEOpen() like this: _IECreate("yourwebsite", 0, 0) ; The last 0 means "don't show the broswer" 2) $sAnswer is a variable, so, to access to the VALUE of the variable, you need to remove double quotes from your $Find assignment, otherwise $sAnswer is treated litereally as a string, and not its value, so, change this $Find = "$sAnswer" ; my info shows after this line... or just find this line into this $Find = $sAnswer ; my info shows after this line... or just find this line Edited December 27, 2018 by FrancescoDiMuro 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...
Developers Jos Posted December 27, 2018 Developers Share Posted December 27, 2018 13 minutes ago, dersiniar said: why u need to be so full of yourself... if u wanna help, then help or else dont even bother to read if help is asked. No need for be rude! I think you are the one being rude here and advice to change the tone you are singing when you want help from anybody around here. Jos FrancescoDiMuro 1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
dersiniar Posted December 27, 2018 Author Share Posted December 27, 2018 4 minutes ago, FrancescoDiMuro said: @dersiniar Referring to this post, you made some questions: 1) You don't have any GUI in your script. You just need to set the _IEOpen() like this: _IECreate("yourwebsite", 0, 0) ; The last 0 means "don't show the broswer" 2) $sAnswer is a variable, so, to access to the VALUE of the variable, you need to remove double quotes from your $Find assignment, otherwise $sAnswer is treated litereally as it is, and not its value, so, change this $Find = "$sAnswer" ; my info shows after this line... or just find this line into this $Find = $sAnswer ; my info shows after this line... or just find this line Thank you so much. got all of that to work now as i can use. thank you again Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted December 27, 2018 Share Posted December 27, 2018 @dersiniar Happy to have helped, and wish you can learn from that script 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...
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