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
Contact:

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

Post by Fasasoftware »

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: 2734
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

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

Post by jmburnod »

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
Contact:

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

Post by Fasasoftware »

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: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

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

Post by Klaus »

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
Contact:

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

Post by Fasasoftware »

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

lestroso
SparkOut
Posts: 2984
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 »

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 367 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 »

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