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 


code help +rep for the code that works
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Box
Grandmaster Cheater
Reputation: 0

Joined: 16 Oct 2007
Posts: 541

PostPosted: Mon Jan 07, 2008 3:58 pm    Post subject: code help +rep for the code that works Reply with quote

whats the code for vb6 so if i hit a command button my cd drive wouldeject pm so i get is asap
_________________
zurkei wrote:
Wow box your a real dick, I can't believe I actually thought that you were telling the truth...

Fact: no one tells the truth on cheat engine fourms
Back to top
View user's profile Send private message
Blader
I post too much
Reputation: 2

Joined: 19 Jan 2007
Posts: 2049

PostPosted: Mon Jan 07, 2008 4:00 pm    Post subject: Reply with quote

Look here:
http://www.dreamincode.net/code/snippet92.htm

_________________
Back to top
View user's profile Send private message
Box
Grandmaster Cheater
Reputation: 0

Joined: 16 Oct 2007
Posts: 541

PostPosted: Mon Jan 07, 2008 4:04 pm    Post subject: Reply with quote

i pasted it in form and it doesen't work..
_________________
zurkei wrote:
Wow box your a real dick, I can't believe I actually thought that you were telling the truth...

Fact: no one tells the truth on cheat engine fourms
Back to top
View user's profile Send private message
Blader
I post too much
Reputation: 2

Joined: 19 Jan 2007
Posts: 2049

PostPosted: Mon Jan 07, 2008 4:07 pm    Post subject: Reply with quote

Ok try this instead...
Code:
Private Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" _
    (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, _
    ByVal uReturnLength As Long, ByVal hwndCallback As Long) As Long

Private Sub cmdOpenDoor_Click()
    mciSendString "Set CDAudio Door Open Wait", vbNullString, 0, 0
End Sub

Private Sub cmdCloseDoor_Click()
    mciSendString "Set CDAudio Door Closed Wait", vbNullString, 0, 0
End Sub

_________________
Back to top
View user's profile Send private message
Box
Grandmaster Cheater
Reputation: 0

Joined: 16 Oct 2007
Posts: 541

PostPosted: Mon Jan 07, 2008 4:08 pm    Post subject: Reply with quote

when i paste in form nothing
_________________
zurkei wrote:
Wow box your a real dick, I can't believe I actually thought that you were telling the truth...

Fact: no one tells the truth on cheat engine fourms
Back to top
View user's profile Send private message
Reak
I post too much
Reputation: 0

Joined: 15 May 2007
Posts: 3496

PostPosted: Mon Jan 07, 2008 4:12 pm    Post subject: Reply with quote

I don't know VB but just paste it in the Source wont work, because you gotta link the Buttons (or w.e) to the procedures.
Back to top
View user's profile Send private message
Box
Grandmaster Cheater
Reputation: 0

Joined: 16 Oct 2007
Posts: 541

PostPosted: Mon Jan 07, 2008 4:15 pm    Post subject: Reply with quote

well how is it sapota work wtih out me knowing how to use itr-.-
_________________
zurkei wrote:
Wow box your a real dick, I can't believe I actually thought that you were telling the truth...

Fact: no one tells the truth on cheat engine fourms
Back to top
View user's profile Send private message
Blader
I post too much
Reputation: 2

Joined: 19 Jan 2007
Posts: 2049

PostPosted: Mon Jan 07, 2008 4:20 pm    Post subject: Reply with quote

Code:
Private Sub cmdOpenDoor_Click()
    mciSendString "Set CDAudio Door Open Wait", vbNullString, 0, 0
End Sub

Private Sub cmdCloseDoor_Click()
    mciSendString "Set CDAudio Door Closed Wait", vbNullString, 0, 0
End Sub


These are the button events...

_________________
Back to top
View user's profile Send private message
Box
Grandmaster Cheater
Reputation: 0

Joined: 16 Oct 2007
Posts: 541

PostPosted: Mon Jan 07, 2008 4:36 pm    Post subject: Reply with quote

are u even giveing me code for vb6 cuzz im pasteing that in the form and i put 2 command button click command 1 nothing click command 2 nothing
_________________
zurkei wrote:
Wow box your a real dick, I can't believe I actually thought that you were telling the truth...

Fact: no one tells the truth on cheat engine fourms
Back to top
View user's profile Send private message
Blader
I post too much
Reputation: 2

Joined: 19 Jan 2007
Posts: 2049

PostPosted: Mon Jan 07, 2008 4:40 pm    Post subject: Reply with quote

You have to edit it around jeez..
It's a button click event, change the name of your buttons to match the one in the code...

_________________
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Mon Jan 07, 2008 4:41 pm    Post subject: Reply with quote

1. Are you declaring mciSendString?

2. You have to actually name your buttons appropriately.
Back to top
View user's profile Send private message
Box
Grandmaster Cheater
Reputation: 0

Joined: 16 Oct 2007
Posts: 541

PostPosted: Mon Jan 07, 2008 4:44 pm    Post subject: Reply with quote

i named the buttons now i get an error but there named right
_________________
zurkei wrote:
Wow box your a real dick, I can't believe I actually thought that you were telling the truth...

Fact: no one tells the truth on cheat engine fourms
Back to top
View user's profile Send private message
Blader
I post too much
Reputation: 2

Joined: 19 Jan 2007
Posts: 2049

PostPosted: Mon Jan 07, 2008 4:46 pm    Post subject: Reply with quote

What's the error say?
_________________
Back to top
View user's profile Send private message
Box
Grandmaster Cheater
Reputation: 0

Joined: 16 Oct 2007
Posts: 541

PostPosted: Mon Jan 07, 2008 4:51 pm    Post subject: Reply with quote

this is what the error looked like note my have to refresh to see



untitledl.JPG
 Description:
 Filesize:  7.1 KB
 Viewed:  4430 Time(s)

untitledl.JPG



_________________
zurkei wrote:
Wow box your a real dick, I can't believe I actually thought that you were telling the truth...

Fact: no one tells the truth on cheat engine fourms
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Mon Jan 07, 2008 4:53 pm    Post subject: Reply with quote

slovach wrote:
1. Are you declaring mciSendString?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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