Jump to content
Sign in to follow this  

Fridays' Swyx Tip #22: Open file or webpage

Tom Wellige

18 views

From 2009 to 2011 mirjam baumberger wrote a great blog, the "Fridays' Swyx Tip". Every Friday she posted a tip regarding the usage of SwyxWare and connected tools and devices. As the old forum is offline, this article series will be restored here again over the time. Please note that some information in this article series might not be valid anymore with current SwyxWare versions.

 

This blog article was originally posted on 02.07.2009 22:00

 

Dear Swyx Users

 

Did you know that with a single mouse click one can open an application or website directly from SwyxIt!?

 

Shortcuts are used to create links to frequently used programs and web pages. This allows you to call an online phone book or open a word document with just one click.

 

On the “Standard Skin”, only the Swyx logo is defined as a shortcut button. But one can easy can configure additional shortcut buttons with the Skin Editor. In the sample below you can see the Yellow-Page logo and three additional buttons on the top right corner.

 

WLW-openfileorwebpage_12C77-SwyxItShortcutsSmall_2.jpg

 

To link a web-site to a shortcut button is really easy:
 

  1. Right click on the logo and select properties

    WLW-openfileorwebpage_12C77-rightclick.jpg
     
  2. Set the command field to "http://www.yellowpage.co.nz"
     
  3. Click on OK
     
  4. Finished !!!

    A single click on the shortcut is now opening the yellow-pages website :- )

    WLW-openfileorwebpage_12C77-Yellowpage.jpg

    So far a no-brainer... additionally I have configured three more buttons.

    WLW-openfileorwebpage_12C77-openShortcuts_2.jpg

 

This is how you link a word document to a Shortcut button:
 

  1. Click the right mouse button on the Shortcut button.
     
  2. Click on "Properties"
     
  3. Enter the full path of the document to be run in the "Command" field. C:\Documents and Settings\[user name]\My Documents\IC_request_form.doc

    WLW-openfileorwebpage_12C77-clip_image011_2.jpg
     
  4. In the field "Working directory", you have the option of entering the path to the working directory you want.

    Programs sometimes require files which are stored in another location. For this reason, you enter the path to the working directory here so that these file can be located.
     
  5. Click on "OK".
     
  6. Finished

    A single click on the shortcut is now opening the word document 🙂

    WLW-openfileorwebpage_12C77-IC_request.jpg

 

It can also get more advanced, as one can run a small VB Script file, and pass on caller information such as number or caller names. The sample below opens Google and searcher for the number displayed in your SwyxIt soft phone.

 

WLW-openfileorwebpage_12C77-SerachNumberinGoogle_2.jpg    WLW-openfileorwebpage_12C77-SearchNumberGoggle.jpg

 

' url to open
dim szURL
dim szPOSTURL
szURL = "http://www.google.co.nz/search?hl=en&q=+"
szPOSTURL = "&meta=cr%3DcountryNZ&"

' get SwyxIt Line Manager object
dim clmgr
set clmgr = WScript.CreateObject("CLMGR.ClientLineMgr")

' get currently selected line
dim oLine
set oLine = clmgr.DispSelectedLine

dim szNumber
szNumber = oLine.DispPeerNumber

' open URL if the number is not empty
If Len(szNumber) <> 0 Then
	dim oWsh
	set oWsh = WScript.CreateObject("WScript.Shell")
	oWsh.Run szUrl + right(szNumber,Len(szNumber)-1) + szPOSTURL
End If

 

Any questions?

 

Have a good weekend and happy Swyxing...

 

Regards

Mirjam

 

@ IT Net World Ltd, NZ & AUS SWYX Distributor

http://www.itnetworld.co.nz/

 



0 Comments


Recommended Comments

There are no comments to display.

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and have taken note of our Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.