Page 1 of 1

"Choose browse tool" not working

Posted: Thu Jul 17, 2014 7:30 pm
by kaveh1000
When I open LiveCode (Mac 6.5.0) it opens in pointer tool. I want it to open with browse tool as default. I have a stack where I say in OpenStack:

answer the tool
choose browse tool
answer the tool

It shows browse tool for both dialog boxes, but pointer tool is chosen after the script. When I choose browse tool via msg box, it works correctly. I have tried locking screen before and after choosing browse tool but no effect.

Re: "Choose browse tool" not working

Posted: Thu Jul 17, 2014 8:01 pm
by LCNeil
Hi Kaveh1000,

I tried creating a blank stack with your script and all is working as expected

This could be a bug in the version of LiveCode you are using as 6.5.0 is quite old now. Please update to the latest stable version of LiveCode (6.6.2) and try your script again.

Kind Regards,


Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com

Re: "Choose browse tool" not working

Posted: Thu Jul 17, 2014 8:28 pm
by kaveh1000
Hi Neil

Thank you very much for trying this out. I have upgraded to the latest community version. Strange that when I checked in preferences/updates, it said no updates found...

A pleasant surprise is that it seems retina display is supported in the script editor. :-)

I tried the browse handler in a new stack and it works too, but strangely not in the older stack. I will play around and for now no big deal.

Do you know how I can set LiveCode to open with browse tool? Right now, even if I close the application with browse tool selected, it reopens with pointer...

Re: "Choose browse tool" not working

Posted: Thu Jul 17, 2014 9:40 pm
by jmburnod
Hi kaveh1000,
how I can set LiveCode to open with browse tool?
You can use:

Code: Select all

on preOpenStack
      choose browse tool
end preOpenStack
Best regards
Jean-Marc

Re: "Choose browse tool" not working

Posted: Sun Sep 14, 2014 8:04 pm
by sturgis
you can also use jmburnods script in a stack that you save to the plugins folder, and set it to open when livecode starts (invisible) , and as part of the script, have it close itself. That way, LC will open, the script will run, choosing the browse tool, then it'll go away. (might put the script on preopencard instead, or even opencard so that LC is far enough along for the browse tool command to work reliably)