Rosetta Code/Count examples: Difference between revisions

Content added Content deleted
(+AutoHotkey)
m (→‎{{header|AutoHotkey}}: Minor indentation and casing edit)
Line 11: Line 11:
Total: X examples.</lang>
Total: X examples.</lang>
=={{header|AutoHotkey}}==
=={{header|AutoHotkey}}==
<lang AutoHotkey>urldownloadtofile
<lang AutoHotkey>UrlDownloadToFile
, http://www.rosettacode.org/w/api.php?action=query&list=categorymembers&cmtitle=Category:Programming_Tasks&cmlimit=500&format=xml
, http://www.rosettacode.org/w/api.php?action=query&list=categorymembers&cmtitle=Category:Programming_Tasks&cmlimit=500&format=xml
, tasks.xml
, tasks.xml
fileread, tasks, tasks.xml
FileRead, tasks, tasks.xml
pos = 0
pos = 0
quote = " ; "
quote = " ; "
regtitle := "<cm.*?title=" . quote . "(.*?)" . quote
regtitle := "<cm.*?title=" . quote . "(.*?)" . quote
while, pos := regexmatch(tasks, regtitle, title, pos + 1)
While, pos := RegExMatch(tasks, regtitle, title, pos + 1)
{
{
UrlDownloadToFile
urldownloadtofile
, % "http://www.rosettacode.org/w/index.php?title=" . title1 . "&action=raw"
, % "http://www.rosettacode.org/w/index.php?title=" . title1 . "&action=raw"
, task.xml
, task.xml
fileread, task, task.xml
FileRead, task, task.xml
regexreplace(task, "\{\{header\|", "", count)
RegExReplace(task, "\{\{header\|", "", count)
current := title1 . ": " . count . " examples.`n"
current := title1 . ": " . count . " examples.`n"
output .= current
output .= current
TrayTip, current, % current
TrayTip, current, % current
}
}
msgbox % output
MsgBox % output
return</lang>
Return</lang>

=={{header|C sharp|C#}}==
=={{header|C sharp|C#}}==