Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google Log In with Steam Sign In
  • Create Account
Photo

Minimizer in mod?

- - - - -

  • Please log in to reply
13 replies to this topic

#1
OFFLINE   Dookie

Dookie

    Advanced Member

  • Members
  • PipPipPipPip
  • 420 posts
55
Getting Better
  • LocationCroatia
Hello, we all know that ET cant be minimized by pressing any button's, there is also many minimizer's over the internet and there is also alz+enter option, but I was wondering, is it somehow possible, maybe to add smthing like a TAB or smthing when you click esc that there is a tab named minimize game or something? And when you click on it game gets minimized? Ive came to this idea after ive read about this new screen resolutions in options, so is this even possible to be made?

#2
OFFLINE   clan DIABOLIK

clan DIABOLIK

    Advanced Member

  • Members
  • PipPipPipPip
  • 322 posts
36
Getting Better
+1 (exist in ETnam)

#3
OFFLINE   Chuckun

Chuckun

    Regular Member

  • Members
  • PipPipPip
  • 130 posts
20
On a distinguished road
Great suggestion! I already use good old etmin.exe but an in-game option would be good for others who dont know :)

Edited by Chuckun, 21 July 2012 - 07:46 PM.


#4
OFFLINE   Dookie

Dookie

    Advanced Member

  • Members
  • PipPipPipPip
  • 420 posts
55
Getting Better
  • LocationCroatia

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   Dookie

Dookie

    Advanced Member

  • Members
  • PipPipPipPip
  • 420 posts
55
Getting Better
  • LocationCroatia
anyone can confirm is this possible or not?

#6
OFFLINE   gaoesa

gaoesa

    Advanced Member

  • Management
  • PipPipPipPip
  • 4391 posts
341
Will become famous
  • LocationFinland
We will look into it.

#7
OFFLINE   Dookie

Dookie

    Advanced Member

  • Members
  • PipPipPipPip
  • 420 posts
55
Getting Better
  • LocationCroatia

We will look into it.


thx

#8
OFFLINE   Dragonji

Dragonji

    Advanced Member

  • Members
  • PipPipPipPip
  • 514 posts
142
On the road to fame
  • LocationPoland
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).

Edited by Dragon, 09 September 2012 - 01:22 PM.


#9
OFFLINE   Dookie

Dookie

    Advanced Member

  • Members
  • PipPipPipPip
  • 420 posts
55
Getting Better
  • LocationCroatia
so gaoesa, is it gonna be somehow implented in new version?

#10
OFFLINE   TheSilencerPL

TheSilencerPL

    Advanced Member

  • Management
  • PipPipPipPip
  • 3097 posts
216
On the road to fame
  • LocationPoland

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   Sol

Sol

    Regular Member

  • Coders
  • PipPipPip
  • 113 posts
28
On a distinguished road
  • LocationPoland
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 - 05:52 PM.


#12
OFFLINE   gaoesa

gaoesa

    Advanced Member

  • Management
  • PipPipPipPip
  • 4391 posts
341
Will become famous
  • LocationFinland

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   Sol

Sol

    Regular Member

  • Coders
  • PipPipPip
  • 113 posts
28
On a distinguished road
  • LocationPoland

@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 - 11:34 PM.


#14
OFFLINE   gaoesa

gaoesa

    Advanced Member

  • Management
  • PipPipPipPip
  • 4391 posts
341
Will become famous
  • LocationFinland

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