[quote="Dominus"]a pathless way to move with autohotkey, especially usefull when you have a autohotkey script running anyway to move stuff around or so:
[code]
WinMove, DOSBox,, 0, 0,,,DOSBox Status Window ;moves the main window
WinMove, DOSBox Status Window,, 0, 0 ;moves the console window[/code]
It might need to be in a timer so it would look like this:
[code]
#NoEnv
#Persistent ; the time always runs
SetTimer, dosbox, 250 ; timer will be executed every 250ms
Return
dosbox:
{
WinMove, DOSBox,, 0, 0,,,DOSBox Status Window ;moves the main window
WinMove, DOSBox Status Window,, 0, 0 ;moves the console window
}
return[/code]
0,0 is the pixel position of the upper left corner of the window on the desktop. 0,0 is the upper left corner of your desktop.
further code explanation:
WinMove, DOSBox,, 0, 0,,,DOSBox Status Window
<- this moves any Window with Dosbox in the title (so all versions of Dosbox, if you want to differ between them, write WinMove, Dosbox 0.72....), except the Window with the title "DOSBox Status Window" (the console window), so you can place them independently.
BUT I'm sure that somewhere in the autohotkey forums is a script which will save Windows postition and will restore them for any program :)[/quote]
Thanks. This is a better script than my cumbersome one. I couldn't figure out how to implement the timer thing. This is useful to me. Too bad that the DOSBox developers probably won't be able to provide a native screen save position feature. Ah well.
C.