Recent posts

#61
Sources - Mu Online / SOURCESAutoHold CTRL Main 5.2
Last post by ShadowCode - Aug 04, 2025, 08:49 AM
Auto-Hold CTRL System Implementation Guide

This guide explains how to add an auto-hold CTRL feature to your game client. When you double-press CTRL, it will automatically hold the CTRL key until you double-press it again to release.

Overview

The auto-hold CTRL system allows players to:
• Double-press CTRL to automatically hold it down
• Double-press CTRL again to release it
• See chat notifications when the feature is toggled
• No UI option needed - works automatically

Files Modified

1. _define.h

Add the auto-hold CTRL bit flag:

You require the following to view this post content:
  • To see this content, please click the "-SAY THANKS-" button located on the bottom-right of this post.


2. NewUICommon.h

Add member variables to CNewKeyInput struct:

You require the following to view this post content:
  • To see this content, please click the "-SAY THANKS-" button located on the bottom-right of this post.


Add method declarations:

You require the following to view this post content:
  • To see this content, please click the "-SAY THANKS-" button located on the bottom-right of this post.


Add global function declarations:

You require the following to view this post content:
  • To see this content, please click the "-SAY THANKS-" button located on the bottom-right of this post.


3. NewUICommon.cpp

Initialize variables in CNewKeyInput::Init():

You require the following to view this post content:
  • To see this content, please click the "-SAY THANKS-" button located on the bottom-right of this post.


Add call to UpdateDoubleCtrlDetection() in ScanAsyncKeyState():

You require the following to view this post content:
  • To see this content, please click the "-SAY THANKS-" button located on the bottom-right of this post.


Implement the double CTRL detection logic:

You require the following to view this post content:
  • To see this content, please click the "-SAY THANKS-" button located on the bottom-right of this post.


Implement the helper methods:

You require the following to view this post content:
  • To see this content, please click the "-SAY THANKS-" button located on the bottom-right of this post.


Modify IsRepeat() to handle auto-hold CTRL:

You require the following to view this post content:
  • To see this content, please click the "-SAY THANKS-" button located on the bottom-right of this post.


Add global function implementations:

You require the following to view this post content:
  • To see this content, please click the "-SAY THANKS-" button located on the bottom-right of this post.


How It Works

Double-Press Detection
1. First CTRL Press: Records the time and sets press count to 1
2. Second CTRL Press: If within 500ms, detects as double-press and toggles auto-hold
3. Timeout: If more than 1 second passes without CTRL press, resets the counter

Auto-Hold Simulation
1. IsRepeat() Modification: When CTRL is auto-held, `IsRepeat(VK_CONTROL)` returns `true`
2. Game Integration: The game treats auto-held CTRL as if the key is physically held down
3. Toggle System: Double-press again to release the auto-hold

Chat Notifications
1. System Messages: Uses `TYPE_SYSTEM_MESSAGE` for chat notifications
2. Toggle Feedback: Shows "Auto-Hold CTRL: ON" or "Auto-Hold CTRL: OFF"


Key Features

No UI Option Required: Works automatically without needing to enable in settings
Double-Press Detection: 500ms window for double-press detection
Chat Notifications: Clear feedback when toggling the feature
Timeout Protection: 1-second timeout prevents accidental activation
Seamless Integration: Works with existing game input system

Usage

1. Activate: Double-press CTRL quickly (within 500ms)
2. Deactivate: Double-press CTRL again to release
3. Feedback: Chat will show "Auto-Hold CTRL: ON/OFF" messages
4. Behavior: CTRL will remain held until you double-press again

Technical Details

Time Window: 500ms for double-press detection
Timeout: 1 second for resetting press counter
Chat Type: `TYPE_SYSTEM_MESSAGE` for notifications
Key State: Modifies `IsRepeat()` to simulate held key
Memory: Uses `DWORD` for timestamps and press counting

Troubleshooting

Common Issues:
1. Not Working: Ensure `UpdateDoubleCtrlDetection()` is called in `ScanAsyncKeyState()`
2. No Chat Messages: Check that `g_pChatListBox` is available
3. Timing Issues: Adjust the 500ms window if needed for your game
4. Compilation Errors: Make sure all includes are correct

Testing:
1. Double-press CTRL and check chat for "Auto-Hold CTRL: ON"
2. Try using CTRL functions (like item info) - should work without holding
3. Double-press CTRL again and check chat for "Auto-Hold CTRL: OFF"
4. Verify CTRL functions require physical holding again

This implementation provides a clean, user-friendly auto-hold CTRL system that integrates seamlessly with the existing game architecture.


Credits: ShadowCode
#62
Buy and Sell / *** / SellRe: [SERVICE] Custom Multimedi...
Last post by cepoidevs - Aug 04, 2025, 02:22 AM
UP!

LATEST PROJECT COMPLETED

At the request of a client, the MuDream template was aesthetically ripped and adapted for DMN. The front end was replicated as closely as possible to the MuDream site, taking into account the limitations of the engine. Below, I'm attaching images that I constantly sent to my client to show the project updates, as well as videos.

IMPORTANT NOTICE: THIS TEMPLATE IS NOT FOR SALE, FOR SHOWCASE PURPOSES ONLY.

Images

Sorry but you are not allowed to view spoiler contents.


PLAYLIST WITH VIDEOS

Sorry but you are not allowed to view spoiler contents.
#63
Mu Online Server Advertisement / AdvertisingRe: DemonuMu Premium Original ...
Last post by Demonu - Aug 03, 2025, 12:54 PM
Update Server V.84 (HOT!)

[News] Upgrade All Shop in each location V84 (HOT!)

All shops in each location exe items were added with basic options luck+0+28

Why were so many updates created in just 2 months ?

For the next project when the time comes

#64
All Type CMS Websites / WebSiteRe: DTWeb 2.0 UPDATE 2021 from...
Last post by Wohaho - Aug 03, 2025, 07:15 AM
thanks
#65
Graphic Design / DesignSUM Banner Editable [PSD]
Last post by medi - Aug 03, 2025, 04:02 AM
:nice
Pass: tuservermu.eu
Video Sample:
Sample Img:

You require the following to view this post content:
  • To see this content, please click the "-SAY THANKS-" button located on the bottom-right of this post.

#66
Season6 / FilesRe: DOWNLOAD BETELL HOST UPDAT...
Last post by jose1282 - Aug 02, 2025, 11:59 PM
The damage indicator has a delay. Can I just use the original one instead? how?
#67
Config MuOnline / ConfigMuRe: Full NHServers - MU SEASON...
Last post by Ziggs - Aug 02, 2025, 11:45 PM
Hello :D amazing contribution, by any chance do you have it for update 40?
#68
Sources - Mu Online / SOURCESRe: Source 1.1 e S3 Kor Wizard...
Last post by SPK - Aug 02, 2025, 04:59 PM
Wowo.. Wizard[Team], =)) I wish i have the Team =)) Team :))))))
I'll still alone... =))
#69
Mu Online Server Advertisement / AdvertisingRe: OKMU Season 1 [Dynamic x10...
Last post by Jitsu. - Aug 02, 2025, 01:59 PM
Bump  :ad
#70
Season18 / FilesRe: DV-Team Season 18 Part 2-2
Last post by remamakiller - Aug 02, 2025, 01:32 PM
Ty Bro
Powered by SMFPacks Ads Manager Mod