Source language: Translate to:

Rectangle Application

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

Rectangle Application

Postby Neobook » Sun Jan 07, 2007 1:46 am

Hello,

It is possible when for example, I have run in rectangle an application with a PushButton, when, I had write a code to SetMouse it has to go to the PushButton and click, I can do that, but if I move the rectangle with the apllication, it doesn't work.


How can I do ?

Thanks
Neobook
 
Posts: 131
Joined: Sat Jul 01, 2006 7:07 am

Postby virger » Sun Jan 07, 2007 10:06 am

Redifine the coordena inside of the pushbutton the rectangle. When you move that the relative position of push button change.
User avatar
virger
 
Posts: 524
Joined: Mon Sep 18, 2006 12:21 pm
Location: Costa Rica, America Central

Postby Neobook » Sun Jan 07, 2007 11:02 am

Thanks

I don't understand how to do
Neobook
 
Posts: 131
Joined: Sat Jul 01, 2006 7:07 am

Postby Neosoft Support » Mon Jan 08, 2007 11:53 am

Try using GetObjectInfo to determine the rectangle's position, then use that as a starting point for your SetMousePos action. For example:

Code: Select all
GetObjectInfo "Rectangle1" "Left" "[RectLeft]"
GetObjectInfo "Rectangle1" "Top" "[RectTop]"
SetMousePos "[RectLeft]+100" "[RectTop]+50"


Replace 100 and 50 above with the coordinates of the push button relative to the edge of the rectangle.
NeoSoft Support
Neosoft Support
NeoSoft Team
 
Posts: 5605
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA

Postby Neobook » Tue Jan 09, 2007 11:48 am

Hi

Thanks

It works very well
Neobook
 
Posts: 131
Joined: Sat Jul 01, 2006 7:07 am


Return to NeoBook Action Commands

Who is online

Users browsing this forum: No registered users and 1 guest