Snax Posted December 29, 2006 Share 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! Link to comment Share on other sites More sharing options...
Valuater Posted December 29, 2006 Share 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) Link to comment Share on other sites More sharing options...
Snax Posted December 29, 2006 Author Share 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") Link to comment Share on other sites More sharing options...
Valuater Posted December 29, 2006 Share Posted December 29, 2006 Welcome... glad you got it! *0 Link to comment Share on other sites More sharing options...
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