Sign in to follow this  
Followers 0
BladeZ

PrintF or something like it

10 posts in this topic

i was wondering if autoit has a feature that can be used like Printf to put text on another window.

well that or something like it

-BladeZ

Share this post


Link to post
Share on other sites



Are you possibly looking for StringFormat()?

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

sorry no i dont think thats what im looking for. i have a game (diablo ii) and i need to print a bool status to the screen.

EDIT: What im looking for is something like ToolTip but without the backround color and able to change the texts size / color / font

-BladeZ

Edited by BladeZ

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Obviously, this isn't exactly what you're looking for, but I know you can do it this way if you want:

Since Diablo II is going to be your active window (or at least, it would be if I did it), you can always press enter, and type in ! and your text to get an overhead message. Example:

$YourText = "This is a message."

Send ("{ENTER}") ; open chat thingy...

Send ("!" & $YourText)

Send ("{ENTER}") ; close chat, sending text to overhead bubble

This would send "This is a message." to the overhead bubble in DII. Of course, you could simplify those statements into one, but I split it up to show the steps.

EDIT -->

Also, this is a standard Diablo II font/size/color, so that's not it. But it is something.

You could also use Splash Text if your Diablo II is in window mode. SplashTextOn ( "title", "text" [, w [, h [, x pos [, y pos [, opt [, "fontname" [, "fontsz" [, "fontwt"]]]]]]]] )

That allows you all sorts of options, but it's not inside Diablo II.

Edited by greenmachine

Share this post


Link to post
Share on other sites

Obviously, this isn't exactly what you're looking for, but I know you can do it this way if you want:

Since Diablo II is going to be your active window (or at least, it would be if I did it), you can always press enter, and type in ! and your text to get an overhead message. Example:

$YourText = "This is a message."

Send ("{ENTER}") ; open chat thingy...

Send ("!" & $YourText)

Send ("{ENTER}") ; close chat, sending text to overhead bubble

This would send "This is a message." to the overhead bubble in DII. Of course, you could simplify those statements into one, but I split it up to show the steps.

EDIT -->

Also, this is a standard Diablo II font/size/color, so that's not it. But it is something.

ya i was going to be doing that but i need this message to stay on screen and i dont want other people in the game to see it.

Share this post


Link to post
Share on other sites

You need d2hackit. Let me see if I possibly have the files anymore...

Sorry it seems I have lost them. Try

http://www.mewgood.com/

Or search for D2Hackit. There is not much AutoIt can do for you in that respect. Unless you want to make a splash but that does not leak through a game window.

AutoIt Smith

Share this post


Link to post
Share on other sites

so theres no possible way to just put some text on the screen?

Share this post


Link to post
Share on other sites

What's the purpose of this? You need text on screen that others shouldn't be able to see, but are other people going to be in the game? Or is this for a bot, where you should be the only one there?

Share this post


Link to post
Share on other sites

its a program im planning on releasing called HealthHelper it checks your current health and mana and then if it sees there below 50% it drinks a pot

and i need to tell them that its running and print created by blablabla

Share this post


Link to post
Share on other sites

This cannot be created in AUTOIT. It can however be created using d2hackit and Dlls. Try making a Dll with a call structure of D2WinWrite(Color, Text, Win) and have AutoIt call it using DllCall.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0