| View previous topic :: View next topic |
| Author |
Message |
torpin005 Master Cheater
Reputation: 0
Joined: 19 Nov 2007 Posts: 255
|
Posted: Fri Mar 07, 2008 8:20 pm Post subject: vb6 question |
|
|
Is there a way in visual basic 6 to send keys, like hit a button and it hits like F5 or Like C or something? and can u show me how?
+rep if it works, thanks
Last edited by torpin005 on Fri Mar 07, 2008 8:31 pm; edited 1 time in total |
|
| Back to top |
|
 |
_Teizhcial_ Master Cheater
Reputation: 0
Joined: 10 Aug 2007 Posts: 276
|
Posted: Fri Mar 07, 2008 8:30 pm Post subject: Re: vb6 question |
|
|
| torpin005 wrote: | Is there a way in visual basic 6 to send keys, like hit a button and it hits like F5 or Like C or something?
+rep if it works, thanks |
Yes there is a way to send keys in visual basic.
Its called send keys.
_________________
|
|
| Back to top |
|
 |
torpin005 Master Cheater
Reputation: 0
Joined: 19 Nov 2007 Posts: 255
|
Posted: Fri Mar 07, 2008 8:31 pm Post subject: |
|
|
| Can you help me with it?
|
|
| Back to top |
|
 |
_Teizhcial_ Master Cheater
Reputation: 0
Joined: 10 Aug 2007 Posts: 276
|
Posted: Fri Mar 07, 2008 8:32 pm Post subject: |
|
|
Try this.
| Code: | | System.Windows.Forms.SendKeys.Send("{F5}") |
_________________
|
|
| Back to top |
|
 |
torpin005 Master Cheater
Reputation: 0
Joined: 19 Nov 2007 Posts: 255
|
Posted: Fri Mar 07, 2008 8:36 pm Post subject: |
|
|
| it didnt work...
|
|
| Back to top |
|
 |
_Teizhcial_ Master Cheater
Reputation: 0
Joined: 10 Aug 2007 Posts: 276
|
Posted: Fri Mar 07, 2008 8:44 pm Post subject: |
|
|
Wow wait VB6
No wonder I thought you meant VB 2005
I don't know why you would need to do this in the first place.
_________________
|
|
| Back to top |
|
 |
torpin005 Master Cheater
Reputation: 0
Joined: 19 Nov 2007 Posts: 255
|
Posted: Fri Mar 07, 2008 8:47 pm Post subject: |
|
|
oh, well i tried
and all it does is freeze my comp.
do you know whats wrong?
|
|
| Back to top |
|
 |
Blader I post too much
Reputation: 2
Joined: 19 Jan 2007 Posts: 2049
|
Posted: Sat Mar 08, 2008 6:28 am Post subject: |
|
|
No tilde, just {F4} unless you want one of the window keys
_________________
|
|
| Back to top |
|
 |
malfunction Grandmaster Cheater Supreme
Reputation: 0
Joined: 30 Jan 2007 Posts: 1015 Location: http://www.behindthecorner.com/
|
Posted: Sat Mar 08, 2008 7:11 am Post subject: |
|
|
SendKeys:
These will send keypresses to the active window. To simulate ENTER and BACKSPACE:
| Code: | SendKeys "{enter}", True
SendKeys "{backspace}", True |
_________________
|
|
| Back to top |
|
 |
|