taultunleashed logoWScript Object, please help : VGExtreme General Discussion
newtopic  postreply
 [ 8 posts ] 
blue large dot

WScript Object, please help : VGExtreme General Discussion

Posted: April 8th, 2007, 6:09 am
 
kryologik

Total Posts: 33
Location: USA
Joined: March 10th, 2005, 7:34 pm
kryologik's Reps: 0
User avatar
premium
I'm trying to use WScript.ConnectObject (need to handle some events) and it's saying "Object required: 'WScript'.

I wrote all the code in a .vbs and now I'm trying to port it into my Paladin Bot. What do I need to do to be able to use wscript?


Reply with quote
Posted: April 8th, 2007, 6:34 pm
 
kryologik

Total Posts: 33
Location: USA
Joined: March 10th, 2005, 7:34 pm
kryologik's Reps: 0
User avatar
premium
.. or is there some other way I can go about connecting the object to the program so that I can handle object events?


Reply with quote
Posted: April 10th, 2007, 9:49 am
 
xaraph
xaraph's Reps:
User avatar
Maybe try using the COM.CreateCOMObject() as described in the Wiki documentation for exhume:

http://www.xunleashed.com/wiki/index.ph ... eCOMObject

I'm pretty sure that duplicates the wscript.ConnectObject functionality.


Reply with quote
Posted: April 10th, 2007, 10:16 am
 
kryologik

Total Posts: 33
Location: USA
Joined: March 10th, 2005, 7:34 pm
kryologik's Reps: 0
User avatar
premium
Doesn't enable the handling of events though =( I'm in desperate need of getting this to work =( I have all the code from my remote webserver / remote control daemon written and working in regular vbs, just need it to work in exhume now =(.


When I wrote this tcp daemon in regular .vbs, I used:

(!empty($user->lang['CODE'])) ? $user->lang['CODE'] : ucwords(strtolower(str_replace('_', ' ', 'CODE'))):
Set myBot = CreateObject("<winsock>")
WScript.ConnectObject myBot, "myBot_"


Which worked just fine.. Now in Exhume I'm trying:

(!empty($user->lang['CODE'])) ? $user->lang['CODE'] : ucwords(strtolower(str_replace('_', ' ', 'CODE'))):
Dim myBot
Set myBot = CreateObject("<winsock>", "myBot_")


And it's telling me "The remote server machine does not exist or is unavailable." When trying to use CreateObject with a prefix in regular .vbs, it produces the same results, which is why I was using ConnectObject. Please, someone help!


Reply with quote
Posted: April 10th, 2007, 7:45 pm
 
gheezer
gheezer's Reps:
User avatar
Unfortunately, unless someone knows otherwise, I don't think VGE exposes the currently running WSH process(which is what WScript is) :(

Without that it's damn near impossible to implement COM events. I say 'damn near' cause someone smarter than me could prolly do it with clever API calls or subclassing.

I was able to use a custom COM .dll to get my remote working, but decided to wait on C# so I wouldn't have to distribute a custom .dll with the radar.


Reply with quote
Posted: April 13th, 2007, 10:31 am
 
wilburr
wilburr's Reps:
User avatar
I'm by no means a VB expert, so take this for what it's worth...

The root wsh object is not available from within vb, only the wsh shell and the wsh network objects are.

I don't know what you are trying to do with wsh, but the MS Script Control has some limited script engine support (would require modifying the base vb code of vge though). I have used it before to add some jscript to a vb project, but I'm not sure what all of its capabilities\limitations are.


Reply with quote
Posted: April 13th, 2007, 7:39 pm
 
wyvernx

Total Posts: 6718
Joined: May 1st, 2004, 4:00 am
wyvernx's Reps: 21
User avatar
administrator
premium
I think admin will have to add that ConnectObject to the COM command list api.

http://www.xunleashed.com/wiki/index.ph ... eCOMObject

_________________
Use Search first, ask questions later!


Reply with quote
Posted: April 14th, 2007, 5:02 am
 
kryologik

Total Posts: 33
Location: USA
Joined: March 10th, 2005, 7:34 pm
kryologik's Reps: 0
User avatar
premium
I would be eternally greatful for that =)


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 16 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 VGExtreme General Discussion RSS Feed 
Sitemap of VGExtreme General Discussion 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?