Gates of Arimyth
http://forum.arimyth.com/

Forcing windowed mode to stay open
http://forum.arimyth.com/viewtopic.php?f=9&t=2726
Page 1 of 1

Author:  blue_myriddn [ Tue Jan 11, 2011 10:34 pm ]
Post subject:  Forcing windowed mode to stay open

I don't think this is possible, but it would be really freakn handy if it were.

When running D2 in windowed mode, clicking anywhere outside the window will minimize the window. Is there anyway to disable that? So I can have the D2 window open all the time without it being minimized?

Author:  PureRage-DoD [ Tue Jan 11, 2011 10:37 pm ]
Post subject:  Re: Forcing windowed mode to stay open

not before 1.13 as fas as I know, you can use glide to prevent clicking off the window while it is active, I think alt+tab switching will still minimise it though

Author:  Zorax [ Wed Jan 12, 2011 7:15 am ]
Post subject:  Re: Forcing windowed mode to stay open

I had the same issue a while back and started looking for a solution.
Eventually, I found the attached file (sorry, I don't remember where I found it).

It appears to be working and thusfar haven't seen my firewall block any outgoing connections from this program.

edit: unfortunately, the glide solution only works well with ATI based video adapters and my laptop doesn't have ATI

Attachments:
NoHide.zip [189.14 KiB]
Downloaded 855 times

Author:  blue_myriddn [ Wed Jan 12, 2011 12:21 pm ]
Post subject:  Re: Forcing windowed mode to stay open

I gave that a whirl, but I am not sure how to meet this requirement:

"D2's window name MUST be "Diablo II""
My window name always comes up D2Loader....

Author:  Zorax [ Wed Jan 12, 2011 12:33 pm ]
Post subject:  Re: Forcing windowed mode to stay open

You can use -title as a parameter for D2loader, something like:

"d2loader.exe" -direct -txt -skiptobnet -w -title "Diablo II"

Author:  blue_myriddn [ Wed Jan 12, 2011 12:39 pm ]
Post subject:  Re: Forcing windowed mode to stay open

outstanding! that works like a charm! Thank you very much. Now I can idle in game and surf the internet. happy days!

Author:  Zikur [ Wed Jan 12, 2011 12:45 pm ]
Post subject:  Re: Forcing windowed mode to stay open

amazing

Author:  Clown [ Wed Mar 30, 2011 5:40 pm ]
Post subject:  Re: Forcing windowed mode to stay open

Zikur wrote:
amazing

what about just using the -nohide command for loader

Author:  Hflame [ Wed Mar 30, 2011 10:31 pm ]
Post subject:  Re: Forcing windowed mode to stay open

unless my loader is outdated, i couldnt use -nohide

Author:  Verb [ Thu Mar 31, 2011 9:39 am ]
Post subject:  Re: Forcing windowed mode to stay open

I tried this and it kinda works, but the D2 window is completly black so its kinda useless, I've probably done something wrong, no idea what...

Author:  Zorax [ Thu Mar 31, 2011 10:21 am ]
Post subject:  Re: Forcing windowed mode to stay open

Yeah it's kinda buggy from time to time.
I find that an alt-tab to another app in full screen mode sometimes confuses the hidingprog, resulting in an error msg.

Once you see an errormsg (or not if you clicked it away, cause the program acts like it will continue to run) I found the easiest way to fix is to kill d2loader and nohide in the taskmgr and start everything up again.

Author:  blue_myriddn [ Thu Mar 31, 2011 10:23 am ]
Post subject:  Re: Forcing windowed mode to stay open

it also really gets fubar'd when u open multiple windows of the loader to mule.

buggy program, but still all around handy.

Author:  Zorax [ Thu Mar 31, 2011 11:21 am ]
Post subject:  Re: Forcing windowed mode to stay open

Yes, but that part is explainable. (i'm sure the rest is too..)

When I browsed the source code I saw that the program looks for a window with the name Diablo II and try to make that parcticular window the active window. Kinda hard to do that with 2 windows :)

Author:  PureRage-DoD [ Thu Mar 31, 2011 12:16 pm ]
Post subject:  Re: Forcing windowed mode to stay open

making a seperate shortcut and removing the -title from that one for muling will sort it

Author:  blue_myriddn [ Thu Mar 31, 2011 12:39 pm ]
Post subject:  Re: Forcing windowed mode to stay open

PureRage-DoD wrote:
making a seperate shortcut and removing the -title from that one for muling will sort it

oh! clever

Author:  Clown [ Thu Mar 31, 2011 3:17 pm ]
Post subject:  Re: Forcing windowed mode to stay open

PureRage-DoD wrote:
making a seperate shortcut and removing the -title from that one for muling will sort it

ya i like to keep 2 set of short cut on desktop 1 tittled for my play window and other for mule just as u say

Author:  PmP [ Fri Apr 29, 2011 11:34 am ]
Post subject:  Re: Forcing windowed mode to stay open

ISO Sticky

Author:  Zorax [ Sun Jun 26, 2011 12:01 pm ]
Post subject:  Re: Forcing windowed mode to stay open

Not entirely happy with the previous result, I searched some more and found this. Still not what I was hoping for, but better for now.
(would be perfect if it made the active window appear as foreground and not keep it hidden behind other windows)

edit:
nvm, just realized that it doesn't load the mod, the usual parameters don't work for game.exe

edit2:
Actually, the parameters do seem to work , but it doesn't let me re-equip the merc (unequip works fine) or use the newstats feature and possibly other mod related things. Yeah I know, sounds like a bad install, however, when I use d2loader.exe or Diablo II.exe from/in the same dir with the same setup, everything (including equip merc etc) works as expected.

I have been playing around with the source code to see if I could find where d2window fails in utilizing the mod, but I'm no c# programmer so this was quite limited. I did manage to get the autostart option to work by changing game.exe to Game.exe and also tried hardcoding the parameters -w -direct -txt -skiptobnet , but no change in outcome. Skiptobnet is working and I assume so are -direct -txt, cause i see things like marilyth and darkportal in d2yymmdd.txt. So at the moment I'm rather clueless why it's not working the same as d2loader or diablo II.

Has anybody else tried d2window?

edit3:
Changed the source so that .WorkingDirectory doesn't have the same value as .FileName but the actual workingdirectory and it seems it's working now.

Attachments:
File comment: original source
D2window.rar.source.rar [60.95 KiB]
Downloaded 766 times
File comment: modified exe
D2window.zip [9.84 KiB]
Downloaded 737 times

Author:  Mute2k16 [ Wed Mar 02, 2016 7:18 pm ]
Post subject:  Re: Forcing windowed mode to stay open

Hi I just saw this old topic downloaded the .rar .zip files, how do I make it work?
I mean what should I do after extracting them in which folder do I have to put them and which .exe should I use? And does this work with HU 1.6b?

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/