thanks to the following tutorials:
http://konte.dyndns-web.com/trackmania/ ... ation.html
http://destroflyer.mania-community.de/m ... torial.php
http://destroflyer.mania-community.de/m ... _table.php
http://forum.funtrackers.net/showthread ... aniascript
i made a first manialink/maniascript to join a server by keypressing F8.
The code is available for now and viewable at manialink smurfer to join The Smurfs [Benelux] server immediately by pressing F8.
Code: Select all
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<manialink version="1">
<quad posn="-45 15 0" sizen="100 30" style="Bgs1" substyle="BgList"/>
<label id="myLabel" posn="-30 7 0" scale="2" style="CardButtonMedium" text="$06f The Smurfs $f80[Benelux]" manialink="maniaplanet://#join=smurfer" ScriptEvents="1" />
<script><!--
while(True) {
foreach(Event in PendingEvents) {
if (Event.Type == CGameManialinkScriptEvent::Type::KeyPress) {
if(Event.CharPressed == "2883584")
OpenLink("maniaplanet://#join=smurfer", ::LinkType::Goto); // -> exemple
}
}
yield;
}
--></script>
</manialink>
With kind regards,
w1lla.