Jump to content
Sign in to follow this  
=sinister=

TrayTip

Recommended Posts

=sinister=

ok, Im making a bot for world of warcraft and I need some help with this traytip I found on the net:

TrayTip($name & " " & $version & " Statistics", $message & @LF & @LF & $stats, 10, 1)

Where do I put the messege? And can I get it so that when you press a button, this pops up? Thanks!

Share this post


Link to post
Share on other sites
=sinister=

Theres an error when I use it and it says "variable used without being declared".

Share this post


Link to post
Share on other sites
=sinister=

heres somethin else I used too. Doesn't work on this program but works fine with another:

Func Status($message)

If WinExists ( "World of Warcraft") then

$stats = ""

$stats = $stats & "Life: " & LifeValue() & "%" & @LF

$stats = $stats & "Mana: " & ManaValue() & "%" & @LF

$stats = $stats & @LF

$stats = $stats & "Estimated Kills: " & $kills & @LF

$stats = $stats & "Estimated Loots: " & $loots

EndIf

EndFunc

Share this post


Link to post
Share on other sites
=sinister=

I deleted some stuff, now it won't pop up at all....

Share this post


Link to post
Share on other sites
=sinister=

well, it never actually poped up...

Share this post


Link to post
Share on other sites
B3TA_SCR1PT3R

u posted 5 times..just edit your first post!!

Edited by B3TA_SCR1PT3R

[right][font="Courier New"]...Run these streets all day, I can sleep when I die.[/font] [/right]

Share this post


Link to post
Share on other sites
=sinister=

so? Its not like you get an award for being the neatest, jeez, quit bossing me around!! Im so sick of you!

Share this post


Link to post
Share on other sites
herewasplato

so? Its not like you get an award for being the neatest, jeez, quit bossing me around!! Im so sick of you!

<{POST_SNAPBACK}>

There are just so many people that will help others script for a game. B3TA is one of them and you treat him like that?

In a post long, long ago... No, wait! It was only yesterday when you said,

HAHA! I got the source! I wanna take a poll first, Should I post it here, or should I not?

So now you are going to post it one line/section at a time???

There are several lines of code messed up in the place where I found the source... good luck to ya.

re: http://www.autoitscript.com/forum/index.ph...topic=15457&hl=

Edited by herewasplato

[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites
LxP

Okay, so let's get back on topic:

TrayTip($name & " " & $version & " Statistics", $message & @LF & @LF & $stats, 10, 1)

Where do I put the messege? And can I get it so that when you press a button, this pops up? Thanks!

<{POST_SNAPBACK}>

If you have the beta version of AutoIt then the help file very clearly states what parameter has what effect:

TrayTip ( "title", "text", timeout [, option] )

heres somethin else I used too. Doesn't work on this program but works fine with another:

Func Status($message)

If WinExists ( "World of Warcraft") then

$stats = ""

$stats = $stats & "Life: " & LifeValue() & "%" & @LF

$stats = $stats & "Mana: " & ManaValue() & "%" & @LF

$stats = $stats & @LF

$stats = $stats & "Estimated Kills: " & $kills & @LF

$stats = $stats & "Estimated Loots: " & $loots

EndIf

EndFunc

<{POST_SNAPBACK}>

It calls LifeValue() and ManaValue() functions. Do you have them defined in your script?

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  

×