Page 1 of 1

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

Posted: Mon Apr 07, 2014 10:48 pm
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:

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

Posted: Mon Apr 07, 2014 11:42 pm
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

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

Posted: Tue Apr 08, 2014 12:31 pm
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

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

Posted: Tue Apr 08, 2014 12:34 pm
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

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

Posted: Tue Apr 08, 2014 12:57 pm
by Fasasoftware
thanks klaus....sob....so i can't....i hope in the future...thanks again to everybody....

lestroso

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

Posted: Thu Apr 10, 2014 2:03 pm
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

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

Posted: Thu Apr 10, 2014 3:50 pm
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