Okay thank you im going to try and add some stuff and I will ask for help if need thank you so much I really have trouble working the inetget commands and this is has helped me greatly
Then you just need to change the regex in the example iamtheky posted. like this:
#include <INet.au3>$Question=inputbox("Adding Machine","What is the math problem you would like our software to solve.");$URL=StringReplace($Question,"+","%2B")$URL1=StringReplace($URL,"=","%3D")$Source=_inetgetsource ("http://www.wolframalpha.com/input/?i="&$URL1)$AnswerArray=StringRegExp($Source,'src="(.*?)" id="i_0200_1"',1)ifnotisarray($AnswerArray)Then$AnswerArray=StringRegExp($Source,'src="(.*?)" id="i_0300_1"',1)Endifmsgbox(0,'Answer',$AnswerArray[0])
That still returns a array error.lol
Why is that a problem?
You should probably sign up for a free Wolfram ID, so you can use their interactive API though.
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!
Recommended Posts
Medic873
Okay thank you im going to try and add some stuff and I will ask for help if need thank you so much I really have trouble working the inetget commands and this is has helped me greatly
Link to comment
Share on other sites
Tvern
You should probably sign up for a free Wolfram ID, so you can use their interactive API though.
Link to comment
Share on other sites