
-----------------------------------
Drewbie
Wed Jul 12, 2006 11:05 am

Where do I start?
-----------------------------------
I am trying to make a program that will run and periodically press the up arrow without any assistance from me. The only problem is I dont know I would do it. I figure ill run something on a timer but i dont know after that. Please help. 


Thank you

-----------------------------------
Tony
Wed Jul 12, 2006 11:17 am


-----------------------------------
you put SendKey() inside your timer controller

-----------------------------------
r.3volved
Wed Jul 12, 2006 11:46 am


-----------------------------------
1. ^^ What he said
2. You can create your own event handler to be called
3. Whatever code you have executing for the uparrow you can either paste it into the timer event, or you can crate a function that gets called on keypress and in your timer event

-----------------------------------
Shaun Dreclin
Tue Dec 12, 2006 9:54 pm


-----------------------------------
Assuming you are using VB6, I would say something along the lines of:

Private Sub Timer1_Timer()
SendKeys "{up}"

End Sub

-----------------------------------
ZeroPaladn
Wed Dec 13, 2006 9:06 am


-----------------------------------
Watch it with the necroposting. The topic is 5 months old, so it is long forgotten.

-----------------------------------
Shaun Dreclin
Wed Dec 13, 2006 12:57 pm


-----------------------------------
Whoops, your right.

Sorry, I thought this was a more active forum. The topic WAS still on the first page.
