Sign in to follow this  
Followers 0
The Prince

Copy Paste

8 posts in this topic

Hi;

I want to copy data from Excel to Java form ; but this form doesn't accept Paste function using Ctrl V;

any suggestions to solve this problem is highly appreciated

WinActivate("Microsoft Excel - Book1") ; Activat input Source Window

Send("^c") ;Copy from A1 cell

WinActivate("Java Form AA") ; Activat Output Window

MouseClick("left", 141,239,1) ;Cell to Paste

Send("^v") ; Pase (not Wrking???)

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

try to use a little timesleep

MouseClick("left", 141,239,1) ;Cell to Paste

sleep(100)

Send("^v") ; Paste

Edit:

ctrl+c on the cell caopy the string BUT and carige return!

try this:

WinActivate("Microsoft Excel - Book1") ; Activat input Source Window

send("x^z")
sleep(50)
send("^c");Copy from A1 cell
sleep(50)
WinActivate("Java Form AA") ; Activat Output Window
MouseClick("left", 141,239,1) ;Cell to Paste
Send("^v") ; Paste
Edited by Cyber

Console Browse: Navigate on the WEB in a textual consoleMultiPing!: Show computer on the lan and/or show the local/remote task, ALL animated!KillaWin: Event executingCryptPage: Crypt your webpage and show only with key

Share this post


Link to post
Share on other sites

It seems that this Java Applet Window doesnt accepts any Past command from window clipboard, so Ctrl V is not working, I try do it manually no result,

Is there any way to paste data copied from any MS. Window application to such a form?

Any hint is appreciated

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

mmh

you had try with

WinActivate("Java Form AA") ; Activat Output Window
MouseClick("left", 141,239,1) ;Cell to Paste
$temp = clipget()
Send($temp) ; Paste
Edited by Cyber

Console Browse: Navigate on the WEB in a textual consoleMultiPing!: Show computer on the lan and/or show the local/remote task, ALL animated!KillaWin: Event executingCryptPage: Crypt your webpage and show only with key

Share this post


Link to post
Share on other sites

Thanks very much Cvber, it works

BestRregards

Share this post


Link to post
Share on other sites

Thanks very much Cvber, it works

BestRregards

Share this post


Link to post
Share on other sites

:whistle:

Good


Console Browse: Navigate on the WEB in a textual consoleMultiPing!: Show computer on the lan and/or show the local/remote task, ALL animated!KillaWin: Event executingCryptPage: Crypt your webpage and show only with key

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