Raised This Month: $51 Target: $400
 12% 

Manually closing a client's menu


Post New Thread Reply   
 
Thread Tools Display Modes
Marcus_Brown001
AlliedModders Donor
Join Date: Nov 2012
Location: Illinois, United States
Old 08-25-2015 , 21:27   Re: Manually closing a client's menu
Reply With Quote #11

I also tried that Has the same 2-3s issue. I am beginning to think there is nothing I can do to get around it. Right now I am still using the CancelClientMenu. It seems like it is the best of the bad options.
Marcus_Brown001 is offline
STiNG645
Junior Member
Join Date: Oct 2016
Location: Tashkent
Old 12-25-2020 , 21:49   Re: Manually closing a client's menu
Reply With Quote #12

Quote:
Originally Posted by Marcus_Brown001 View Post
I also tried that Has the same 2-3s issue. I am beginning to think there is nothing I can do to get around it. Right now I am still using the CancelClientMenu. It seems like it is the best of the bad options.
Haven't found a better way yet?
STiNG645 is offline
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 12-26-2020 , 06:46   Re: Manually closing a client's menu
Reply With Quote #13

1. You can use this to close a menu, but it will show a tiny square for 1 second:
PHP Code:
InternalShowMenu(client"\r"1_Menu_DoNothing);
public 
int Menu_DoNothing(Menu menuMenuAction actionint param1int param2)
{
    switch (
action)
    {
        case 
MenuAction_End:
        {
            
delete menu;
        }
    }

2. You can use CancelClientMenu, but the menu will close in 3 - 5 seconds.
3. You can create a new menu similar to the old one and send it for only 1 second.
__________________
Ilusion9 is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 12-26-2020 , 15:05   Re: Manually closing a client's menu
Reply With Quote #14

No tiny square for me:
Code:
if( GetClientMenu(client, null) != MenuSource_None )
{
	InternalShowMenu(client, "\10", 1); // thanks to Zira
	CancelClientMenu(client, true, null);
}
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 12-26-2020 at 15:06.
Dragokas is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:21.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode