SPONSORS:






User Tag List

Results 1 to 6 of 6
  1. #1
    Junior Member
    Join Date
    Dec 2000
    Posts
    16
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Double clicking on Saved File to invoke application.....

    I have saved "Doc1.doc" on my local drive.
    I want to execute Microsoft word by double clicking the "Doc1.doc" file.

    Anybody knows how I can do that using Silk?

    I opened Dos command window and changed to the directory where I saved the file. I just typed the fileName, it does execute.

    But, when I use SYS_Execute in silk it does not work..

    I even tried to use SYS_SetDir to where the file is and execute from there.. I failed.

    Anybody has brillent idea about this?
    Thanks,!



    ------------------

  2. #2
    Senior Member
    Join Date
    Jul 2000
    Location
    Walsall, West Midlands, United Kingdom
    Posts
    259
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Double clicking on Saved File to invoke application.....

    I have solved this, not by double clicking but using SYS_Execute. Sys_Execute("c:\mydoc.doc") was crashing my agent, and SYS_Execute("c:\program.....\winword.exe c:\mydoc.doc") didn't work, so I've approached it like this:-

    First of all create a batch file in DOS(*.bat, e.g. winword.bat), with the following code...

    Then in Silk do:

    SYS_Execute("c:\somedir\winword.bat c:\mydir\mydoc.doc")

    and it should work fine!

    Obviously change drives and paths to represent your system.




    ------------------


    [This message has been edited by Beeblemaster (edited 08-03-2001).]

  3. #3
    Junior Member
    Join Date
    Aug 2001
    Location
    Santa Clara, CA
    Posts
    28
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Double clicking on Saved File to invoke application.....

    Hi,

    This is one way you can open your doc file.Following is the code.Before that you need to record the WordDoc(Main win only) file into inc and make it as MainWin(instead of DialogBox).


    This is the start command which you can open your file: d:\tmp\hey.doc is ur file..

    MicrosoftWord.Start("WINWORD.EXE d:\tmp\hey.doc","D:\Microsoft Office97\Office","",5)

    This is Maped file in INC which you need to make the Dialog box into Main win:

    [-] window MainWin MicrosoftWord
    [ ] tag "[DialogBox]Microsoft Word - hey"
    [-] CustomWin _WwB1
    [ ] msw tag "[_WwB]$0"
    [-] CustomWin MsoDockTop
    [+] msw multitag "[MsoCommandBarDock]MsoDockTop"
    [ ] "[MsoCommandBarDock]$0"


    Hope it will help to you.

    Have a nice weekend.

    -Prasad Nori

    ------------------
    -Prasad
    -N.H.Prasad

  4. #4
    Junior Member
    Join Date
    Dec 2000
    Posts
    16
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Double clicking on Saved File to invoke application.....

    It is not working...
    I tried both of them..
    It only invokes the AppWindow.. but do not open the saved document...

    Still Need Help~


    ------------------

  5. #5
    Senior Member
    Join Date
    Jul 1999
    Location
    New York, NY, USA
    Posts
    137
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Double clicking on Saved File to invoke application.....

    How about this:

    Try opening the Windows Start Menu and Choose Run. In the text field enter and enter. It will launch winword with the document opened and you can avoid all SYS_ functions.

    ------------------

  6. #6
    Junior Member
    Join Date
    Aug 2001
    Location
    Santa Clara, CA
    Posts
    28
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Double clicking on Saved File to invoke application.....

    have you worked in same way which I mentioned.

    MicrosoftWord.Start("WINWORD.EXE d:\tmp\hey.doc","D:\Microsoft Office97\Office","",5)

    Winword.exe: is the executable file of Microsoft word. and put space and give your file path which I mentioned in the above statement(d:\tmp\hey.doc).These two with in same quote..
    and D:\Microsoft Office97\Office is the Microsoft office installed path directory.

    these two should be correct..

    one is word exe file ,space and your saved file
    second is Microsoft Office installed path.

    If possible send your code so that i can tell you where you did wrong.

    and check inc which msword will show as dialogbox.convert it into Mainwin.Just type Mainwin in the place of dialogbox and cut the dialogbox word into tag field and with in "[]".like window dialogbox msword and tag is tag "microsoftword".Change this to window Mainwin msword and tag should be tag "[dialogbox]microsoftword".It will work.I used many times in my project.

    hope try again if you face any problem let me know.

    bye for now



    ------------------
    -Prasad
    -N.H.Prasad

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 05:42 AM.

Copyright BetaSoft Inc.