drag and drop question

surfmore

Client
Регистрация
08.09.2011
Сообщения
138
Благодарностей
7
Баллы
18
Hi,

I have a template that i use the drag and drop feauture. It works well in projectmaker and also when i launch on zennoposter, click to see the thread and maximize the windows.

But when i choose to not see the thread or I keep the windows half screen (as the default opening when I click on show button) the drag and drop dont work.

I am using mouse coordinates to do it, so i guess the position changes depending on how the windows is being displayed.

Any suggestions how to solve this problem?

thanks
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
Try to set 1 instance per process in settings. Maybe this will help.
Otherwise i cannot suggest anything except to keep instances open.
 

surfmore

Client
Регистрация
08.09.2011
Сообщения
138
Благодарностей
7
Баллы
18
Is there any place to set up the instances to automatically open maximized? Because now I have to manually maximize each windows thread, so i need to be baby sitting my template all the time.
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 771
Благодарностей
1 182
Баллы
113
First if problem is with coordinates and window size then you have wrong searching for your needed elements.
You have to search element on page by standard actions, then get widthInBrowser and heightInBrowser attributes and then drag and drop your element.

Code to set same windows size is there:

C#:
instance.SetWindowSize(1200, 800);
Cheers
 

surfmore

Client
Регистрация
08.09.2011
Сообщения
138
Благодарностей
7
Баллы
18
And how do i do this? It is the first time i use this drag and drop and all i did was to point the mouse where i wanted to drag the element and see the coordinates in the menu bellow, took note of these coordinates and put on the drop element settings. I guess this is the wrong way to do it.

http://prntscr.com/bsulg5

How do i get widthInBrowser and heightInBrowser attributes ?

thanks for your help
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 771
Благодарностей
1 182
Баллы
113
And how do i do this? It is the first time i use this drag and drop and all i did was to point the mouse where i wanted to drag the element and see the coordinates in the menu bellow, took note of these coordinates and put on the drop element settings. I guess this is the wrong way to do it.

http://prntscr.com/bsulg5

How do i get widthInBrowser and heightInBrowser attributes ?

thanks for your help
Hey sorry I missed right names. Its leftinbrowser and topinbrowser. Use those to get right coordinates. Using forum search i found this tutorial http://zennoposter5.com/zennoposter-tutorials/clicks-on-flash-buttons-in-zennoposte/

Thanks
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)