XmoveWindow

Help each other out

XmoveWindow

Postby lar282 on Mon Feb 19, 2007 9:50 am

Hi
Anybody know if I can use xmovewindow with executable name instead of class name?


//Lasse
lar282
 
Posts: 1624
Joined: Thu Apr 01, 2004 4:13 pm
Location: Helsingborg, Sweden

Postby P3rv3rt B3ar on Mon Feb 19, 2007 9:56 am

I would say no u cant

Unless they happen to be same ofcourse...

But then again it wouldnt be first time some smarter dude would prove bear wrong...

but dont u need either like windowname or its classname to grab the windowhandle... and as we know name of executable can be just anything...
P3rv3rt B3ar
 
Posts: 1364
Joined: Fri Apr 07, 2006 9:52 pm
Location: West Coast Funland

Postby badubo on Mon Feb 19, 2007 10:04 am

You can use this :

As text (display of the zone) you can use instead of directly use the classname:

MyAlias(Class.classname,Title.caption,Exe.processname)

Class, Title and Exe are optionals (but at least one)
MyAlias is the name you want (no more the classname)

then as ID, you put :
screen_MyAlias
badubo
 
Posts: 505
Joined: Mon May 03, 2004 7:33 pm
Location: Belgium

Postby lar282 on Mon Feb 19, 2007 10:11 am

TEXT: plugin>XMoveWindow>MyAlias(VideoPlayer)
ID: tvnormal_MyAlias

no go

tried
TEXT: plugin>XMoveWindow>MyAlias(Exe.VideoPlayer)
ID: tvnormal_MyAlias

no go

TEXT: plugin>XMoveWindow>MyAlias(,,VideoPlayer)
ID: tvnormal_MyAlias

no go

the executable name is VideoPlayer.exe
screen name is tvnormal
and I use MyAlias as a alias
lar282
 
Posts: 1624
Joined: Thu Apr 01, 2004 4:13 pm
Location: Helsingborg, Sweden

Postby badubo on Mon Feb 19, 2007 10:18 am

You cannot set Exe alone, you must at least have a classname. The main window of an application is NEVER the one displayed.
The Exe. parameter allows to only search inside this process in case the name of the window class is too common and is used by several applications

So, you have at least to put

plugin>XMoveWindow>MyAlias(Class.TheDisplayWindowClassName,Exe.VideoPlayer)
Last edited by badubo on Mon Feb 19, 2007 10:20 am, edited 1 time in total.
badubo
 
Posts: 505
Joined: Mon May 03, 2004 7:33 pm
Location: Belgium

Postby lar282 on Mon Feb 19, 2007 10:19 am

damn....

ok, thank u for the help....


//Lasse
lar282
 
Posts: 1624
Joined: Thu Apr 01, 2004 4:13 pm
Location: Helsingborg, Sweden