| View previous topic :: View next topic |
| Author |
Message |
Golden Wing Grandmaster Cheater
Reputation: 0
Joined: 29 Aug 2007 Posts: 905
|
Posted: Fri Mar 07, 2008 6:33 pm Post subject: VB6[Sendkeys] |
|
|
I need help in vb6 sendkeys it dont work for some reason here is the code i used
| Code: | Sendkeys "Hello{Enter}"
|
i put it in a timer and open notepad and when i press run it says"permission denied"
_________________
|
|
| Back to top |
|
 |
Blader I post too much
Reputation: 2
Joined: 19 Jan 2007 Posts: 2049
|
Posted: Fri Mar 07, 2008 7:13 pm Post subject: |
|
|
| Code: | SendKeys "Hello"
SendKeys "{Enter}" |
Try that instead
_________________
|
|
| Back to top |
|
 |
Golden Wing Grandmaster Cheater
Reputation: 0
Joined: 29 Aug 2007 Posts: 905
|
Posted: Fri Mar 07, 2008 7:17 pm Post subject: |
|
|
nope it said runtime error 70 permission denied
_________________
|
|
| Back to top |
|
 |
coder sal Master Cheater
Reputation: 0
Joined: 11 May 2007 Posts: 304
|
Posted: Fri Mar 07, 2008 8:03 pm Post subject: |
|
|
| xDemonRobbiex wrote: | | nope it said runtime error 70 permission denied |
First make a timer and put the interval to 1000 or higher so its 1 second or more. Then look in properties if timer1 is enabled. If enabled is false change it to true. Now go to the timer code and put in:
| Code: | SendKeys "Hello"
SendKeys "{Enter}" |
It should work! Don't do it together!
Right after you do:
Hit the enter button and then do
Also put in the quotes "" as they are in the code, don't remove them.
|
|
| Back to top |
|
 |
Golden Wing Grandmaster Cheater
Reputation: 0
Joined: 29 Aug 2007 Posts: 905
|
Posted: Sat Mar 08, 2008 8:46 am Post subject: |
|
|
did not work keep saying permission denied
_________________
|
|
| Back to top |
|
 |
Blader I post too much
Reputation: 2
Joined: 19 Jan 2007 Posts: 2049
|
Posted: Sat Mar 08, 2008 8:52 am Post subject: |
|
|
Can I see your whole project code?
Or is that it?
_________________
|
|
| Back to top |
|
 |
Golden Wing Grandmaster Cheater
Reputation: 0
Joined: 29 Aug 2007 Posts: 905
|
Posted: Sat Mar 08, 2008 9:27 am Post subject: |
|
|
| Code: | Private Sub cmdStart_Click()
Timer1.Enabled = True
End Sub
Private Sub cmdStop_Click()
Timer1.Enabled = False
End Sub
Private Sub Timer1_Timer()
SendKeys "Hello"
SendKeys "{Enter}"
End Sub
|
_________________
|
|
| Back to top |
|
 |
coder sal Master Cheater
Reputation: 0
Joined: 11 May 2007 Posts: 304
|
Posted: Sat Mar 08, 2008 11:10 am Post subject: |
|
|
| xDemonRobbiex wrote: | | Code: | Private Sub cmdStart_Click()
Timer1.Enabled = True
End Sub
Private Sub cmdStop_Click()
Timer1.Enabled = False
End Sub
Private Sub Timer1_Timer()
SendKeys "Hello"
SendKeys "{Enter}"
End Sub
|
|
Try:
| Code: | Private Sub cmdStart_Click()
Timer1.Enabled = True
End Sub
Private Sub cmdStop_Click()
Timer1.Enabled = False
End Sub
Private Sub Timer1_Timer()
SendKeys "Hello"
SendKeys "{Enter}"
End Sub |
|
|
| Back to top |
|
 |
Golden Wing Grandmaster Cheater
Reputation: 0
Joined: 29 Aug 2007 Posts: 905
|
Posted: Sat Mar 08, 2008 11:46 am Post subject: |
|
|
lol i had to make it an exe for it 2 work
_________________
|
|
| Back to top |
|
 |
|