How to point a Loc in a Screen And Make A Click on it??

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Fasasoftware
Posts: 203
Joined: Mon Oct 31, 2011 9:36 pm
Location: Italy
Contact:

How to point a Loc in a Screen And Make A Click on it??

Post by Fasasoftware » Mon Apr 07, 2014 10:48 pm

Dear friends,

How to point a Loc in a Screen And Make A Click on that point??? In other words select a point in the screen and then click on it to do something???

Can you help me please with some demo codes??? Best regads,

Lestroso :oops:

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: How to point a Loc in a Screen And Make A Click on it??

Post by jmburnod » Mon Apr 07, 2014 11:42 pm

Hi Lestroso
If i understand correctly what you want
Why not ?

Code: Select all

   click at the loc of btn 1 -- or other loc that you want
Kind regards

Jean-Marc
https://alternatic.ch

Fasasoftware
Posts: 203
Joined: Mon Oct 31, 2011 9:36 pm
Location: Italy
Contact:

Re: How to point a Loc in a Screen And Make A Click on it??

Post by Fasasoftware » Tue Apr 08, 2014 12:31 pm

the click function don't work because i would like to click another window app outside the main livecode stack...Is there any other manner to do clik outside the main windows??

Thanks A lot,

Best regards,

Lestroso

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: How to point a Loc in a Screen And Make A Click on it??

Post by Klaus » Tue Apr 08, 2014 12:34 pm

Hi Lestroso,
Fasasoftware wrote:Is there any other manner to do clik outside the main windows??
not with the build-in means.


Best

Klaus

Fasasoftware
Posts: 203
Joined: Mon Oct 31, 2011 9:36 pm
Location: Italy
Contact:

Re: How to point a Loc in a Screen And Make A Click on it??

Post by Fasasoftware » Tue Apr 08, 2014 12:57 pm

thanks klaus....sob....so i can't....i hope in the future...thanks again to everybody....

lestroso

SparkOut
Posts: 2839
Joined: Sun Sep 23, 2007 4:58 pm

Re: How to point a Loc in a Screen And Make A Click on it??

Post by SparkOut » Thu Apr 10, 2014 2:03 pm

On Windows you could do this with an external (not something I could help with). You CAN use a shell command to run a pre-compiled application which does have a mouse event interface. Here is an AutoIT script which can do the mouse clicking. You can choose the "Compile With Options" version and create a CUI interface (ie, not a GUI - there is a checkbox option for this). That way you can pass arguments and retrieve return value to/from the console application.
If you write out the CUI compiled app to the temporary folder and use shell to run it, you can send it parameters to choose your click location and options. I will also find somewhere to upload a little sampler (too big to attach to the forum post) which contains the CUI compiled script as a custom property of the stack and you can see how it operates.



Edit: here is the sampler location (it may not stay there for that long) http://mapleitsolutions.on-rev.com/test ... r.livecode
Attachments
MouseClicksScript.zip
Unzip to .au3 file and edit with text editor
(590 Bytes) Downloaded 217 times

Thierry
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 875
Joined: Wed Nov 22, 2006 3:42 pm

Re: How to point a Loc in a Screen And Make A Click on it??

Post by Thierry » Thu Apr 10, 2014 3:50 pm

Fasasoftware wrote:the click function don't work because i would like to click another window app outside the main livecode stack...Is there any other manner to do clik outside the main windows??
May be worth having a look:

http://www.autohotkey.com/board/topic/5 ... utohotkey/

Disclaimer: I don't use this tool; it's just in my special bookmarks.

HTH,

Thierry
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”