>> [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 [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => <1062768613.3f588fe555904@www.epot.cz> <20030907193524.GA60466@www.epot.cz> [htmlstate] => on_nl2br [postusername] => daz [ip] => dooby@d10.karoo [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 6 [islastshown] => 1 [isfirstshown] => [attachments] => [allattachments] => ) --> Winapp without console window - Ruby

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.sramekinsula.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.sramekinsula.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 <daliinsula.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.sramekinsula.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 <daliinsula.cz> wrote in message news:<1062768613.3f588fe555904www.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.sramekinsula.cz[/email] | all things belong to cats.

    Dalibor Sramek Guest

  6. #6

    Default Re: Winapp without console window - system tray icon


    "Dalibor Sramek" <daliinsula.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
  •