Jump to content

Send a line of text ot whaterve program is open


Recommended Posts

  • Developers

Works fine here.... are you sure the intended program has the focus at the time your script runs?

Edited 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

What I want to do is be able to goto any web page position the cursor and the run a scritpt, in order to be able to fill in the blanks on lets say a name and address. I dont know in advance what web page is active or what browser that may be active.

Link to comment
Share on other sites

Rather use a hotkey then.

Have the script run in the background and when you select the box you press the appropriate hotkey.

Just don't make the hotkey conflict with another program's hotkey

ex: (the hotkey is Ctrl+1)

HotKeySet ("^1","type")

while 1
    sleep(15)
WEnd


Func type()
    Send("This is a test")
EndFunc
Edited by hawky358
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...