Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


need help with this code!!!!!!!! fast

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
killar456
Master Cheater
Reputation: 0

Joined: 30 Mar 2007
Posts: 415

PostPosted: Fri Dec 14, 2007 10:12 pm    Post subject: need help with this code!!!!!!!! fast Reply with quote

Code:
Option Explicit
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vkey As Long) As Integer

Private Sub Command1_Click()
If Combo1.Text = "Yes" Then
Combo2.Text = "yes"
Timer1.Enabled = True
Timer2.Enabled = True
Else
Timer1.Enabled = False
Timer2.Enabled = False
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub

Private Sub Text1_Change()
Timer1.Interval = Val(Text1.Text & "000")
End Sub

Private Sub Text2_Change()
Timer1.Interval = Val(Text2.Text & "000")
End Sub

Private Sub Timer1_Timer()
SendKeys "{Ctrl}"
End Sub

Private Sub Timer2_Timer()
SendKeys "{space}"
End Sub

Private Sub Timer3_Timer()
If GetAsyncKeyState("VbKeyctrl" & "vbkeyS") Then
Timer1.Enabled = False
Timer2.Enabled = False
End If
End Sub
it says block if without end if, but there is a end if....... help plz

Last edited by killar456 on Sat Dec 15, 2007 12:29 pm; edited 6 times in total
Back to top
View user's profile Send private message Visit poster's website
Hack-Addict
Master Cheater
Reputation: 0

Joined: 20 Nov 2007
Posts: 287

PostPosted: Fri Dec 14, 2007 11:51 pm    Post subject: Reply with quote

Wait, are you looking at the source for the code? or just using the exe?
_________________

Sciextron made the userbar up here, Rep him =D

[img]http://i145.photobucket.com/albums/r225/Michaell61/header.gif[/img] <---Visit theprocoders today!
Back to top
View user's profile Send private message
killar456
Master Cheater
Reputation: 0

Joined: 30 Mar 2007
Posts: 415

PostPosted: Sat Dec 15, 2007 8:58 am    Post subject: Reply with quote

what i want is a bot the presses ctrl and space, and i dont know about the sendkeys function, i dont know the keys is it like
Code:
SendKeys "Control"
SendKeys "spacebar"
something like that Smile
and that ends when you press ctrl + s
and i want to program it myself, so the source code for vb6
just need some help
Back to top
View user's profile Send private message Visit poster's website
AtheistCrusader
Grandmaster Cheater
Reputation: 6

Joined: 23 Sep 2006
Posts: 681

PostPosted: Sat Dec 15, 2007 10:12 am    Post subject: Reply with quote

use api : GetAsincKeyState i think...
anyway


in timer1
SendKeys {control or ctrl}
sendkeys {space}

in timer2
if getasynckeystate ("VbKeyctrl" & "vbkeyS") then
timer1.enabled = false
end if

i think thats it.
Back to top
View user's profile Send private message
killar456
Master Cheater
Reputation: 0

Joined: 30 Mar 2007
Posts: 415

PostPosted: Sat Dec 15, 2007 12:59 pm    Post subject: Reply with quote

new help plz
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites