drag and drop question

  • Автор темы Автор темы surfmore
  • Дата начала Дата начала

surfmore

Client
Регистрация
08.09.2011
Сообщения
139
Реакции
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
 
Try to set 1 instance per process in settings. Maybe this will help.
Otherwise i cannot suggest anything except to keep instances open.
 
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.
 
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
 
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
 
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
 

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