# Macros in Ruby

**URL:** <https://www.ruby-forum.com/t/macros-in-ruby/176427>\
**Category:** Ruby\
**Created:** [September 30, 2009, 11:47am UTC](https://www.ruby-forum.com/t/macros-in-ruby/176427 "2009-09-30T11:47:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jazzezravi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/71e660/32.png) [@jazzezravi](https://www.ruby-forum.com/u/jazzezravi)\
**Post date:** [September 30, 2009, 11:47am UTC](https://www.ruby-forum.com/t/macros-in-ruby/176427/1 "2009-09-30T11:47:48Z")

</div>

Hi all,

I have opened one page with the help of ruby gems (watir,firewatir).

I need to use Macro’s iim code for single action and will contine to the  
next step in Ruby Script.

the code looks like

CODE:

ie.goto(“localhost:3000”)

TAG POS=1 TYPE=INPUT:FILE  
FORM=ACTION:[http://upload.localhost.com/my\_streaming\_videos\_post](http://upload.localhost.com/my_streaming_videos_post)  
ATTR=NAME:field\_uploadfile  
CONTENT=C:\FYT\setup\videos\w5ydn2je2yvhi6.avi

ie.click …

Need:

I need to run the particular line macro code in between the ruby script  
lines.

Awaiting reply
