Rey94 Posted June 21, 2015 Author Share Posted June 21, 2015 Seeing as how you're "not new to scripting languages or programming" you should have that done within the hour.I am mostly used with Linux scripts, bash (or sh, depending what you use/consider), and some windows command scripts, but didn't interact with the browser from scripts.So, with a script like this, it would be possible to get the answer automatically in the same windows the question appears? I will do a little research and if I can, I will try to find some video example or create one myself. Link to comment Share on other sites More sharing options...
JohnOne Posted June 21, 2015 Share Posted June 21, 2015 Great stuff. You'll get the help you need when you post any problems with your script.Don't forget to look at the examples for 99% of functions in the help file. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Rey94 Posted June 21, 2015 Author Share Posted June 21, 2015 So the help file from IE should be enough? Also, the arguments are passed just like in linux, like... $Number? I will need some guidance (not necesarely now, but maybe in a week) to make it run, maintain it in background and closing it, rerun it, and so on. Link to comment Share on other sites More sharing options...
JohnOne Posted June 21, 2015 Share Posted June 21, 2015 You should look at the beginners link in my sig. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted June 21, 2015 Moderators Share Posted June 21, 2015 I think you're looking for my patented Every Answer to Every Question Ever script $input = InputBox( "Every answer to every question - Ever", "Please enter type in your question." ) ShellExecute ("http://www.lmgtfy.com/?q=" &$input) jchd and water 2 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Rey94 Posted June 21, 2015 Author Share Posted June 21, 2015 (edited) I think you're looking for my patented Every Answer to Every Question Ever script $input = InputBox( "Every answer to every question - Ever", "Please enter type in your question." ) ShellExecute ("http://www.lmgtfy.com/?q=" &$input) Well, the script simply searches for what you enter. What I need is something that collects the answer from the first link and gives it to me in the same window. The script must detect the question and get the answer. Edited June 21, 2015 by Rey94 Link to comment Share on other sites More sharing options...
Rey94 Posted June 22, 2015 Author Share Posted June 22, 2015 (edited) Something like this is what I was talking about. Edited June 22, 2015 by Rey94 Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted June 22, 2015 Moderators Share Posted June 22, 2015 Well, the script simply searches for what you enter. What I need is something that collects the answer from the first link and gives it to me in the same window. The script must detect the question and get the answer.My post was an attempt to (with humor) point out that what you're asking is a lot more complicated than you seem to believe, made all the more so by your how vague your request is. Too subtle on my part, perhaps... "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Rey94 Posted June 22, 2015 Author Share Posted June 22, 2015 (edited) Yeah, I saw the "irony", but I just posted a video about how something like this has been made. Edited June 22, 2015 by Rey94 Link to comment Share on other sites More sharing options...
Rey94 Posted June 22, 2015 Author Share Posted June 22, 2015 You should look at the beginners link in my sig.How difficult would it be to do something just as shown in the video? The difference would be that the "game" would be in browser, for example chrome. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted June 22, 2015 Moderators Share Posted June 22, 2015 Didn't bother watching the video, but if this is for a game as you seem to indicate, you should check the forum rules before proceeding... "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Rey94 Posted June 22, 2015 Author Share Posted June 22, 2015 Didn't bother? Than why do you say that my indications were ambiguous?... There were all the "infos" required. It's for a website, to provide feedbacks and answers, and the system is almost the same with the way it happens in the video (the way the questions appear). Link to comment Share on other sites More sharing options...
Developers Jos Posted June 22, 2015 Developers Share Posted June 22, 2015 (edited) @Rey94, I bothered to look at the first 20 seconds of it and just saw a funny language and a Game like display, so my question is similar to Jlogan3o13:Did you read our forum rules and is this for a game?Jos Edited June 22, 2015 by Jos 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...
Rey94 Posted June 22, 2015 Author Share Posted June 22, 2015 I read some, but not all, it's true. But I know the one regarding games. As I said before, is for my own website. Link to comment Share on other sites More sharing options...
JohnOne Posted June 22, 2015 Share Posted June 22, 2015 What have you got so far? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
iamtheky Posted June 23, 2015 Share Posted June 23, 2015 (edited) i see some multiple choice questions, with both the questions and answers preloaded, and pretty much consists of a $sRealAnswer = $sInputbox type validation. Maybe they are terribly gathered from the internet such that there are questions with a single multiple choice answer, but it is not "looking them up". I would be interested also in how you are going to write this in autoit and then publish it on your website in any kind of interactive manner. Edited June 23, 2015 by boththose ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
Rey94 Posted June 23, 2015 Author Share Posted June 23, 2015 What have you got so far?Well, I got something to read a text from the screen, but I need to integrate it and work on a site, because for now, it just pops the "file view" option, because I can't run it without executing in by hand.#include <MsgBoxConstants.au3>Example()Func Example() ; Retrieve the window text of the active window. Local $sText = WinGetText("[ACTIVE]") ; Display the window text. MsgBox($MB_SYSTEMMODAL, "", $sText)EndFunc ;==>Example 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