moving the windows Thread last updated on 2003-11-11 18:21:06

Posted by member 43611 on 2003-11-09 13:47:51

hi,
what for a module i have to use when i want that when i move the windows ( for example internet explorer ) they stop when they reach my startbar. otherwise the go over my startbar ...
Can you say me the name of that module.

Sorry 4 my bad englisch !

sl4m

Posted by member 18600 on 2003-11-09 16:12:21 link

for moving windows, use winplace. check out the module called "one" also, for similar features in this catagory

Posted by member 7223 on 2003-11-10 04:16:33 link

If I don't misunderstand you; you want a kind of "snap windows to taskbar" feature ?

If I'm right, you'll have to use RabidVWM and do some scripting :)

Posted by member 43611 on 2003-11-10 08:57:46 link

hm... no, i think you didn't understood me.
At the time i can move my windows ( 4 example internet explorer ) over my startbar but i want that the windows stop befor they reach the startmenu. i know, its not easy to understand this in my bad english ( if there is a german who is good in litestep i could explain it to him in german ... would be easy ;) )

sl4m

edit : ok i made a screeni of my problem: http://mitglied.lycos.de/slam02/litestep_problem.jpg
how can i stop this ? ( with the startbar ;) )

Posted by member 7223 on 2003-11-10 11:45:57 link

Yes, this is what I've been talking about :)

You'll need this to do that:
- RabidVWM
- MZScript
- WndMan (or something similar to move your windows)

Then, you could try something like:
; call !WindowMovingTest with the "handle" of the window as argument
VWMOnMoveWindow !WindowMovingTest ^@ch^

with !WindowMovingTest:
*script bang !WindowMovingTest
; find window position (x, y)
*script exec !vwmexec !varset x ^@wxs(#h %{\1})^
*script exec !vwmexec !varset y ^@wys(#h %{\1})^
; now, we just have to test if x &lt %{borderleft}
; and move the window if needed
*script exec !ifeval ("%{x}" &lt "%{borderleft}") |wndmove %active% %{borderleft} %{y}
; make more tests if you like
*script ~bang

*script start !varset borderleft 50

Posted by member 43611 on 2003-11-10 11:59:20 link

in what for a *.rc file do i have to copy this script ?
sorry ... this is my first theme and im still a newbie !

it would be very very nice of you if you could prepaer the script for me. you have the x and y's from the image.
Would be very nice. Sorry im not good in those scripts.

Sl4m

Posted by member 37 on 2003-11-10 13:00:32 link

Is pehaps what this fellow is asking for, is to control the desktop work area?

ex:
jDeskWorkArea "4,-4,28,-4"
for jdesk or

ex:
SetDesktopArea on
SDALeft 4
SDARight -4
SDATop 28
SDABottom -26
for desktop2

Posted by member 1316 on 2003-11-10 14:19:38 link

Phar0e, not exactly. he doesn't want to be able to move files past the specified desktop area at all. which I don't think is possible yet, even though it would be nice. unless if that's what smurth's code is supposed to prevent?

Posted by member 43611 on 2003-11-10 14:26:18 link

i mean : if i max my explorer window it opens over my startbar and i want to stop this. in all themes is this ... it is possible

Posted by member 43611 on 2003-11-10 14:48:43 link

cool ! i made it :D many thanks to all helpers !!? ( made it with jdeskworkarea ... it very simple :> jDeskWorkArea "172,0,0,0" thats all ( thanks to Phar0e ))

But now i have another problem ( :> ) with shortcuts ( module shortcut2.dll ). in my startbar i have 5 shortcuts, by clicking on the shortcuts it should open a popup menu ... but this just works with the first shortcut.

my code is
include "C:\Shells\LiteStep_loose-screws\themes\cissOn\config\popup_programme.rc"
include "C:\Shells\LiteStep_loose-screws\themes\cissOn\config\popup_spiele.rc"
include "C:\Shells\LiteStep_loose-screws\themes\cissOn\config\popup_lieder.rc"
include "C:\Shells\LiteStep_loose-screws\themes\cissOn\config\popup_moviez.rc"
include "C:\Shells\LiteStep_loose-screws\themes\cissOn\config\popup_download.rc"

*shortcut "" 14 274 programme.bmp programme_h.bmp .none #0T [!popup_programme]
*shortcut "" 96 274 spiele.bmp spiele_h.bmp .none #0T [!popup_spiele]
*shortcut "" 14 296 lieder.bmp lieder_h.bmp .none #0T [!popup_lieder]
*shortcut "" 96 296 moviez.bmp moviez_h.bmp .none #0T [!popup_moviez]
*shortcut "" 14 318 download.bmp download_h.bmp .none #0T [!popup_download]


i have included 5 rc files named popup_programme, popup_spiele, etc ...

code of popup_programme is

*Popup !New !popup_programme !PopupFolder:"C:\Dokumente und Einstellungen\Besitzer\Desktop\programme"

*Popup !Separator

*Popup "add program" !execute ["$FileManager$" /e,"C:\Dokumente und Einstellungen\Besitzer\Desktop\programme"]

*Popup ~New


code of popup_spiele is
*Popup !New !popup_spiele !PopupFolder:"C:\Dokumente und Einstellungen\Besitzer\Desktop\spiele"

*Popup !Separator

*Popup "add game" !execute ["$FileManager$" /e,"C:\Dokumente und Einstellungen\Besitzer\Desktop\spiele"]

*Popup ~New


now ... why only opens the programme popup menu ... i dont understand this o.O ... the code is the same in popup_spiele ... confusing !! please help me

sl4m

Posted by member 36955 on 2003-11-10 17:47:10 link

hmmm... it looks to me like you have defined the games popup as !spiele instead of !popup_spiele like it is in the popup

Posted by member 43611 on 2003-11-11 07:15:48 link

ah you are right. i fixed it, but it still dont work.

edit: Thats very confusing ... i put the popup_spiele.rc include on the first place ( befor the popup_programme.rc include ) and now only the popup_spiele shortcut works ... o.O !!! quit confusing !

Posted by member 1316 on 2003-11-11 12:17:38 link

I believe you shouldn't need to put:
[!popup_spiele]
just:
!popup_spiele

Posted by member 43611 on 2003-11-11 13:02:37 link

nothing changed ... some problem !

Posted by member 182 on 2003-11-11 18:21:06 link