Locked Home » Forums » Legacy & Archived » Archived Content » Myth of Soma » Myth of Soma - Discussion

Scripts : Myth of Soma - Discussion

Posted: November 3rd, 2004
toothpaste
Sorry for being a noob and everything, but how would I go about writing a script that would right click until I tell it to stop? Would I just write

Code: Register to unlock hidden link

RMouseDown
RMouseUp
?
Also, could anybody tell me how I could find the coordinates of the cursor on screen please?
Posted: November 3rd, 2004
User avatar
Premium
Total Posts:6662 Joined:2004
DI ( ie for soma) scripts are bugged ATM, admin is working on it.

_________________
Use Search first, ask questions later!
Posted: November 3rd, 2004
User avatar
Total Posts:113 Joined:2004
cud of tolled that tooth :P

_________________
keeping Gaming esy 4 u
Posted: November 3rd, 2004
toothpaste
Bah.. How unfair :(
Ok, I guess I can deal with that, but how do I make my macros speed up? Sorry, search function has been removed from the forums.
Posted: November 3rd, 2004
pain
[quote="toothpaste";p="47583"]... how would I go about writing a script that would right click until I tell it to stop? Would I just write

Code: Register to unlock hidden link

RMouseDown
RMouseUp
?
Also, could anybody tell me how I could find the coordinates of the cursor on screen please?[/quote]

Getting the cursor position is:
XUScriptHost.GetCursorPos(oX As Variant, oY As Variant)

And your script should look like this:

Dim PosX, PosY 'define Variables :)

Do
XUScriptHost.GetCursorPos(PosX, PosY) ' Get actual screen position
XUScriptHost.RMouseDown PosX, PosY ' click right mouse button
XUScriptHost.Sleep 300 ' wait for 300ms to get the system ready
XUScriptHost.RMouseUp PosX, PosY 'release right mouse button
XUScriptHost.Sleep 300 ' wait for 300ms to get the system ready
Loop


This script should run continously until you press F12 (which is the default exit key for the script launcher)

Regards,
Pain
Posted: November 3rd, 2004
toothpaste
Great! Thanks, Pain.
Posted: November 3rd, 2004
User avatar
Premium
Total Posts:6662 Joined:2004
search does work

_________________
Use Search first, ask questions later!
Posted: November 3rd, 2004
toothpaste
I thought the search function was removed because a skiddie had their way with it? Thanks for the info ^^;
Posted: November 7th, 2004
j0n0
Were you make scripts oO
Posted: November 7th, 2004
toothpaste
Pretty much any text editor.. I use Notepad. :p Just save the document as .vbs and you will have yourself a script for XU. Of course, however, the script needs to be written properly for it to function correctly.
Posted: November 30th, 2004
snyd
[quote="pain";p="47597"][quote="toothpaste";p="47583"]... how would I go about writing a script that would right click until I tell it to stop? Would I just write

Code: Register to unlock hidden link

RMouseDown
RMouseUp
?
Also, could anybody tell me how I could find the coordinates of the cursor on screen please?[/quote]

Getting the cursor position is:
XUScriptHost.GetCursorPos(oX As Variant, oY As Variant)

And your script should look like this:

Dim PosX, PosY 'define Variables :)

Do
XUScriptHost.GetCursorPos(PosX, PosY) ' Get actual screen position
XUScriptHost.RMouseDown PosX, PosY ' click right mouse button
XUScriptHost.Sleep 300 ' wait for 300ms to get the system ready
XUScriptHost.RMouseUp PosX, PosY 'release right mouse button
XUScriptHost.Sleep 300 ' wait for 300ms to get the system ready
Loop


This script should run continously until you press F12 (which is the default exit key for the script launcher)

Regards,
Pain[/quote]



I cant get this to work -_- Did u get it to work in soma Tooth?

And could u plz tell me exactly what to write in the vbs file? plz :/

ty :)
Posted: January 12th, 2005
matiesthe1
ok i am a noob how do i get the scrip to run as a macro? i only had xu for bout 2days need all da help i can get xD ty
Ready to join the community? Click here and see all of the benefits!
blue large dotWho is online
Users browsing this forum: No registered users and 2 guests
Locked