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[ Set Custom Delay's

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

Joined: 02 Dec 2007
Posts: 1415
Location: Under Ur Bed , Moauahauha

PostPosted: Tue Apr 14, 2009 5:34 am    Post subject: [Help[ Set Custom Delay's Reply with quote

Lately iv been doing some stuff with KiTrainer and i was wondering how can i set custom delay to auto jump/skill/att/etc ..

For exemple thats Kitterz auto attack :
Code:
void AutoAttack (HWND hWnd)
{
   attdelay = 200;
   LPARAM lparam = (MapVirtualKey(0x011, 0) << 16) + 1; //Send to graphic screen
   HWND MSHWND = FindWindow ("MapleStoryClass",0); //Find class window

   SetDlgItemText(hWnd, IDC_AUTOATTACK, "On" ); //"On" message
   
   while (!AutoAttackExit)
   {
      PM(MSHWND, WM_KEYDOWN, 0x011, lparam); //Send "CTRL" Key
      PM(MSHWND, WM_KEYUP, 0x011, NULL);
      Sleep (attdelay);
   }

   SetDlgItemText(hWnd, IDC_AUTOATTACK, "Off" ); //"Off" Message
}


i want to make attdelay editable thro the trainer window .. what do i need ?
BTW - I already created the Edit control boxes .. (IDC_EDIT1)

_________________
ProsTrain VIP |..........| - 80% Done Smile im close to the finish line Smile
Back to top
View user's profile Send private message
Snootae
Grandmaster Cheater
Reputation: 0

Joined: 16 Dec 2006
Posts: 969
Location: --->

PostPosted: Tue Apr 14, 2009 6:01 am    Post subject: Reply with quote

UINT GetDlgItemInt(
HWND hDlg,
int nIDDlgItem,
BOOL *lpTranslated,
BOOL bSigned
);

_________________
Back to top
View user's profile Send private message
Pro-surf
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Dec 2007
Posts: 1415
Location: Under Ur Bed , Moauahauha

PostPosted: Tue Apr 14, 2009 6:03 am    Post subject: Reply with quote

how do i fill it ? im kinda new ..
_________________
ProsTrain VIP |..........| - 80% Done Smile im close to the finish line Smile
Back to top
View user's profile Send private message
Snootae
Grandmaster Cheater
Reputation: 0

Joined: 16 Dec 2006
Posts: 969
Location: --->

PostPosted: Tue Apr 14, 2009 6:51 am    Post subject: Reply with quote

Code:
int AADelay


hwnd is your window, too easy
the dialog id is defined when you make the control

so:
Code:
#define AADELAYid   101
hWndAutoAttackDelay = CreateWindow(TEXT("EDIT"), TEXT(""), WS_CHILD | WS_VISIBLE | ES_CENTER, 135, 14,
      35, 12, hWnd,(HMENU)AADELAYid, hInstance, NULL);


then its easy

Code:
AADelay = GetDlgItemInt(hWnd, AADELAYid, NULL, FALSE);

_________________
Back to top
View user's profile Send private message
Pro-surf
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Dec 2007
Posts: 1415
Location: Under Ur Bed , Moauahauha

PostPosted: Tue Apr 14, 2009 7:47 am    Post subject: Reply with quote

tHANKS +rep for ya

Lol it really works .. !! 0.0
thanks bro

_________________
ProsTrain VIP |..........| - 80% Done Smile im close to the finish line Smile
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