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
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
@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.
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.
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.
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.
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.
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?
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.
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.