Gif Posted June 1, 2007 Share Posted June 1, 2007 (edited) if $f_Fullscreen = 1 then ToolTip("Ctrl+c to pause/unpause"& @CRLF &"Ctrl+x to stop", @DesktopWidth-155, @DesktopHeight-120, "", 1) Sleep(1000) Else Sleep(100) EndIf when the $f_Fullscreen = 1 the tooltip appears but it remains there forever, the Sleep(1000) does not works... how do i make the tooltip dissappear in a selected time? Edited June 1, 2007 by c4nm7 Link to comment Share on other sites More sharing options...
herewasplato Posted June 1, 2007 Share Posted June 1, 2007 if $f_Fullscreen = 1 then ToolTip("Ctrl+c to pause/unpause"& @CRLF &"Ctrl+x to stop", @DesktopWidth-155, @DesktopHeight-120, "", 1) Sleep(1000) Else Sleep(100) EndIfoÝ÷ Û^Ø^Ó~ée±ÊÞz [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
Valuater Posted June 1, 2007 Share Posted June 1, 2007 maybe.. If $f_Fullscreen = 1 Then ToolTip("Ctrl+c to pause/unpause" & @CRLF & "Ctrl+x to stop", @DesktopWidth - 155, @DesktopHeight - 120, "", 1) Sleep(1000) ToolTip("") EndIf 8) Link to comment Share on other sites More sharing options...
Gif Posted June 1, 2007 Author Share Posted June 1, 2007 tryIf $f_Fullscreen = 1 Then ToolTip("Ctrl+c to pause/unpause" & @CRLF & "Ctrl+x to stop", @DesktopWidth - 155, @DesktopHeight - 120, "", 1) Sleep(1000) Else Sleep(100) EndIf again it doesnt work... Link to comment Share on other sites More sharing options...
Gif Posted June 1, 2007 Author Share Posted June 1, 2007 (edited) maybe.. If $f_Fullscreen = 1 Then ToolTip("Ctrl+c to pause/unpause" & @CRLF & "Ctrl+x to stop", @DesktopWidth - 155, @DesktopHeight - 120, "", 1) Sleep(1000) ToolTip("") EndIf 8) ok that workes perfect thanks.. Edited June 1, 2007 by c4nm7 Link to comment Share on other sites More sharing options...
herewasplato Posted June 1, 2007 Share Posted June 1, 2007 (edited) again it doesnt work...The only thing that I fixed was your sleep line was on the same line as your tooltip line. Val mentioned feeding the tooltip a null, but the code that you posted (once fixed) will exit and the tooltip goes away... Edit - but I should have known that the code posted was but a portion of a larger script - I should have seen Val's point and not focused on what was probably a copy/paste error :-( Edited June 1, 2007 by herewasplato [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
PsaltyDS Posted June 1, 2007 Share Posted June 1, 2007 ToolTip("Ctrl+c to pause/unpause"& @CRLF &"Ctrl+x to stop", @DesktopWidth-155, @DesktopHeight-120, "", 1) Your options call for an icon, but no title is given, so the icon will not be displayed. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
herewasplato Posted June 1, 2007 Share Posted June 1, 2007 Your options call for an icon, but no title is given, so the icon will not be displayed. Good catch - I totally missed that. It must not be a good day for me to look at code. I'll go back to sleep now. [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
Gif Posted June 1, 2007 Author Share Posted June 1, 2007 The only thing that I fixed was your sleep line was on the same line as your tooltip line. Val mentioned feeding the tooltip a null, but the code that you posted (once fixed) will exit and the tooltip goes away... Edit - but I should have known that the code posted was but a portion of a larger script - I should have seen Val's point and not focused on what was probably a copy/paste error :-( yeah im sure you would know that cause you are an mvp.. anyway it was my mistake, thanks all of you for helping dont know if that is considered to be a bug or it was an *occasionally problem but in the help file it says ToolTip("This is a tooltip", 0, 0) Sleep(2000); Sleep to give tooltip time to display so i couldnt know that ToolTip("") should take place *WRONG, might change the meaning of the phrase Link to comment Share on other sites More sharing options...
herewasplato Posted June 1, 2007 Share Posted June 1, 2007 (edited) ...but in the help file it says ToolTip("This is a tooltip", 0, 0) Sleep(2000); Sleep to give tooltip time to display...so i couldnt know that ToolTip("") should take place......but the help file also says: "A Tooltip will appear until the script terminates or ToolTip("") is called". It is the third sentence in the remarks section. Edited June 1, 2007 by herewasplato [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
Gif Posted June 1, 2007 Author Share Posted June 1, 2007 ...but the help file also says:"A Tooltip will appear until the script terminates or ToolTip("") is called".It is the third sentence in the remarks section. missed that ... my fault, should have checked the help file twice before posting 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