Atti Posted January 20, 2005 Share Posted January 20, 2005 TrayTip ("Bot Status", "Waiting and Searching For a Target Percent of Life:" & $hpp & "Percent of Energy:" & $epp, 100) I've tried adding spaces, but alas, no spaces are put into the Tray Tip... If anyone can tell me how I'd really be happy! (or tell me how to make a traytip have a return on a line, so text will appear on the next line as opposed to having to tab/ space down to the next line) Link to comment Share on other sites More sharing options...
phillip123adams Posted January 20, 2005 Share Posted January 20, 2005 TrayTip ("Bot Status", "Waiting and Searching For a Target Percent of Life:" & $hpp & "Percent of Energy:" & $epp, 100)I've tried adding spaces, but alas, no spaces are put into the Tray Tip... If anyone can tell me how I'd really be happy! (or tell me how to make a traytip have a return on a line, so text will appear on the next line as opposed to having to tab/ space down to the next line)<{POST_SNAPBACK}>spaces:TrayTip ("Bot Status", "Waiting and Searching For a Target Percent of Life: " & $hpp & " Percent of Energy: " & $epp, 100)line breaks:TrayTip ("Bot Status", "Waiting and Searching For a Target" & @lf & "Percent of Life: " & $hpp & @lf & "Percent of Energy: " & $epp, 100) Phillip Link to comment Share on other sites More sharing options...
Atti Posted January 20, 2005 Author Share Posted January 20, 2005 Sweeet! thank you! Link to comment Share on other sites More sharing options...
Atti Posted January 20, 2005 Author Share Posted January 20, 2005 Oh, and can I slap a % to the end of a variable w/o changing it's value? e.g. $hpp = 100 But I want it to say 100% in the tray tip? Link to comment Share on other sites More sharing options...
sugi Posted January 20, 2005 Share Posted January 20, 2005 Oh, and can I slap a % to the end of a variable w/o changing it's value?No, just think a second about it: You cannot change the value without changing it's value.How did you display the text before the variables? Just do the same thing with the %. Link to comment Share on other sites More sharing options...
ezzetabi Posted January 20, 2005 Share Posted January 20, 2005 (edited) sugi, you are optimistic about the ability of this guy of understanding something... I guess he understand nothing about the & operator... I am afraid he meant: TrayTip ("Bot Status", "Waiting and Searching For a Target" & @lf & "Percent of Life: " & $hpp & "%"& @lf & "Percent of Energy: " & $epp & "%", 100) Edited January 20, 2005 by ezzetabi Link to comment Share on other sites More sharing options...
Atti Posted January 20, 2005 Author Share Posted January 20, 2005 ! so put a & "%" after the variable? Link to comment Share on other sites More sharing options...
ezzetabi Posted January 20, 2005 Share Posted January 20, 2005 Oh dear... The & operator means CONCANTENATE! So: yes of courseYou need concatenating different const, variant or macros!So if the value of $test is 'Hello' and you want to concatenate with the const ' world' you have to write$test & ' world'is it so hard?!? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now