Click to See Complete Forum and Search --> : Fer those Ultima Online folks (if there are any)
Satch
Sep 30th, 2000, 06:21 PM
I'm trying to make a simple prog that types in something on Ultima Online and hits enter to send it.
And also open the paper doll, backpack, etc.
how can i go about doing this?
can somebody post a sample of code that sends a simple message to Ultima Online and another code snippet that opens the paper doll?
i really have no idea on how i can get some help to get started and would appreciate any help
HarryW
Sep 30th, 2000, 11:20 PM
You can use SendKeys to do that I think. Look up SendKeys in the help files, it's all pretty simple, basically your code is like:
SendKeys("A")
Or at least I think it is, I can't remember now ;) You need to get the UO window in focus first, so you'll have to use some API stuff to get the window and things. I think there's one called GetWindow? Not sure, sorry.
Hooray another UO player! Well actually strictly speaking I'm an ex-UO player. Which shard are you on? Europa? I played on Europa for nearly 2 years.
If you play on Europa, then if you ever see anyone called Kas Valentine, Valentine, Jester Cowlscomb, Max Empire or Cool UK then PK him and reskill him lots of times for me would ya? Oh and if you ever see a guy named Marbok tell him HarryTheBastard says hi ;)
Satch
Sep 30th, 2000, 11:24 PM
I play on Pacific
been playing for over a year now
thanks ill that stuff up
Satch
Oct 1st, 2000, 01:47 AM
okay i got it to send messages to it and now i have a new question. Those other 3rd Parties have a way to cast spells thru it. How can I do that?
Also how do I change the client character's appearance like UO Assist does?
thanks in advance,
Satch
HarryW
Oct 1st, 2000, 02:10 AM
UOA gets into the stream of data being sent and recieved I think, it doesn't just work on top of UO, kinda works under it I think. That's what I heard anyway.
I guess I would suggest that you create macros on those keys you never use and use SendKeys again. Or, of course, wait until someone who knows how to do what UOA does replies :)
Satch
Oct 1st, 2000, 02:33 AM
ok
i wish there was a magical site dedicated to helping people like me write a program to manipulate UO
=P
HarryW
Oct 1st, 2000, 02:45 AM
Hehe, yeah and maybe a prog to turn off your red/grey flags ;)
Satch
Oct 1st, 2000, 02:51 AM
hehehe
well i guess i could use sendkeys "%p" to open paper dolls and backpacks and crap
know how i can detect what the player types in UO?
like if they type "-pdoll" and hit enter it opens their pdoll using the code in my prog?
HarryW
Oct 1st, 2000, 02:59 AM
Hmm, that's harder cos you're taking keypresses out of the stream, not just putting them in. You'd need to let the user see what they're typing too and delete the text when they press enter, unless you want the text to appear above their head (not very stylish).
I'm not sure how to do this with the API, I'm investigating...
HarryW
Oct 1st, 2000, 03:17 AM
Nope, I'm a bit stumped I'm afraid :(
Satch
Oct 1st, 2000, 03:26 AM
hmm
could i log the keystrokes and then somehow tell it to open the pd if the player types "-pdoll"?
cause ive got the code to log keys pressed on different apps
just dont know how to tell it to do that
hehe
HarryW
Oct 1st, 2000, 03:47 AM
Oh well if you know how to do that you're halfway there. Shouldn't be too hard. Only problem is when the user presses enter, you want to detect that but cancel it so the text isn't displayed above the character's head.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.