
Minimizer in mod?
#1
OFFLINE
Posted 21 July 2012 - 11:33 AM

#2
OFFLINE
Posted 21 July 2012 - 06:43 PM

#3
OFFLINE
Posted 21 July 2012 - 06:46 PM


Edited by Chuckun, 21 July 2012 - 06:46 PM.
#4
OFFLINE
Posted 21 July 2012 - 07:20 PM

Great suggestion! I already use good old etmin.exe but an in-game option would be good for others who dont know
yep, using the same thing, but many new players dont kno about it, so yeah would b great!
#5
OFFLINE
Posted 22 July 2012 - 05:57 AM

#6
OFFLINE
Posted 22 July 2012 - 08:19 AM

#7
OFFLINE
Posted 22 July 2012 - 09:59 AM

#8
OFFLINE
Posted 09 September 2012 - 12:22 PM

Edited by Dragon, 09 September 2012 - 12:22 PM.
#9
OFFLINE
Posted 12 September 2012 - 02:35 PM

#10
OFFLINE
Posted 11 October 2013 - 04:39 PM

Added in 0.8.0 for linux. It wasn't so easy though:
I'd suggest to have a look at ET: Legacy project instead. Its team fixed a lot of 2.60b bugs already and introduced new features (such as minimizing using Alt+TAB).
in ET:Legacy they are managing the window creation therefore they have handles for it and can easily manage it. It's a little bit harder from mod side, but it's possible.
We might add the minimizer for windows in future version, depends on the number of people requesting such feature, so we encourage you to vote in this thread
#11
OFFLINE
Posted 11 October 2013 - 04:43 PM

void Minimize() { HWND hwet = GetActiveWindow(); if (hwet) { WINDOWPLACEMENT wp; GetWindowPlacement(hwet, &wp); if (wp.showCmd == SW_SHOWMINIMIZED) ShowWindow(hwet, SW_RESTORE); else ShowWindow(hwet, SW_MINIMIZE); } }
For Windowz, it works from DLL level tested it.
But the resolution has to be same as system
Edited by solaЯ, 11 October 2013 - 04:52 PM.
#12
OFFLINE
Posted 11 October 2013 - 05:34 PM

It is unlikely that Windows minimizer would get implemented even if requested. The reasons are that it would require worker thread and system tray icon. If we would do it properly. Also, there are lot of external programs out there that have been used for years, so the investment of embedding it into the mod is mostly not worth it.
@sol
There is no lack of code samples. I have, in fact, made external program that handles minimizer and raw input. http://www.himalia.f...37114a18dc0b78e
#13
OFFLINE
Posted 11 October 2013 - 10:34 PM

@sol
There is no lack of code samples. I have, in fact, made external program that handles minimizer and raw input. http://www.himalia.f...37114a18dc0b78e
Yeah you're right. But as you've seen about your minimizer sometimes AVs gonna false positive because of dll injections & hooks ( I have really huge problems with it now ) thats why embedding it into entire mod is better idea imo. But this is just my opinion
And yeah, coding & developing properly is not quite simple therefore I chose another way.
Edited by solaЯ, 11 October 2013 - 10:34 PM.
#14
OFFLINE
Posted 11 October 2013 - 11:21 PM

The minimizer part doesn't need to be injected and doesn't cause AV issues. The dll handling the raw input is injected to the launched ET process in my program, which probably caused that single time the AV flagged it.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users