Jump to content

Recommended Posts

Posted

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!

Posted

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...
Posted

^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)
Posted (edited)

Ooops. You are right.. I got confused.. p and V ... my bad...!!

ClipGet stuff works fine..

Thanks!

Edited by Ram

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
×
×
  • Create New...