Professional Web Applications Themes

Winapp without console window - Ruby

Hi. Is there any way how to run a non-GUI Ruby script in Windows without the console window shown in the taskbar? I need to install a script to a user who would get distracted by the console window appearing in her taskbar. Thanks Dalibor Sramek -- Dalibor Sramek [url]http://www.insula.cz/dali[/url] | In the eyes of cats, [email]dalibor.sramek@insula.cz[/email] | all things belong to cats....

  1. #1

    Default Winapp without console window

    Hi.

    Is there any way how to run a non-GUI Ruby script in Windows without the console
    window shown in the taskbar? I need to install a script to a user who would get
    distracted by the console window appearing in her taskbar.

    Thanks

    Dalibor Sramek

    --
    Dalibor Sramek [url]http://www.insula.cz/dali[/url] | In the eyes of cats,
    [email]dalibor.sramek@insula.cz[/email] | all things belong to cats.

    Dalibor Sramek Guest

  2. #2

    Default Re: Winapp without console window

    What you could do is...

    1. Write a .bat file called "runnme" which has:

    start ruby c:\path\to\ruby_script.rb

    2. Create a symlink (shortcut, sorry) to the user's desktop.

    3. Set the properties of runme.bat to "run-minimised"

    That way it would be hidden.

    HTH,

    -- Thomas Adam


    --- Dalibor Sramek <dali@insula.cz> wrote: > Hi.
    >
    > Is there any way how to run a non-GUI Ruby script in Windows without the
    > console
    > window shown in the taskbar? I need to install a script to a user who
    > would get
    > distracted by the console window appearing in her taskbar.
    >
    > Thanks
    >
    > Dalibor Sramek
    >
    > --
    > Dalibor Sramek [url]http://www.insula.cz/dali[/url] | In the eyes of cats,
    > [email]dalibor.sramek@insula.cz[/email] | all things belong to cats.
    >
    >
    =====
    Thomas Adam

    "The Linux Weekend Mechanic" -- [url]www.linuxgazette.com[/url]

    __________________________________________________ ______________________
    Want to chat instantly with your online friends? Get the FREE Yahoo!
    Messenger [url]http://mail.messenger.yahoo.co.uk[/url]

    Thomas Adam Guest

  3. #3

    Default Re: Winapp without console window

    On Fri=2C 5 Sep 2003 22=3A30=3A18 +0900 Dalibor Sramek =3Cdali=40insula=2Ecz=3E wrote=3A

    =3E Hi=2E
    =3E
    =3E Is there any way how to run a non-GUI Ruby script in Windows without the
    console
    =3E window shown in the taskbar=3F I need to install a script to a user who would
    get
    =3E distracted by the console window appearing in her taskbar=2E
    =3E
    =3E Thanks
    =3E
    =3E Dalibor Sramek
    =3E
    =3E --
    =3E Dalibor Sramek http=3A=2F=2Fwww=2Einsula=2Ecz=2Fdali | In the eyes of cats=2C
    =3E dalibor=2Esramek=40insula=2Ecz | all things belong to cats=2E
    =3E
    =3E

    Isn't that what rubyw is for=3F I think if you run =22rubyw=2Eexe yourscript=2Erb=22
    it'll run without a console=2E Not sure how you're starting your app -- e=2Eg=2E
    from scheduler just use the above command as the command line to start it=2E
    With user intervention create a shortcut with the above command as the target=2C
    etc=2E Either way your script should run without creating a window=2E
    Oliver Dain Guest

  4. #4

    Default Re: Winapp without console window

    The windows build of ruby should have a rubyw.exe which doesn't open a
    console window.

    Cheers,
    alan

    Dalibor Sramek <dali@insula.cz> wrote in message news:<1062768613.3f588fe555904@www.epot.cz>...
    > Is there any way how to run a non-GUI Ruby script in Windows without the
    > console window shown in the taskbar?
    Alan Chen Guest

  5. #5

    Default Re: Winapp without console window - system tray icon

    On Sat, Sep 06, 2003 at 03:10:23AM +0900, Alan Chen wrote:
    > The windows build of ruby should have a rubyw.exe which doesn't open a
    > console window.
    Thanks, guys. Of course, rubyw.exe is the right solution. I tried it before
    but it did not work with non GUI scripts. Probably my Ruby installation was
    corrupted. After reinstall everything works perfectly.

    One more question:
    Is there any way to create system tray icon for a Ruby programm in Windows?
    Can one of the GUI bindings for Ruby do that?

    Dalibor Sramek

    --
    Dalibor Sramek [url]http://www.insula.cz/dali[/url] | In the eyes of cats,
    [email]dalibor.sramek@insula.cz[/email] | all things belong to cats.

    Dalibor Sramek Guest

  6. #6

    Default Re: Winapp without console window - system tray icon


    "Dalibor Sramek" <dali@insula.cz> wrote:
    >
    > One more question:
    > Is there any way to create system tray icon for a Ruby programm in Windows?
    > Can one of the GUI bindings for Ruby do that?
    >
    > Dalibor Sramek
    >
    Using vruby (included in the PragProg distro).

    Homepage is:
    [url]http://www.threeweb.ad.jp/~nyasu/vruby/vrproject-e.html[/url]


    Many samples at:
    [url]http://www.threeweb.ad.jp/~nyasu/vruby/samples-e.html[/url]


    For SysTray: ------------------------------>>>
    [url]http://www.threeweb.ad.jp/~nyasu/vruby/sample/traytest.rb[/url]


    Download sample scripts:
    [url]http://www.threeweb.ad.jp/~nyasu/vruby/vruby030906.zip[/url]



    daz



    daz Guest

Similar Threads

  1. insert a frame or window into adobe acrobat or reader window
    By Mike_Blood@adobeforums.com in forum Adobe Acrobat SDK
    Replies: 3
    Last Post: April 8th, 06:09 PM
  2. New Window Target doesn't open a new window inContribute but does in Firefox
    By toddtemple2 in forum Macromedia Contribute General Discussion
    Replies: 1
    Last Post: January 8th, 08:36 PM
  3. Setting a popup window's base target to caller window?
    By saf_123 in forum Macromedia Dynamic HTML
    Replies: 1
    Last Post: July 6th, 11:01 AM
  4. Child window property window.opener null after postback
    By MrFez in forum ASP.NET Security
    Replies: 1
    Last Post: April 28th, 06:43 PM
  5. Replies: 1
    Last Post: July 28th, 04:53 AM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139