Jump to content

Recommended Posts

Posted

I'm trying to set it up so i can type in two separate programs at the same time.

hotkeyset("r","pressr")
func pressr()
send ("r"); active untitled notepad
controlsend("Different-notepad","","edit1","r")
endfunc

thats what i got but it doesnt

work for me plz help

Look up the ID's and Class with Autoit Tool and Use the Command Send Option

Posted (edited)

This is a bit closea but still not sure

hotkeyset("r","pressr")
While 1
    Sleep(10)
WEnd

func pressr()
send ("a"); active untitled notepad
sleep(50)  ;<-------------------------------------------------this helps alot(add sleep, send/sleep/controlsend)
AutoItSetOption("WinTitleMatchMode", 4)
$handle = WinGetHandle("classname=Notepad", "")
 ControlSend($handle, "", "Edit1", "logger")
Endfunc
Edited by Dtvscrotes

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
  • Recently Browsing   0 members

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