Jump to content

User input, pasted into notepad


sisdlm
 Share

Recommended Posts

  • Developers

Extremely new to autoit and scripting in general, looking for some assistance.

I want to create an input box to prompt the user for ? then paste that users input into an active notepad session. Please help the newbie... :lmao:

Have a look at the included example notepad1.au3 in C:\Program Files\AutoIt3\Examples.

;)

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

  • Moderators

Extremely new to autoit and scripting in general, looking for some assistance.

I want to create an input box to prompt the user for ? then paste that users input into an active notepad session. Please help the newbie... :lmao:

Try this:

$Input = InputBox("Title", "Enter whatever")
Run("notepad")
WinWaitActive("Untitled - Notepad")
ControlSend("Untitled - Notepad", "", "Edit1", $Input)
Link to comment
Share on other sites

Extremely new to autoit and scripting in general, looking for some assistance.

I want to create an input box to prompt the user for ? then paste that users input into an active notepad session. Please help the newbie... :lmao:

Sure thing! Welcome to the fourms btw... You need to research: InputBox() ClipGet() Send()/ClipPut()

[quote] Gilbertson's Law: Nothing is foolproof to a sufficiently talented fool.Sandro Alvares: Flaxcrack is please not noob! i can report you is stop stupid. The Post[/quote]I made this: FWD & MD5PWD()

Link to comment
Share on other sites

Welcome to Autoit....

You should really see this great demo for newbies

http://www.autoitscript.com/forum/index.ph...opic=21048&hl=#

I just wrote a great one for a demonstarion

but this is what you asked for

$Input = InputBox("My Input Box","Please type in your text")

Run("Notepad.exe")
WinActivate("")

Sleep(200)
Send($Input)

Enjoy!!!

8)

EDIT

man... i must be getting slow...lol

Edited by Valuater

NEWHeader1.png

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!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...