taultunleashed logoScriptHost 2.9.24 Released : Site News
newtopic  postreply
 [ 1 post ] 
blue large dot

ScriptHost 2.9.24 Released : Site News

Posted: February 18th, 2005, 3:48 pm
 
Admin

Total Posts: 1168
Location: Waco
Joined: May 1st, 2004, 4:00 am
Admin's Reps: 4
User avatar
administrator
premium
February 18, 2005
ScriptHost Version 2.9.24.0

'Internal definition of TextOutObject
class TextOutObject
str as String
x as Long
y as Long
sub TextOut (str as String, x as long, y as long)
end class

Function XUScriptPlugin.AddTextOutHandler(ByVal strName As String) As TextOutObject

'This will draw a string on the screen
Sub XUScriptPlugin.RemoveTextOutHandler(ByVal str As String) 'Be sure to free up all

allocated memory


'Some scripting languages do not like referenced variables, so these will compensate:
Function XUScriptHost.GetCursorPosX() As Long 'Gets the mouse X
Function XUScriptHost.GetCursorPosY() As Long 'Gets the mouse Y
Function XUScriptHost.GetCursorButtonLeft() As Boolean 'Gets the mouse LButton
Function XUScriptHost.GetCursorButtonMiddle() As Boolean 'Gets the mouse MButton
Function XUScriptHost.GetCursorButtonRight() As Boolean 'Gets the mouse RButton


'Example of how to use the TextOutObject
Dim TextOutHandler
set TextOutHandler = XUScriptPlugin.AddTextOutHandler("MyTextHandler") 'Assign the

handler a name. It must be unique for each handler
TextOutHandler.TextOut "Hello World",30,30
'Optionally: TextOutHandler.str = "Hello World"
'Optionally: TextOutHandler.x = 30
'Optionally: TextOutHandler.y = 30
Sleep 10000 'Show it on the screen for 10 seconds
XUScriptPlugin.RemoveTextOutHandler "MyTextHandler" 'Remember to free up memory


Reply with quote
Want Advertisements After The Last Post Removed? Create A Free Account!

blue large dot Who is online
Users browsing this forum: No registered users and 3 guests

Popular Sections
SWTOR Cheats
Guild Wars 2 Cheats
Guild Wars 2 Hacks
Guild Wars 2 Bots
Diablo 3 Cheats
Guild Wars 2 Mods

Popular Sections
WoW Cataclysm Cheats & Exploits
WoW Cataclysm Hacks & Bots
Star Wars The Old Republic Cheats
SWTOR Mods
Torchlight 2 Cheats
SWTOR Space Mission Bots
Site Nav and RSS
RSS Feed of Site News RSS Feed 
Sitemap of Site News Sitemap 
SitemapIndex SitemapIndex
RSS Feed RSS Feed
Channel list Channel list
left bottom corner Site and Contents Copyright 2001-2012 All Rights Reserved TaultUnleashed.com bottom corner
top left
top right
createaccount
Username:   Password:   Remember Me?