Sign in to follow this  
Followers 0
FireShield

Send () +$variable, possible?

15 posts in this topic

Hiya, everyone.

I'm a noob when it comes to scripting, so I've got the following question:

Is it possible to create a script that opens a Input prompt, which in turn returns your input into a Send( );

It should be something like this:

Prompt:

Who is insane?

[you get a line to enter a name]

And then it returns it with

Send ($var is insane.);

Is that possible?

And if so, could someone write me one?

Thanks in advance,

Jazz.

Share this post


Link to post
Share on other sites



I did, I've already given it countless tries, so far I've managed to get a $var (I think, at least) from the prompt, but I can't get it to actually type itself out in Send ( )

It just types Send ( $var is insane.) ;)

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

I did, I've already given it countless tries, so far I've managed to get a $var (I think, at least) from the prompt, but I can't get it to actually type itself out in Send ( )

It just types Send ( $var is insane.) ;)

General observation:

Why is it I only see these type of stupid requests lately ...or is it just me?

Who with a right state of mind asks for this to be Send() ?

Oh, let me guess... we are trying to pull a practical joke .. are we ?

Anyway.. If you want some help ... post your stuff here and asked folks what you are doing wrong ...

Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Here ya go

$Quest=InputBox("Question", "Who is a lazy bugger", "FireShield")
run("notepad.exe")
WinWaitActive("Untitled")
Send($Quest & " is a lazy bugger")

Edit - Minor change

Edited by BigDod


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

Ok a few things.

First of all, I don't see the reason why you slag me off.

Second, thanks BigDod.

And third if I'd explain what I want to use it for you probably wouldn't understand anyways ;)

Thanks again, BigDod!

Share this post


Link to post
Share on other sites

Perhaps this forum could use a sub-section for us noobs. We wouldn't annoy the gurus with our basic questions, and noobs would be able to read other very basic questions posted by other noobs.

Share this post


Link to post
Share on other sites

You should learn the syntax of the language before you try writing anything. $var & "string" concatenates text. $var + 3 adds numbers. Good? Good.

Share this post


Link to post
Share on other sites

Perhaps this forum could use a sub-section for us noobs. We wouldn't annoy the gurus with our basic questions, and noobs would be able to read other very basic questions posted by other noobs.

This has been discussed numerous times, for example http://www.autoitscript.com/forum/index.php?showtopic=35220

I think if the help and search were used a little more vigorously there might be a little less animosity.


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

Hon, your talking with your big words like Search and Help and Animosity and they don't understand. Try to bring it down to how your talk to the toddler.........maybe they will get it then. ;)

so talk how he talks to u?

Share this post


Link to post
Share on other sites

Here's a programming challenge, then, for some of the more experienced folks:

http://www.autoitscript.com/forum/index.ph...=21496&st=0

Check out AIML, then create a simple little Newbie bot, for people to run when they first start out. Create a set of standardized responses , like an interactive FAQ.

I'm sure if someone went out and collected all the more common newbie questions and posted in a thread, then people would answer those questions. After that, it's just a matter of loading the Q&A into AIML format, compiling the bot, and putting a notice somewhere that says "IF YOU ARE NEW, DOWNLOAD THIS REALLY COOL BOT THAT TALKS TO YOU AND TEACHES YOU THINGS" , or something like it.

AIML enables something similar to an interactive FAQ. With a little community effort, I'm certain it could be pulled off, and then you could point a noob to wherever it's linked to. And generate interest in chatbots with Autoit. Hell, I'm absolutely certain that one could even integrate the Help files into a bot.

Anyway, theres one noob's contribution ;)

Share this post


Link to post
Share on other sites

its called Autoit 1-2-3 and it does use sapi's voice com to talk to you and explains it ;)

Share this post


Link to post
Share on other sites

#14 ·  Posted (edited)

its called Autoit 1-2-3 and it does use sapi's voice com to talk to you and explains it ;)

Which is stated in the FAQ in this section of the forum.

I think what probably really aggrivated JdeB is that this same question was asked earlier in this section.

Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

I think what probably really aggrivated JdeB is that this same question was asked earlier in this section.

What aggravates me the most is that there seems to be a tendency lately of new members that register and post a question without spending any time whatsoever to read/learn/search them selves first. and if you look at the OP initial post... Its all kids play probably to play a practical joke on somebody else ...

FireShield, I realise it looks like I am only picking on you, but I am really picking on you AND ALL OTHERS that post stupid questions like this that could easily be solved when you spent 10 minutes in the helpfile learning some basics.

;)


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
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!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0