Snax Posted December 29, 2006 Posted December 29, 2006 I saw plenty of messages regarding the troubles with using ControlSend and ended up using ControlSendPlus to solve some of them myself however, ControlSendPlus seems to have some issues as well. Every so often when I am using it to put a long path name in, it substitutes the | (pipe) for a \ (back slash) and a ; for a : requiring me to babysit the thing.Does anyone know of a way around this?Hasn't anyone come up with a way to paste clipboard contents to a window control?Thanks!
Valuater Posted December 29, 2006 Posted December 29, 2006 maybe... Run("notepad.exe") WinWaitActive("") Send("this is a pipe " & Chr(124) & @CRLF) Sleep(500) Send("this is a comma " & Chr(130) & @CRLF) $Text = "this is a string copied to the clipboard then pasted/sent to notepad" ClipPut($Text) Sleep(500) Send(ClipGet(), 1) ; 1 = raw Sleep(2000) 8)
Snax Posted December 29, 2006 Author Posted December 29, 2006 Thanks Valuater,That worked however it's still copying each character one at a time. This is what I really wanted... I don't know why I didn't think of this before.... embarrassingly simple:$Text = "this is a string copied to the clipboard then pasted/sent to notepad"ClipPut($Text)Sleep(500)Send("^v")
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now