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 


Console Application run Command Prompt

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

Joined: 11 Sep 2012
Posts: 30
Location: Malaysia

PostPosted: Wed Jan 01, 2014 4:24 pm    Post subject: Console Application run Command Prompt Reply with quote

Hey guys, I'm trying to do something that can automatically run the command prompt by just running the console application. Here's my problem
I use DISKPART as an Example
Code:

int main()
{
system("diskpart");
}


Result on console application:
Code:

Microsoft DiskPart version 6.1.7601
Copyright (C) 1999-2008 Microsoft Corporation.
On computer: JUSTIN-PC

DISKPART>


How can I continue to command the command prompt by using coding method?? I tried all the methods that i know, but sadly still not working Sad

_________________
I'm not perfect , but i'm limited
Back to top
View user's profile Send private message
Reak
I post too much
Reputation: 0

Joined: 15 May 2007
Posts: 3496

PostPosted: Wed Jan 01, 2014 4:54 pm    Post subject: Reply with quote

Code:
PostMessage(hWnd, WM_CHAR, #ASCII_char, 0);


Post/SendMessage should both work.
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
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