Sign in to follow this  
Followers 0
Dtvscrotes

Double TYPING

5 posts in this topic

#1 ·  Posted (edited)

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

Edited by Dtvscrotes

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

2 instances of Notepad will both contain Edit Instance 1.

Share this post


Link to post
Share on other sites

This will send the string to ALL notepad windows.

$list = WinList ("[CLASS:Notepad]")
For $X = 1 to $list[0][0]
    ControlSend ( $list[$X][1], "","[CLASSNN:Edit1]", "TEST")
Next

Share this post


Link to post
Share on other sites

#5 ·  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

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