[1.10] Preventing Mouse Click to Register

This forum is for discussions on how to edit what can not be edited through the txt files, needless to say this isn't about battle net hacking.

Moderators: Nefarius, Havvoric

User avatar
weapon-x
Forum Legend
Arch-Angel
Posts: 1047
Joined: Wed Mar 18, 2009 4:52 am
Location: Mindanao, Philippines
Philippines

[1.10] Preventing Mouse Click to Register

Post by weapon-x » Wed Jun 28, 2017 1:45 am

howdy,

yes i am still alive! ... yay :)

very very rusty but still alive ;)

so please bear with me.

anyhow, back in the past i made a custom menu by hooking d2's message log system, last weekend i got a chance to work on this again, but would like to make the whole stuff more independent.

how does d2 prevent mouse-clicks from registering on specific screen coordinates? just like in the front panel and other ui window's. :)

cheers...
" It's not the size of the dog in the fight, it's the size of the fight in the dog. "

~Mark Twain

User avatar
kidpaddle94
Forum Legend
Principality
Posts: 2057
Joined: Thu Aug 13, 2009 2:54 pm
Location: localhost
Canada

Re: [1.10] Preventing Mouse Click to Register

Post by kidpaddle94 » Wed Jun 28, 2017 3:08 am

Code: Select all

void __fastcall WINDOW_ClearMessage(WinMsg* pMsg)
{
	pMsg->bReturn = 1;
	pMsg->lRresult = 0;
	STORM_ResetMsgQueue(pMsg); // storm.#511
}

User avatar
weapon-x
Forum Legend
Arch-Angel
Posts: 1047
Joined: Wed Mar 18, 2009 4:52 am
Location: Mindanao, Philippines
Philippines

Re: [1.10] Preventing Mouse Click to Register

Post by weapon-x » Sun Jul 09, 2017 4:03 am

ah, that was fast :)

thanks for sharing bro, will try this out as soon as i can...


thanks !

edit:

It works perfectly... thank you !
" It's not the size of the dog in the fight, it's the size of the fight in the dog. "

~Mark Twain

Return to “Code Editing”