Merlin

By Tweek on Jun 05, 2011

Screenshots

This is a start code for vbs
i got it off line im not sure where.
i did change alot of it so it is mine.
i do have more but i will not post them.
http://community.spiceworks.com/scripts/show/689-agentcontrolmerlin-vbs
the link where i got the code befor i changed it.

strAgentName = "Merlin"
strAgentPath = "C:\WINDOWS\msagent\chars\" & strAgentName & ".acs"
Set objAgent = CreateObject("Agent.Control.2")
objAgent.Connected = TRUE
objAgent.Characters.Load strAgentName, strAgentPath
Set objCharacter = objAgent.Characters.Character(strAgentName)
objCharacter.Show 

objCharacter.Play "GetAttention"
objCharacter.Speak "Hi I'm Merlin!"
objCharacter.Play "LookDown"
objCharacter.Think "Hey..."
objCharacter.MoveTo 500,400
objCharacter.Play "Pleased"
objCharacter.Speak "Hello"
objCharacter.Play "Pleased"
objCharacter.Play "LookDown"
objCharacter.Speak "See this is all it does."
objCharacter.Hide

Do While objCharacter.Visible = TRUE

Loop

Comments

Sign in to comment.
stop   -  Feb 22, 2012

hellow, someone can make me a finish VB script/file, like this.or anything. just a project. I'm expecting that one person have this kinda professional skill of VB scripting can help me about this. thnx :D pleys..

 Respond  
napa182   -  Jun 06, 2011

lol Jethro_

 Respond  
Jethro   -  Jun 06, 2011

This is sort of entertaining....especially napa182 gets scolded at by the f word lol (pardon the pun...just lightening up the "stuffy" atmosphere here) while jaytea is steering the perpetrator on the righteous path to enlightenment. :P

 Respond  
D34th   -  Jun 06, 2011

Lol dunno seems like you guys provoked him to me constantly hounding on him about his scripts

how about this napa go with the old rule "if u dont have anything nice to say dont say anything at all" in this case quit postin :P

 Respond  
Tweek   -  Jun 06, 2011

i got a new vbs script up jaytea and napa182 you should like it

 Respond  
napa182   -  Jun 06, 2011

D34th i am not giving him any sh**it at all. For one he was the one that started talking trash...
i said he should listen to jaytea cuz 100 to 1 he knows a lot more then he does.
also just cuz i never posted something don't mean i don't grasp it ffs
enough said. im done with this troll.

 Respond  
D34th   -  Jun 06, 2011

napa still giving him shit? ive watched him type out every last bit of his script (keep in mind he is my roomate)
you really need to lay off him napa ive never seen u write a VBS Script bud you probably know less than he does so stick to mIRC comments bud ;)

jaytea never met you but from the look of it ur givin as much shit as napa is :P do u have no life guys? decided to just sit here and troll? cuz thats what im seeing

 Respond  
napa182   -  Jun 06, 2011

you are prob right jaytea.

 Respond  
jaytea   -  Jun 06, 2011

@jaytea it will do no good to argue with this Tweek person for they are hardheaded an a tad bit slow. They just can't/don't grasp ur point at all.

you're probably right, but i like to give people the benefit of the doubt :P he'll either quit and take up other pursuits, or settle down and become a productive member of the community within a matter of months.

 Respond  
Tweek   -  Jun 06, 2011

you are not worth my time

 Respond  
napa182   -  Jun 06, 2011

Tweek Wrote:

fark you napa182
lol @ your retort. kinda dim-witted don't you think?

anyways you should listen to jaytea cuz 100 to 1 he knows a lot more then you do.

 Respond  
Tweek   -  Jun 06, 2011

fuck you napa182

 Respond  
napa182   -  Jun 06, 2011

@jaytea it will do no good to argue with this Tweek person for they are hardheaded an a tad bit slow. They just can't/don't grasp ur point at all.
anyways good luck with trying to explain it to them, and more power to ya.

 Respond  
Tweek   -  Jun 06, 2011

50 bucks says i can send you a script right now on msn and have the sleep 1000 in there and it will wait to do something.
i know what i am doing when it comes to this stuff.
ask anyone i know. ask wraith he can tell you.

 Respond  
jaytea   -  Jun 06, 2011

sleeep in the code just has him wiat for XXX amount of time befor he does something.

this is unquestionably false. the agent calls are asynchronous, as i mentioned before, thus the Sleep statement has 0 effect on the delays between the agent's actions (add a 'WScript.Sleep 10000000' to the loop and observe no change in behaviour of the agent). the reason you think this is the case is because the Sleep statements in the other snippet you just posted occur in between synchronous calls to SendKeys and do actually have an effect on the main thread of execution.

it dont matter what any of you think, the point is none of you know shoot about vbs anyway.

nor do you. this has been obvious from the get go.

 Respond  
Tweek   -  Jun 05, 2011

well ill start doing my best to do that.
i realy dident know were i got the code from.
i have had it for a year now.

 Respond  
napa182   -  Jun 05, 2011

Sorry to say this Tweek, but you seem be an utter moron. You think you are getting your point across by using such foul language? To us it is nothing but incoherent babel, as well it makes you look simple-minded, and dim-witted.

 Respond  
Jethro   -  Jun 05, 2011

Tweek, the morality here is this: when you acquire a code from some sources and edit it for your own benefit, leave the credit where it's due or the link to where you have obtained it. If you had done that, you wouldn't get people busting your balls to accuse you for stealing or ripping and all that upsetting comments.

 Respond  
Tweek   -  Jun 05, 2011

sleeep in the code just has him wiat for XXX amount of time befor he does something.
the code no matter who the fuck wrights it is going to be the same.
as i fucking said at the fucking top of all this....THIS IS JUST THE FUCKING START CODE, I FUCKING CHANGED IT SO YEA ITS FUCKING MINE.
it dont matter what any of you think, the point is none of you know shit about vbs anyway.
go on try it and see how fast you fuck up.

 Respond  
Sorasyn   -  Jun 05, 2011

I concur with Jaytea. Changing the comments and removing a few lines here and there may pass... if you were writing a paper and attempting to avoid plagiarism. However here that is not the case, and is more often than not construed as ripped off; resulting in the comments you have been receiving the past few days. The internet is an expansive place and what you or anyone else put on it, it's bound to stay there. Thus making it near impossible to conceal ripped off pieces of work.

 Respond  
napa182   -  Jun 05, 2011

For one how can you call it ur's Tweek, When someone else made it. Just cuz you changed a lil bit of the code don't make it ur's. I find it funny that you would go off on jaytea for pointing out that you took this code. Come on what did you think would happen when you rip....
0/10

 Respond  
jaytea   -  Jun 05, 2011

haha, how eloquent. the similarity between your example and the code in the link i provided speaks for itself.

pluse you have to have a !@#$ loop at the end or it wont run dumb ass

actually, it runs, but it runs instantaneously. apparently the calls to the agent are asynchronous and it is necessary to forcibly keep the program running so they have time to execute. but you already knew that, right? :P

the Sleep statement is used to avoid a spike in CPU usage, perhaps you could explain why you removed it?

 Respond  
Tweek   -  Jun 05, 2011

pluse you have to have a fucking loop at the end or it wont run dumb ass

 Respond  
Tweek   -  Jun 05, 2011

no this code is mine
all vbs is the same fucking code
i know what the fuck i am doing when it comes to vbs
i have been doing it for years
its the fucking start up code for a person to popup and say shit
if you knew anything about it you would know that
so back off and dont post anything unlesss you know what you are talking about.

 Respond  
jaytea   -  Jun 05, 2011

this appears to be taken almost verbatim from: http://community.spiceworks.com/scripts/show/689-agentcontrolmerlin-vbs - the only changes made are to the example strings.

the original author even has a loop at the bottom that accomplishes nothing, and was presumably left behind from a more complete script. the fact that you've kept it in your example and even went as far as to remove the otherwise important Sleep statement shows that you don't have a firm understanding of the snippet you've posted.

the rules may dictate that a certain amount of the edited work needs to be your own, but i think what the rule means to imply is that, in borrowing and editing someone else's code, you have put in a reasonable degree of effort into the work such that you can, in good conscience, then be labeled a representative of the final product.

this doesn't appear to be the case in any of the work that you have posted recently. the scripts people post here do not have to be original and perfectly coded masterpieces, but you should at least refrain from posting code until you can claim to be a worthy representative of that code. in the case of a small demonstrative snippet such as this, this means knowing precisely what each part of it does.

there is no shame in holding off on posting code until you are ready to do so. in fact, you may even save yourself future cringing.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.