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 


Help with executing commands in VB.

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

Joined: 08 Feb 2008
Posts: 293

PostPosted: Thu Apr 10, 2008 8:36 pm    Post subject: Reply with quote

i am pretty sure, that to put it into your command prompt, you need to convert into a string.

So get the IP as an integer or float or whatever, then convert it to a string before printing it to the MS-DOS window.

_________________
Blog

Quote:
Rhys says:
you can be my maid
Rhys says:
ill buy you a french maid outfit
Tyler says:
Sounds good
Rhys says:
ill hold you to that
Back to top
View user's profile Send private message MSN Messenger
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Thu Apr 10, 2008 8:41 pm    Post subject: Reply with quote

Just Shell 'ping', you don't need to call cmd.exe to do it:

Code:
Shell "ping -t -l 25 127.0.0.1", vbNormalFocus

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Overload
Master Cheater
Reputation: 0

Joined: 08 Feb 2008
Posts: 293

PostPosted: Thu Apr 10, 2008 8:53 pm    Post subject: Reply with quote

Wiccaan wrote:
Just Shell 'ping', you don't need to call cmd.exe to do it:

Code:
Shell "ping -t -l 25 127.0.0.1", vbNormalFocus


and teh smex proves me wrong again Wink

_________________
Blog

Quote:
Rhys says:
you can be my maid
Rhys says:
ill buy you a french maid outfit
Tyler says:
Sounds good
Rhys says:
ill hold you to that
Back to top
View user's profile Send private message MSN Messenger
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Thu Apr 10, 2008 9:17 pm    Post subject: Reply with quote

Freezer burn's soul wrote:
Code:
Private Sub cmdattack_Click()
Dim taskID As Double
Dim Con As Integer
Dim ip As String
Con = textconnections.Text
ip = textip.Text
Shell "ping -t -l (Con) (ip)", vbNormalFocus
End Sub


That's the code I'm using. whenever I click the attack button, the ping option comes up in CMD, but no text appears, then it just closes.

Also, what's the parameter to get CMD to run in the background when I click the attack button?


I attached a project I just tossed together using what I showed above but allowing users to input their own address and buffer size. If you don't want to see the cmd window, don't use vbNormalFocus, use vbHide.



The Extension 'rar' was deactivated by an board admin, therefore this Attachment is not displayed.


_________________
- Retired.
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