|
-
Mar 17th, 2009, 06:26 AM
#1
Thread Starter
Hyperactive Member
send key's command
ok i have a textbox that my mouse double click's on so it highlight's the text and i need it to copy that text
sendkeys.send({^+C})
i know it's something like that but it's not working for me i just need to send
ctrl+c to copy it and i dont know the code's if you know please post 
EDIT> k someone gave me the code it's
System.Windows.Forms.SendKeys.Send("^c")
now i need the space key what is the code for it i tried this and it dident work
SendKeys.Send("{SPACE}")
Last edited by tweaker99; Mar 17th, 2009 at 07:31 AM.
-
Mar 17th, 2009, 06:28 AM
#2
Re: send key's command
 Originally Posted by tweaker99
ok i have a textbox that my mouse double click's on so it highlight's the text and i need it to copy that text
sendkeys.send({^+C})
i know it's something like that but it's not working for me i just need to send
ctrl+c to copy it and i dont know the code's if you know please post 
Is this textbox within your app?
-
Mar 17th, 2009, 07:33 AM
#3
Thread Starter
Hyperactive Member
Re: send key's command
it's in my webbrowser and i got the code i was asking for now i just need to space code
System.Windows.Forms.SendKeys.Send("{space}")
that doesn't work for me doesn anyone know how to send the space key ?
-
Mar 17th, 2009, 07:37 AM
#4
Re: send key's command
http://msdn.microsoft.com/en-us/libr...ys(vs.71).aspx
You have to make sure your cursor is in the field when the command is sent. SendKeys is pretty flimsy to use.
Pino
-
Mar 17th, 2009, 07:38 AM
#5
Thread Starter
Hyperactive Member
Re: send key's command
i seen that but it doesnt show the SPACE key
-
Mar 17th, 2009, 07:44 AM
#6
-
Mar 17th, 2009, 08:06 AM
#7
Thread Starter
Hyperactive Member
-
Mar 17th, 2009, 08:27 AM
#8
Re: send key's command
SendKeys.Send(" ");
Works ok.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|