Jump to content

Recommended Posts

Posted

Send a line of text ot whaterve program is open, Ive tried the following:

Send("{SHIFTDOWN}t{SHIFTUP}his{SPACE}is{SPACE}a{SPACE}test")

But nothig is typed into the text box on a form

Posted

The Send() command "sends" to the active window i.e. it simulates typing on the keyboard so you have to activate the window first

Opt("WinTitleMatchMode", 2)
WinActivate("Note")
Send("{SHIFTDOWN}t{SHIFTUP}his{SPACE}is{SPACE}a{SPACE}test")
Posted

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.

Posted (edited)

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

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
×
×
  • Create New...