im working on a bot but i cant get my w press to release properly i have it pushig and holding now, u just need to be able to shut it off at a specified time.. any pointers? thanks in advance
heres my timer
Public Sub wPress_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles wPress.Tick
' wRelease.Enabled = True
Dim time As New Stopwatch
time.Start()
Do While time.ElapsedMilliseconds < 0.1
keybd_event(VK_W, 0, 0, 0)
Loop
End Sub
ive also tried
Public Sub wPress_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles wPress.Tick
' wRelease.Enabled = True
Dim time As New Stopwatch
time.Start()
Do
keybd_event(VK_W, 0, 0, 0)
Loop Until time.ElapsedMilliseconds = 5000
End Sub
i should also say i dont want to stop it with a bbutton, i want to stop this timer with another that runs for 5 seconds then calls wPress.stop()
actually i just thought of another way to inpliment w scroll lock if i cant get this figured out,, ill have too spam the a, s, and d keys tho
Sorry for the off topic spam though but maybe you should look at old source codes that could help give you a general idea
yeah ill look into that, actually i should pry be looking for another way to hold a key down,
There should be a tut in the auto it for commands like those jet bot source was released and exicos too so should not be that hard to get somewaht of a fix on what to do 400th post btw success
yeah i looked at them only thing is when i sleep or try to wait my timer stops so the key isnt held, but i think imna go the alternate rought with scroll lock well nvm im still in a time to stop issue
o.0
it was really that easy
SendKeys.SendWait("{W}")
SendKeys.SendWait("{W 25}")
thx MSDN
the value 25 is the ammount of times it sends the key
idk why i was pissing with api
Glad to be of assistance that is if my advice payed off lol
yes i spent all day thinking and not searching.lol thanks
Dunno why @Paladin moved it, this section is the wrong one tho.
actually if u want u can close it nico i got it figured out
Originally Posted by demonbhd
actually if u want u can close it nico i got it figured out
Well then.
Originally Posted by Nico
Dunno why @Paladin moved it, this section is the wrong one tho.
Asked for help,
Just thought he'd get a better response here.
Originally Posted by Paladin
Asked for help,
Just thought he'd get a better response here.
In the release section?
Originally Posted by Nico
In the release section?
What? I moved him to help from the release section.