Script sayDropboxStatus () var int iTrayItems, int iCounter, int iMouse, string sDropboxTip, string sDropboxVersion let iTrayItems = SysTrayGetItemCount () while iCounter < iTrayItems let iCounter=ICounter+1 let sDropboxTip = SysTrayGetItemToolTip (iCounter) if stringLeft(sDropboxTip,7) == "dropbox" then let iMouse = iCounter let iCounter = 12345 endIf endwhile if iCounter != 12345 then say("Dropbox not found",ot_error) return endIf if IsSameScript() == 1 then sayUsingVoice(vctx_message,"Opening your Dropbox",ot_no_disable) saveCursor() SysTrayMoveToItem (iMouse) LeftMouseButton () leftMouseButton() restoreCursor() return endIf let sDropboxTip = stringSegment(sDropboxTip,"\n",2) sayUsingVoice(vctx_message,sDropboxTip,ot_no_disable) EndScript On 9/14/10, Jackie McBride <abletec@xxxxxxxxx> wrote: > Script sayDropboxStatus () > var > int iTrayItems, > int iCounter, > int iMouse, > string sDropboxTip, > string sDropboxVersion > let iTrayItems = SysTrayGetItemCount () > while iCounter < iTrayItems > let iCounter=ICounter+1 > let sDropboxTip = SysTrayGetItemToolTip (iCounter) > if stringLeft(sDropboxTip,7) == "dropbox" then > let iMouse = iCounter > let iCounter = 12345 > endIf > endwhile > > if iCounter != 12345 then > say("Dropbox not found",ot_error) > return > endIf > if IsSameScript() == 1 then > sayUsingVoice(vctx_message,"Opening your Dropbox",ot_no_disable) > > saveCursor() > SysTrayMoveToItem (iMouse) > LeftMouseButton () > leftMouseButton() > restoreCursor() > return > endIf > > let sDropboxTip = stringSegment(sDropboxTip,"\n",2) > sayUsingVoice(vctx_message,sDropboxTip,ot_no_disable) > EndScript > > > On 9/14/10, bharatvaya <bharatvaya@xxxxxxxxx> wrote: >> hi I am getting compiling error in dropbox. somebody wrote something is >> rong >> around save cursor but I don't know how to solve that because I am unable >> to >> figure it out can anybody do it for me? I am pasting the code bellow. >> ;start copying from this line: Dropbox Code >> Script sayDropboxStatus () >> var >> int iTrayItems, >> int iCounter, >> int iMouse, >> string sDropboxTip, >> string sDropboxVersion >> let iTrayItems = SysTrayGetItemCount () >> while iCounter < iTrayItems >> let iCounter=ICounter+1 >> let sDropboxTip = SysTrayGetItemToolTip (iCounter) >> if stringLeft(sDropboxTip,7) == "dropbox" then >> let iMouse = iCounter >> let iCounter = 12345 >> endIf >> endwhile >> >> if iCounter != 12345 then >> say("Dropbox not found",ot_error) >> return >> endIf >> if IsSameScript() == 1 then >> sayUsingVoice(vctx_message,"Opening your Dropbox",ot_no_disable) >> >> saveCursor() >> SysTrayMoveToItem (iMouse) >> LeftMouseButton () >> leftMouseButton() >> restoreCursor() >> return >> endIf >> >> let sDropboxTip = stringSegment(sDropboxTip,"\n",2) >> sayUsingVoice(vctx_message,sDropboxTip,ot_no_disable) >> EndScript >> >> ;this is the end of the Dropbox code >> bharat vaya >> __________� >> >> View the list's information and change your settings at >> //www.freelists.org/list/jawsscripts >> >> > > > -- > Change the world--1 deed at a time > Jackie McBride > Scripting Classes: http://jawsscripting.lonsdalemedia.org > homePage: www.abletec.serverheaven.net > For technophobes: www.technophoeb.com > -- Change the world--1 deed at a time Jackie McBride Scripting Classes: http://jawsscripting.lonsdalemedia.org homePage: www.abletec.serverheaven.net For technophobes: www.technophoeb.com __________� View the list's information and change your settings at //www.freelists.org/list/jawsscripts