Sign in to follow this  
Followers 0
Angel

Wait for a tooltip?

12 posts in this topic

Hi,

I'd like to know if it is possible to make AutoIt wait for a tooltip, in the same way as you can make it wait for a window with a certain title or text. Some programs show a tooltip when something happens, and I'd like to make a script that "reacts" to that tooltip.

So is it possible? I could not find any ToolTip related function (other than ToolTip) in the help file! :whistle:

Thanks!

Angel

Share this post


Link to post
Share on other sites



Hi,

I'd like to know if it is possible to make AutoIt wait for a tooltip, in the same way as you can make it wait for a window with a certain title or text. Some programs show a tooltip when something happens, and I'd like to make a script that "reacts" to that tooltip.

So is it possible? I could not find any ToolTip related function (other than ToolTip) in the help file! :whistle:

Thanks!

Angel

<{POST_SNAPBACK}>

that's a neat idea, i couldn't find anything either, but i'm sure it's possible to make a UDF for that... i will try to take a look at it at home today and will post if i am able to figure anything out...

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

You're saying an additional parameter?

Like timeout in TrayTip?

<{POST_SNAPBACK}>

no, he's looking for a variation on like WinWait(), except instead of waiting for a window title, it instead waits for a tooltip...

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

You're saying an additional parameter?

Like timeout in TrayTip?

<{POST_SNAPBACK}>

No, what I mean is that I want my script to sit there waiting for a ToolTip that is shown by a different application (that is, not by my script). Once it detects the tooltip, it would read its contents and act accordingly.

For instance (this is not exactly what I want to do, but it should give you an idea), windows shows a tooltip when the disk space is low. I could make a script that waits for that tooltip and deletes the temp folder, for instance. Of course there are other ways of solving this particular problem with AutoIt but as I said this is just an example.

So what I want is something like "ToolTipWait" or "ToolTipWaitText" and I wonder if this is something that can already be done today with AutoIt.

If not this would be a great addition, I think.

Cheers,

Angel

Share this post


Link to post
Share on other sites

Oh, now I understand.

At the moment, personally I never had the necessity of waiting for such reaction (like a tooltip).

Maybe could be finished with some UDF...I think.

Share this post


Link to post
Share on other sites

A tooltip is a window. AutoIt can find windows. Therefore, AutoIt can find Tooltips.

Share this post


Link to post
Share on other sites

A tooltip is a window.  AutoIt can find windows.  Therefore, AutoIt can find Tooltips.

<{POST_SNAPBACK}>

:whistle: You're right!

then

$hWnd_ttip = WinGetHandle("classname=tooltips_class32")

Share this post


Link to post
Share on other sites

A tooltip is a window.  AutoIt can find windows.  Therefore, AutoIt can find Tooltips.

<{POST_SNAPBACK}>

that's exactly why i figured a udf shouldn't be too hard....

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

A tooltip is a window.  AutoIt can find windows.  Therefore, AutoIt can find Tooltips.

<{POST_SNAPBACK}>

Ok, so I can just use WinWait and so on? On retrospective I should have thought about that, but I did not know that Tooltips are windows from Windows perspective. And by the way, when I said ToolTips I actually meant TrayTips (the events are shown by tray programs). I guess that this will work too, right? (I will try it, but it'd be nice to have it here for someone else looking for this info).

Actually, I think that it'd be great if this was mentioned somewhere in the help file. Perhaps a section explaining what a window is and what it is not? It is probably evident to the Windows gurus that make AutoIt but that is hardly the majority of AutoIt users! :-)

Thanks Valik!

Angel

Share this post


Link to post
Share on other sites

...when I said ToolTips I actually meant TrayTips...

<{POST_SNAPBACK}>

I came really close to asking about this difference in terms, because your illustration of low disk space is a "Tray Tip".... but alas, I got caught up in playing with WinList() and a Tray Tip of my own and never got back the the post.

I never saw the Tray Tip in the Winlist. Tool Tips did not show up either - but that is probably because I do not know what I'm doing. Both types of tips were probably there among the "invisible or untitled" windows. It was fun nonetheless.

later....


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

Share this post


Link to post
Share on other sites

Actually, I think that it'd be great if this was mentioned somewhere in the help file. Perhaps a section explaining what a window is and what it is not? It is probably evident to the Windows gurus that make AutoIt but that is hardly the majority of AutoIt users! :-)

Thats a rather simple one as well. Assuming the object is real, meaning its not just a picture which the application defines its own hit region for, then its a "widnow".

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