Sign in to follow this  
Followers 0
wuthless

WinMenuSelectItem and Paste

4 posts in this topic

Hey Guys... I can't seem to get 'WinMenuselectItem' to work with 'Paste' on Notepad (or any other program). I can paste text into the notepad window however I cannot use the actual 'Paste' Function (^v or alt e, then p).

Anybody have any ideas?

Wuthless

ControlSend("Untitled - ", "", "Edit1", "Hello" & @CR)
    MsgBox(0,"", "Paste Complete")  
    WinMenuSelectItem("Untitled - ", "", "&Edit", "&Paste")
    MsgBox(0,"", "But WinMenuSelectItem does not work") 
    ControlSend("Untitled - ", "", "Edit1", "^v" & @CR, 0)  
    MsgBox(0,"", "And Control V does not work")

Share this post


Link to post
Share on other sites



That didn't work. Were you able to get it to work?

Share this post


Link to post
Share on other sites

uhhh... this is Great, but is there an easier way to do it?

Share this post


Link to post
Share on other sites

Lars....

Are you sure you've gotten this to work before? I've tried everything... space, capitalization, etc.

I'm able to get EVERY menu item to work EXCEPT for 'Paste'.

Can you send me the exact code you created to make this work? I don't see what I'm doing wrong here.

Thanks!

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