"Choose browse tool" not working

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
kaveh1000
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 539
Joined: Sun Dec 18, 2011 7:23 pm
Contact:

"Choose browse tool" not working

Post by kaveh1000 » Thu Jul 17, 2014 7:30 pm

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.
Kaveh

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: "Choose browse tool" not working

Post by LCNeil » Thu Jul 17, 2014 8:01 pm

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

kaveh1000
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 539
Joined: Sun Dec 18, 2011 7:23 pm
Contact:

Re: "Choose browse tool" not working

Post by kaveh1000 » Thu Jul 17, 2014 8:28 pm

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...
Kaveh

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: "Choose browse tool" not working

Post by jmburnod » Thu Jul 17, 2014 9:40 pm

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
https://alternatic.ch

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: "Choose browse tool" not working

Post by sturgis » Sun Sep 14, 2014 8:04 pm

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)

Post Reply