Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen gezeigt.

Link zu dieser Vergleichsansicht

nettalk:scripting:kennyscript [2007/02/25 14:16]
80.134.121.26
nettalk:scripting:kennyscript [2007/11/10 14:47] (aktuell)
80.134.105.17
Zeile 2: Zeile 2:
  
 #​NewScriptBegin kenny #​NewScriptBegin kenny
- +
 Function Translate(Text) Function Translate(Text)
   StrOut=""​   StrOut=""​
Zeile 38: Zeile 38:
     StrOut=StrOut & C     StrOut=StrOut & C
   loop   loop
 +  LastMsg(GetCaption(FrontFrameID))=StrOut
   Translate=StrOut   Translate=StrOut
 End Function End Function
 + 
 Function ReTranslate(Text) Function ReTranslate(Text)
   StrOut=""​   StrOut=""​
Zeile 85: Zeile 86:
   ReTranslate=StrOut   ReTranslate=StrOut
 End Function End Function
 +
 +Sub Load()
 +  LastMsg("​0"​)=""​
 +End Sub
    
 Sub KeyShortcut(KeyCode,​ Shift) Sub KeyShortcut(KeyCode,​ Shift)
Zeile 92: Zeile 97:
     skipevent     skipevent
   End if   End if
 +  if Shift=0 and KeyCode=122 Then
 +    print "~ Übersetzung:​ " & ReTranslate(LastMsg(GetCaption(FrontFrameID)))
 +  end if
 +End Sub
 +
 +Sub Chan_Msg(Text,​ Nick, Channel, FrameID, ConnID)
 +  LastMsg(Channel)=Text
 End Sub End Sub
  
 </​code>​ </​code>​
 +
 +© Kenny & Mirici

Eigene Werkzeuge