elpatron Posted February 17, 2019 Share Posted February 17, 2019 hello i need a code for the above title. for example i am running a while loop: do this do this if it contains a specific text ("specific text") then do this else do this Hope you have understood me. thanks in advance! Link to comment Share on other sites More sharing options...
elpatron Posted February 17, 2019 Author Share Posted February 17, 2019 With do "this" I mean a specific task. E.g. restart the program Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted February 17, 2019 Share Posted February 17, 2019 4 minutes ago, elpatron said: i need a code for the above title. Then do it and post 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...
elpatron Posted February 17, 2019 Author Share Posted February 17, 2019 Just now, FrancescoDiMuro said: Then do it and post it What's that kind of an answer? If I could do it then I wouldn't ask here for help. Put mind in gear before opening mouth! Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted February 17, 2019 Share Posted February 17, 2019 @elpatron Since you are a new member, I suggest you to read carefully this and this before posting 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...
elpatron Posted February 17, 2019 Author Share Posted February 17, 2019 1 minute ago, FrancescoDiMuro said: @elpatron Since you are a new member, I suggest you to read carefully this and this before posting Quote If you cannot post the code for business reasons, create a script that reproduces the issue you are seeing. That's exactly what I did. I just need the name of the function. It should just read a text(or at least contain specific words) and then I can do it myself with the if function. Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted February 17, 2019 Share Posted February 17, 2019 The function you are looking for is StringInStr() 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...
elpatron Posted February 17, 2019 Author Share Posted February 17, 2019 5 minutes ago, FrancescoDiMuro said: The function you are looking for is StringInStr() Thanks a lot! Apprectiate it. Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted February 17, 2019 Share Posted February 17, 2019 @elpatron You're welcome If you need other assiastance, don't hesitate to post your questions and your script. elpatron 1 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...
elpatron Posted February 17, 2019 Author Share Posted February 17, 2019 40 minutes ago, FrancescoDiMuro said: @elpatron You're welcome If you need other assiastance, don't hesitate to post your questions and your script. Hey it's not working how I imagined. For your function I need to define a string. But I want that the program searches on an application for a specific word. Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted February 17, 2019 Share Posted February 17, 2019 @elpatron There are plenty of functions and UDFs to get some text form an application. Which application are you trying to get text from? 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...
elpatron Posted February 17, 2019 Author Share Posted February 17, 2019 1 minute ago, FrancescoDiMuro said: @elpatron There are plenty of functions and UDFs to get some text form an application. Which application are you trying to get text from? Firefox Link to comment Share on other sites More sharing options...
Dwalfware Posted February 17, 2019 Share Posted February 17, 2019 inetread inetget Link to comment Share on other sites More sharing options...
Dwalfware Posted February 17, 2019 Share Posted February 17, 2019 Local $Inetdata = _INetGetSource("http://www.somewebsite.com") then use StringInStr() search the $Inetdata for what your looking for. hope it helps Link to comment Share on other sites More sharing options...
Developers Jos Posted February 17, 2019 Developers Share Posted February 17, 2019 Welcome to the AutoIt forum. Unfortunately you appear to have missed the Forum rules on your way in. Please read them now - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked. See you soon with a legitimate question I hope. The Moderation team 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...
Recommended Posts