Ram Posted January 23, 2007 Share Posted January 23, 2007 I am trying to paste the copied number in msgbox but every time I get 1 in the msgbox. This is what I did. I copied 5 manually and executed the below script $a = Send("^p") MsgBox (0,"Test", $a) I get a msgbox as 1 and not 5. Can you let me know what is going wrong here? Awaiting your response! Link to comment Share on other sites More sharing options...
strate Posted January 23, 2007 Share Posted January 23, 2007 I am trying to paste the copied number in msgbox but every time I get 1 in the msgbox.This is what I did. I copied 5 manually and executed the below script $a = Send("^p")MsgBox (0,"Test", $a)I get a msgbox as 1 and not 5.Can you let me know what is going wrong here?Awaiting your response!What are you trying to get the valuse of 5 from? INI TreeViewA bus station is where a bus stops, a train station is where a train stops. Onmy desk I have a work station... Link to comment Share on other sites More sharing options...
Helge Posted January 23, 2007 Share Posted January 23, 2007 ^p, as in Ctrl+P, as in print ? Are you sure you're not confusing P with V ? Anyway, the "1" you're getting in your messagebox is actually the return-value from Send, which is always the same. I think you want to take a look at ClipGet instead. $a = ClipGet() MsgBox(0, "Test", $a) Link to comment Share on other sites More sharing options...
Ram Posted January 23, 2007 Author Share Posted January 23, 2007 (edited) Ooops. You are right.. I got confused.. p and V ... my bad...!! ClipGet stuff works fine.. Thanks! Edited January 23, 2007 by Ram 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