Created
May 17, 2012 10:57
-
-
Save chssweb/2718144 to your computer and use it in GitHub Desktop.
Lates iMacro for adding a mix of article and sections to a new section
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Name,Heading,Breadcrumb,Menu,Friendly URL,Type | |
"Programmes","Programmes","Programmes","Programmes","programmes","Section" | |
"Staff","Staff","Staff","Staff","staff","Section" | |
"Overview","Overview",,,"overview","Article" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VERSION BUILD=7401110 RECORDER=FX | |
FRAME F=3 | |
TAG POS=1 TYPE=BUTTON ATTR=TXT:Create | |
WAIT SECONDS=1 | |
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:mainform ATTR=ID:work_* CONTENT=Overview | |
TAG POS=2 TYPE=INPUT:TEXT FORM=NAME:mainform ATTR=ID:work_* CONTENT=Overview | |
TAG POS=5 TYPE=INPUT:TEXT FORM=NAME:mainform ATTR=ID:work_* CONTENT=overview | |
TAG POS=1 TYPE=SELECT FORM=NAME:mainform ATTR=ID:work_* CONTENT=%discard | |
WAIT SECONDS=1 | |
TAG POS=1 TYPE=BUTTON FORM=NAME:mainform ATTR=TXT:Save<SP>&<SP>Connect | |
WAIT SECONDS=1 | |
TAG POS=1 TYPE=BUTTON ATTR=TXT:Connect | |
WAIT SECONDS=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FRAME F=3 | |
TAG POS=1 TYPE=BUTTON ATTR=TXT:Create | |
WAIT SECONDS=1 | |
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:mainform ATTR=ID:work_* CONTENT={{name}} | |
TAG POS=2 TYPE=INPUT:TEXT FORM=NAME:mainform ATTR=ID:work_* CONTENT={{heading}} | |
TAG POS=3 TYPE=INPUT:TEXT FORM=NAME:mainform ATTR=ID:work_* CONTENT={{menu}} | |
TAG POS=4 TYPE=INPUT:TEXT FORM=NAME:mainform ATTR=ID:work_* CONTENT={{breadcrumb}} | |
TAG POS=5 TYPE=INPUT:TEXT FORM=NAME:mainform ATTR=ID:work_* CONTENT={{friendly}} | |
TAG POS=1 TYPE=SELECT FORM=NAME:mainform ATTR=ID:work_* CONTENT=%discard | |
WAIT SECONDS=1 | |
TAG POS=1 TYPE=BUTTON FORM=NAME:mainform ATTR=TXT:Save<SP>&<SP>Connect | |
WAIT SECONDS=1 | |
SET !ERRORIGNORE YES | |
SET !TIMEOUT_STEP 0 | |
TAG POS=1 TYPE=INPUT:RADIO FORM=ID:mainform ATTR=ID:work_* | |
SET !ERRORIGNORE NO | |
SET !TIMEOUT_STEP 6 | |
TAG POS=1 TYPE=BUTTON ATTR=TXT:Connect | |
WAIT SECONDS=1 | |
TAG POS=1 TYPE=A ATTR=TXT:{{name}} | |
TAG POS=R-1 TYPE=BUTTON FORM=NAME:mainform ATTR=TITLE:Close | |
WAIT SECONDS=3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FRAME F=3 | |
TAG POS=1 TYPE=SELECT FORM=NAME:mainform ATTR=ID:work_* CONTENT=$Sections | |
TAG POS=1 TYPE=BUTTON ATTR=TXT:Create | |
TAG POS=1 TYPE=A ATTR=TXT:Properties | |
WAIT SECONDS=1 | |
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:mainform ATTR=ID:work_* CONTENT={{name}} | |
TAG POS=2 TYPE=INPUT:TEXT FORM=NAME:mainform ATTR=ID:work_* CONTENT={{heading}} | |
TAG POS=3 TYPE=INPUT:TEXT FORM=NAME:mainform ATTR=ID:work_* CONTENT={{breadcrumb}} | |
TAG POS=4 TYPE=INPUT:TEXT FORM=NAME:mainform ATTR=ID:work_* CONTENT={{menu}} | |
TAG POS=5 TYPE=INPUT:TEXT FORM=NAME:mainform ATTR=ID:work_* CONTENT={{friendly}} | |
WAIT SECONDS=1 | |
TAG POS=1 TYPE=BUTTON FORM=NAME:mainform ATTR=TXT:Save<SP>&<SP>Connect | |
WAIT SECONDS=1 | |
SET !ERRORIGNORE YES | |
SET !TIMEOUT_STEP 0 | |
TAG POS=1 TYPE=INPUT:RADIO FORM=ID:mainform ATTR=ID:work_* | |
SET !ERRORIGNORE NO | |
SET !TIMEOUT_STEP 6 | |
TAG POS=1 TYPE=BUTTON ATTR=TXT:Connect | |
WAIT SECONDS=1 | |
TAG POS=1 TYPE=A ATTR=TXT:{{name}} | |
WAIT SECONDS=1 | |
TAG POS=R-1 TYPE=BUTTON FORM=NAME:mainform ATTR=TITLE:Close | |
WAIT SECONDS=4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
/* This script runs all demo macros and displays the success or failure of each run */ | |
/* Created by: iMacros Team, March 18th, 2008 */ | |
var macrolist = new Array(); | |
/* Standard Demo Macros */ | |
macrolist.push("ec/read-csv-vals"); | |
macrolist.push("ec/polopoly-add-overview"); | |
macrolist.push("ec/polopoly-article-test"); | |
macrolist.push("ec/polopoly-section-test"); | |
var i, retcode; | |
var report; | |
i = 1; | |
do | |
{ | |
//alert("number " + i) | |
i=i+1; | |
ret = iimSet("myloop", i); | |
iimDisplay("Start Self Test"); | |
report = "Self-Test Report\n\n"; | |
retcode = iimPlay(macrolist[0]); | |
var name = iimGetLastExtract(1); | |
var heading = iimGetLastExtract(2); | |
var breadcrumb = iimGetLastExtract(3); | |
var menu = iimGetLastExtract(4); | |
var friendly = iimGetLastExtract(5); | |
var type = iimGetLastExtract(6); | |
type = type.toLowerCase(); | |
iimSet("name", name); | |
iimSet("heading", heading); | |
iimSet("breadcrumb", breadcrumb); | |
iimSet("menu", menu); | |
iimSet("friendly", friendly); | |
if (type == 'article') { | |
retcodeX = iimPlay(macrolist[2]); | |
} | |
else if (type == 'section' ) { | |
retcodeY = iimPlay(macrolist[3]); | |
alert (retcodeY); | |
} | |
else { | |
retcodeZ = 'error!'; | |
} | |
iimDisplay("Test complete"); | |
} | |
while (retcode > 0); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VERSION BUILD=7401110 RECORDER=FX | |
SET !DATASOURCE section_list.csv | |
SET !DATASOURCE_COLUMNS 6 | |
SET !LOOP 2 | |
SET !DATASOURCE_LINE {{myloop}} | |
ADD !EXTRACT {{!COL1}} | |
ADD !EXTRACT {{!COL2}} | |
ADD !EXTRACT {{!COL3}} | |
ADD !EXTRACT {{!COL4}} | |
ADD !EXTRACT {{!COL5}} | |
ADD !EXTRACT {{!COL6}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment