Home‎ > ‎

MySites

Create a Card with Your Favorite Websites:

 and add buttons with images and code to go to each of your favorite websites:



    Example of a card with your favorite websites:


    add buttons with images and code to go to each of your favorite websites:


    e.g. 


                             

The following is a sample of the code from each button in the first column:

        on mouseUp

               launch url "https://www.gmail.com/"

        end mouseUp


         on mouseUp

               launch url "https://family.sis.pgcps.org/schoolmax/reset.do?0Mjumkz13-SgYEjWekr3%3dxguw3YEa.aU7zaju.xnn.xGOSG-OG-                 Sh%2bSS%256UOd%256U6D.qhhgwEkeUsrgwUVm3sEV"      // pasted from a normal browser window after going to this site to get this url

        end mouseUp


        on mouseUp

               launch url "http://www.collegeboard.org/"

        end mouseUp

    
        etc

Notes:
      if a filename has a space in the document name then revBrowser will silently fail. Replacing space with %20 cures this. replace " " with "%20" in myUrl


 (more examples at the bottom of this page....



How To Do The Code:

1. Launch url - Opens a url (file/website/application/etc) in the correct application

Use the launch url command to open a url using the default action for the current system. The command performs an action appropriate to the protocol and address provided in the given URL. 

Using: 
Launch url  <urlToOpen> 

    where:
urlToOpen is the url to launch. Can be in the following forms:   
http: url - will launch in the default browser application if available.
file: path - open the file in the associated application
tel: url - open the dialer with a given phone number

Examples: 
launch url "http://www.livecode.com"
launch url "file:/Users/ben/Desktop/test.pdf"
launch url "tel:44 7818 8822"

  
     You can open up websites:

        on mouseUp

               launch url  "http://google.com" 

        end mouseUp


        more examples

launch url "http://www.livecode.com" with "C:\Program Files\Google\Chrome\Application\chrome.exe"
launch url "file:/Users/ben/Desktop/test.pdf"
         launch "http://google.com" with "C:\Program Files\Google\Chrome\Application\chrome.exe"



     You can also open up documents:

         launch url "file:/Users/ben/Desktop/test.pdf"


     You can even start a phone call


        on mouseUp

               launch url "tel:301 521 3333"

               launch url "tel:1 301 521 3333"

        end mouseUp



2. Launch Document
  - O
pens a file/document/website/etc with the operating system's default program. 
The simplest way to display a document is to use the "launch document" command. It is the easiest way. This opens the document with the default program on your computer e.g Word, Excel, Safari, Chrome, etc

        on mouseUp

               launch document "Bell Schedule.pdf" 

        end mouseUp



        more examples

              launch document "Bell Schedule.pdf"       - open up a pdf or jpg (cut and saved from the ERHS website)

              launch document "MyReport.doc"             - open up a Word document in Word or Pages

              launch document  "Expenses.xls"             - open up a spreadsheet in Numbers or Excel

              launch document "Presentation.ppt"          - open up a PowerPoint show

      



        ... more detail here:  Displaying Websites and Documents



Now create one of your own with Your personal links, documents,  pictures...
      experiment to see what works best for you



Examples:

 

  

Comments