Change WindowScale on focus?
Moderators: Lavish Software Team, Moderators
Change WindowScale on focus?
I'm trying to set up IS exactly like my WinEq2 tiled windows. I have 4 tiled, with background scale set to .5 and foreground to .75 in wineq2.
I can set WindowScale in IS - but how would I make it change for background vs foreground?
I can set WindowScale in IS - but how would I make it change for background vs foreground?
Ok should have mentioned this is for EQ1. I can't get windowsnapper or any window commands (windowsize, windowpos) to work correctly.
Any change to the window size from what the game thinks it is (with autolayout or with windowsize) leaves areas of the window unable to get input (white mouse cursor instead of game cursor over much of the screen).
I assume this has something to do with the distortion and how EQ1 handles resized windows. I've tried every variation of the windowsize command with the same results. Same issues with all variations of autolayout - all configurations leave distortion and input issues.
Any change to the window size from what the game thinks it is (with autolayout or with windowsize) leaves areas of the window unable to get input (white mouse cursor instead of game cursor over much of the screen).
I assume this has something to do with the distortion and how EQ1 handles resized windows. I've tried every variation of the windowsize command with the same results. Same issues with all variations of autolayout - all configurations leave distortion and input issues.
Are you launching with the EverQuest, No Patch profile? Or did you do sometihng like "Add Game" with a name other than "EverQuest"? I ask because based on the IS Game name being EverQuest there's some mouse scaling fixes.
Distortion shows how objects are drawn, nothing to do with the mouse -- if there is any distortion, things will look stretched in some direction
Distortion shows how objects are drawn, nothing to do with the mouse -- if there is any distortion, things will look stretched in some direction
I just uninstalled IS, reinstalled fresh, deleted all my eqclient.ini files, and ran the EverQuest no patch profile from my clean IS. Loaded into game, switch to windowed mode in-game (default starts up in fullscreen), and tried both windowsize 840x525 and windowscale 50%, both with same result - only the upper-left 25% of the window could get mouse input.
I just tried one last thing to see if this gives you any clue. I fired up EQ in windowed 1680x1050, then ran:
windowframe none
windowpos -viewable 0,0
windowsize -viewable 1260x788
Then ran displayinfo:
Adapter Resolution: 1680x1050
Current display mode: 1680x1050 (windowed)
Window viewable size: 1260x788
Display Scale: 75.0%x75.0%, Distortion: 0.0%
Then ran a script I created that does the mouse transforms I found under EQSession:
function main()
{
echo X width ${Display.Width}, viewable width ${Display.ViewableWidth}
echo Y height ${Display.Height}, viewable height ${Display.ViewableHeight}
echo setting mouse scale ...
Mouse.ScaleX:Set[${Display.Width}/${Display.ViewableWidth}]
Mouse.ScaleY:Set[${Display.Height}/${Display.ViewableHeight}]
echo Mouse ScaleX ${Mouse.ScaleX}
echo Mouse ScaleY ${Mouse.ScaleY}
}
And the output of that was:
X width 1680, viewable width 1260
Y height 1050, viewable height 788
setting mouse scale ...
Mouse ScaleX 1.333333
Mouse ScaleY 1.332487
And still having the same issues, right and bottom of window get no mouse input. Does anything here look suspect?
windowframe none
windowpos -viewable 0,0
windowsize -viewable 1260x788
Then ran displayinfo:
Adapter Resolution: 1680x1050
Current display mode: 1680x1050 (windowed)
Window viewable size: 1260x788
Display Scale: 75.0%x75.0%, Distortion: 0.0%
Then ran a script I created that does the mouse transforms I found under EQSession:
function main()
{
echo X width ${Display.Width}, viewable width ${Display.ViewableWidth}
echo Y height ${Display.Height}, viewable height ${Display.ViewableHeight}
echo setting mouse scale ...
Mouse.ScaleX:Set[${Display.Width}/${Display.ViewableWidth}]
Mouse.ScaleY:Set[${Display.Height}/${Display.ViewableHeight}]
echo Mouse ScaleX ${Mouse.ScaleX}
echo Mouse ScaleY ${Mouse.ScaleY}
}
And the output of that was:
X width 1680, viewable width 1260
Y height 1050, viewable height 788
setting mouse scale ...
Mouse ScaleX 1.333333
Mouse ScaleY 1.332487
And still having the same issues, right and bottom of window get no mouse input. Does anything here look suspect?
For now to solve this I'm just making my window size 1280x960 in game and setting it to that size in IS with another area to snap to (maybe it can't handle game window larger than viewable area).
New question / problem.
EQ1 creates a new window when character select loads, so previous window commands from my startup script are lost (i.e. window frames come back, position changes, etc).
Can I hook into this event somehow to auto-run a script to layout all my windows again after they hit the character select screen?
New question / problem.
EQ1 creates a new window when character select loads, so previous window commands from my startup script are lost (i.e. window frames come back, position changes, etc).
Can I hook into this event somehow to auto-run a script to layout all my windows again after they hit the character select screen?
Interesting. Well, you can try setting ScaleX and ScaleY to 0 and see what effect that has on EQ. EQ does a lot of weird (or maybe just inconvenient) things as you are finding out with the character select thing.
You can try the "On Window Position" event.
Something like:
Note: it could end up with an infinite loop though, you can check ${Display.Width}, ${Display.Height} and such.
Sorry I have a kid screaming in my ear so I'll get back to you when I can
You can try the "On Window Position" event.
Something like:
Code: Select all
function main()
{
.
.
.
Event[On Window Position]:AttachAtom[OnWindowPosition]
}
atom OnWindowPosition()
{
windowpos etc
windowsize etc
}
Sorry I have a kid screaming in my ear so I'll get back to you when I can
