 |
Cheat Engine The Official Site of Cheat Engine
|
| 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
|
Posted: Tue Apr 14, 2009 5:34 am Post subject: [Help[ Set Custom Delay's |
|
|
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 im close to the finish line
 |
|
| Back to top |
|
 |
Snootae Grandmaster Cheater
Reputation: 0
Joined: 16 Dec 2006 Posts: 969 Location: --->
|
Posted: Tue Apr 14, 2009 6:01 am Post subject: |
|
|
UINT GetDlgItemInt(
HWND hDlg,
int nIDDlgItem,
BOOL *lpTranslated,
BOOL bSigned
);
_________________
|
|
| Back to top |
|
 |
Pro-surf Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Dec 2007 Posts: 1415 Location: Under Ur Bed , Moauahauha
|
Posted: Tue Apr 14, 2009 6:03 am Post subject: |
|
|
how do i fill it ? im kinda new ..
_________________
ProsTrain VIP |..........| - 80% Done im close to the finish line
 |
|
| Back to top |
|
 |
Snootae Grandmaster Cheater
Reputation: 0
Joined: 16 Dec 2006 Posts: 969 Location: --->
|
Posted: Tue Apr 14, 2009 6:51 am Post subject: |
|
|
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 |
|
 |
Pro-surf Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Dec 2007 Posts: 1415 Location: Under Ur Bed , Moauahauha
|
Posted: Tue Apr 14, 2009 7:47 am Post subject: |
|
|
tHANKS +rep for ya
Lol it really works .. !! 0.0
thanks bro
_________________
ProsTrain VIP |..........| - 80% Done im close to the finish line
 |
|
| Back to top |
|
 |
|
|
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
|
|