postreply Home » Forums » Myth of Soma » Myth of Soma - Discussion

hummm : Myth of Soma - Discussion

Posted: September 6th, 2004, 1:46 pm
acepower

Total Posts: 113
Joined: May 1st, 2004, 4:00 am
User avatar
ok i tryed this script in the xunleashed v3: directx 9 test and it works fine
but when itry it in game when it cums to run the macro it makes the arrow go all over the screen any help wud he gratfull ty

the script i used

Randomize(timer)


Dim iUpperbound
Dim iLowerbound
Dim iDelay
iUpperbound = 6000
iLowerbound = 1000

Dim objMacroHelper

Set objMacroHelper = CreateObject("XUMacroHelper.MacroWindow")

objMacroHelper.SetPlayOnce()

Dim iCounter

For iCounter = 2 to 2

objMacroHelper.Play("cooking")

Do While (objMacroHelper.MacroPlaying)
XUScriptHost.Sleep(500)
Loop


iDelay = Int((iUpperbound - iLowerbound + 1) * Rnd + iLowerbound)
XUScriptHost.Sleep(iDelay)
next
Posted: September 6th, 2004, 2:00 pm
j0n0
hmm and to me that means....squat

that just looks like the newspaper after 1 to many beers
Posted: September 14th, 2004, 2:48 pm
..
...
Posted: September 14th, 2004, 2:56 pm
Admin

Total Posts: 1168
Joined: May 1st, 2004, 4:00 am
User avatar
administrator
administrator
can you run the macro in soma fine?

ie your cooking macro?

_________________
Help our site.. take a moment to click the Digg this post!!! v v v
Posted: September 15th, 2004, 12:10 pm
acepower

Total Posts: 113
Joined: May 1st, 2004, 4:00 am
User avatar
yes the macro runs fine when not used in script

_________________
keeping Gaming esy 4 u
Posted: September 15th, 2004, 12:43 pm
Admin

Total Posts: 1168
Joined: May 1st, 2004, 4:00 am
User avatar
administrator
administrator
Hmm.. there might be a bug in the way macros are handled through the script plugin. I think you need to tell the script engine to use DirectInput instead of windows input.

Let me check on this and let you know. Or add the command if it is not there.

_________________
Help our site.. take a moment to click the Digg this post!!! v v v
Posted: September 15th, 2004, 1:14 pm
Guest
kk ty m8:)
Posted: September 15th, 2004, 1:17 pm
Admin

Total Posts: 1168
Joined: May 1st, 2004, 4:00 am
User avatar
administrator
administrator
Ok, I think this will fix it.

Change this line:
Set objMacroHelper = CreateObject("XUMacroHelper.MacroWindow")


to

Set objMacroHelper = XUScriptPlugin.GetService("XUMacroHelper.MacroWindow")

_________________
Help our site.. take a moment to click the Digg this post!!! v v v
Posted: September 15th, 2004, 1:19 pm
acepower

Total Posts: 113
Joined: May 1st, 2004, 4:00 am
User avatar
ya k 1sec ill test it

_________________
keeping Gaming esy 4 u
Posted: September 15th, 2004, 1:27 pm
Guest
nop script dont work at all now o0
Posted: September 15th, 2004, 1:36 pm
Admin

Total Posts: 1168
Joined: May 1st, 2004, 4:00 am
User avatar
administrator
administrator
ACK.

Ok, hold that thought.

I am going to add a few lines to the Macro Plugin that will let it work. The problem is I described. It is running the script with WindowsInput instead of DirectInput.

_________________
Help our site.. take a moment to click the Digg this post!!! v v v
Posted: September 15th, 2004, 1:38 pm
Admin

Total Posts: 1168
Joined: May 1st, 2004, 4:00 am
User avatar
administrator
administrator
PS, if you use the Createobject it should work for keyboard only macros if you recorded it as a keyboard only macro.

So, you might try recording a keyboard macro and testing with the original code you used.


Also, you can not use the macroplugin at all and do everything via scripts. Using KeyDown KeyUp and SendKeys, LMouseDown, etc.

_________________
Help our site.. take a moment to click the Digg this post!!! v v v
Posted: September 15th, 2004, 1:41 pm
acepower

Total Posts: 113
Joined: May 1st, 2004, 4:00 am
User avatar
nop still dont work

_________________
keeping Gaming esy 4 u
Posted: September 15th, 2004, 1:49 pm
Admin

Total Posts: 1168
Joined: May 1st, 2004, 4:00 am
User avatar
administrator
administrator
What doesnt work?

Did you change it back to CreateObject

Did you double click it in windows to look for errors?


Did you record a keyboard only macro?

Did you change the name in the script to reflect the change?

_________________
Help our site.. take a moment to click the Digg this post!!! v v v
Posted: September 15th, 2004, 1:56 pm
acepower

Total Posts: 113
Joined: May 1st, 2004, 4:00 am
User avatar
this work whith text only macro


Randomize(timer)


Dim iUpperbound
Dim iLowerbound
Dim iDelay
iUpperbound = 6000
iLowerbound = 1000

Dim objMacroHelper

Set objMacroHelper = CreateObject("XUMacroHelper.MacroWindow")

objMacroHelper.SetPlayOnce()

Dim iCounter

For iCounter = 2 to 2

objMacroHelper.Play("test2")

Do While (objMacroHelper.MacroPlaying)
XUScriptHost.Sleep(500)
Loop


iDelay = Int((iUpperbound - iLowerbound + 1) * Rnd + iLowerbound)
XUScriptHost.Sleep(iDelay)
next

_________________
keeping Gaming esy 4 u
Want Advertisements After The Last Post Removed? Create A Free Account!
blue large dotWho is online
Users browsing this forum: No registered users and 3 guests
postreply