Jump to content

Recommended Posts

Posted

beautiful effects!
Excuse me Mr Melba23, just a question (feature request/suggestion)
could  this udf be adapted for tooltips?
something similar to this javascript library as example (http://www.walterzorn.de/en/tooltip/tooltip_e.htm) move mouse to links on that page to see the effects.

Thank You

 

image.jpeg.9f1a974c98e9f77d824b358729b089b0.jpeg Chimp

small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

Posted

Why not just use, oh I don't know, tooltips for that?

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

  Reveal hidden contents

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Posted
  On 7/23/2013 at 1:55 PM, BrewManNH said:

Why not just use, oh I don't know, tooltips for that?

 

yes, use the same nice graphic effects, but in addition of popup out of the Systray, show it as tooltip as well (using short messages and little images of course...... ? just an idea

 

image.jpeg.9f1a974c98e9f77d824b358729b089b0.jpeg Chimp

small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

  • Moderators
Posted

Pincopanco,

 

  Quote

could this udf be adapted for tooltips?

Quite possibly, but not by me! :D

If you want to use any of the code to develop your own version of that Java library, then feel free - all that really needs to be changed is the location where the Toast is created. ;)

Good luck! :)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

  • 1 month later...
Posted

Hi Melba!

I have a question: i don't need the slide-in from bottom and slide-out from top animation. Can I disable it somehow?

I find dllcall command only with animation. Can I replace with other command?

Thx

  • Moderators
Posted

pica,

Welcome to the AutoIt forums. :)

If you do not want the animation, just delete the 2 DllCall("user32.dll", "int", "AnimateWindow", ... lines. ;)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted

...and in the next version of AutoIt there will be _WinAPI_AnimateWindow().

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted
  On 9/9/2013 at 4:11 PM, guinness said:

...and in the next version of AutoIt there will be _WinAPI_AnimateWindow().

...and constants to replace all those nasty "magic numbers".

"Just be fred, all we gotta do, just be fred."  -Vocaliod

"That is a Hadouken. A KAMEHAMEHA would have taken him 13 days and 54 episodes to form." - Roden Hoxha

@tabhooked

Clock made of cursors ♣ Desktop Widgets ♣ Water Simulation

Posted

  On 9/9/2013 at 3:51 PM, Melba23 said:

If you do not want the animation, just delete the 2 DllCall("user32.dll", "int", "AnimateWindow", ... lines. ;)

 

 

A billion thanks. Of course it works, you wrote the script. :)

  • 4 weeks later...
  • 4 months later...
Posted

  On 1/17/2010 at 4:20 PM, Melba23 said:

[NEW VERSION] - 20 May 13

 

Added: You can now display an image file as well as an icon.

 

Thanks to careca for the request. ;)

New UDF, example and zip below. :)

 

Previous versions:

  Reveal hidden contents

[NEW VERSION] - 13 Feb 12

Fixed:

 

Using the [X] to retract a Toast which returned directly to the script meant that the message queue still held the relevant event. If the retraction was followed by a subsequent Toast before the message queue had been cleared, this queued event was likely to be interpreted by AutoIt as a click on the [X] of the new Toast. The UDF now clears the message queue when a Toast pauses the script awaiting user input to prevent AutoIt acting on a queued event.

Running _Toast_Show before an [X] Toast retracted automatically left an Adlib function running which then retracted the subsequent Toast early.

 

Thanks to 1RV34 for reporting the bugs.


New - Toast location code rewritten. Location now correct when Classic display mode selected and if users reset the work area to place additonal toolbars above the TaskBar.

Thanks to jmon and MilesAhead for the reports - and guinness for spotting the problem both times.


There are now 3 versions of this UDF available in this topic:

1. The original version in this post.

2. A version which can produce a colour gradient in the titlebar - you will need Yasheid's WinAPIEx UDF.

3. A version which can also display resources saved within the compiled exe - you will need Zedna's Resources UDF as well.

As my original intention was to offer code which did not require additional UDFs, I am only seriously supporting the original version.

However, as you can see from the above, I am quite happy to help you develop a more advanced version. No guarantees, but if you have a great idea for an additional feature, do let me know.

A forum query about the small pop-ups that some apps produce from the systray led me to create my version of how this can be done.

By the way, I call these small GUIs "Toasts" for obvious reasons! :'(

[NEW] Here is the actual Toast UDF:

  Reveal hidden contents

There are 3 user functions within the UDF:

1. _Toast_Set: Sets text justification and, optionally, colours and font for Toasts

2. _Toast_Show: Shows the Toast

3. _Toast_Hide: Hides the Toast if it has not retracted automatically

There are pre-set min and max values for Toast width which you can alter if you wish (lines 218-220):

; Set default auto-sizing Toast widths

Local $iToast_Width_max = 500

Local $iToast_Width_min = 150

However, you can override the maximum setting up to the full display width by using the "Raw" parameter.

You will also need an include file (another of my UDFs) to make sure the Toast is large enough to fit the required content. It is included in the zip file below or you can download it from here - just save it as StringSize.au3 in the same folder.

And finally an example script to show it working:

  Reveal hidden contents

By the way, I realise nearly all of the DLL calls in these UDFs could be made by using commands in other UDFs like WinAPI.au3 - I was trying to prevent the need for any other include files when I wrote these to prevent bloat. :D

As always, kind comments and constructive criticisms welcome - particularly the former! :)

All files above in zip format:attachicon.gifToast.zip

M23

 

Awesome Melba!!! I tried this UDF and I am very glad to see it working as Charm. Thanks and keep up the good work.

Regards,

Sammyboy

  • 1 month later...
Posted

OK, updated to Windows 7, and balloon tips is not working...this appears to be the replacement.

Anyway to tell the toast window where to open?

Anyway to keep the toast window on top?

These might have been answered, but I did not see it, or I missed it.

Thanks

  Reveal hidden contents
All by me:

"Sometimes you have to go back to where you started, to get to where you want to go." 

"Everybody catches up with everyone, eventually" 

"As you teach others, you are really teaching yourself."

From my dad

"Do not worry about yesterday, as the only thing that you can control is tomorrow."

 

WindowsError.gif

  Reveal hidden contents

WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF

AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send

StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2

AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit  Docs

SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF

Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language

Programming Tips

Excel Changes

ControlHover.UDF

GDI_Plus

Draw_On_Screen

GDI Basics

GDI_More_Basics

GDI Rotate

GDI Graph

GDI  CheckExistingItems

GDI Trajectory

Replace $ghGDIPDll with $__g_hGDIPDll

DLL 101?

Array via Object

GDI Swimlane

GDI Plus French 101 Site

GDI Examples UEZ

GDI Basic Clock

GDI Detection

Ternary operator

Posted

  On 3/22/2014 at 8:29 PM, nitekram said:

OK, updated to Windows 7, and balloon tips is not working...this appears to be the replacement.

 

Anyway to tell the toast window where to open?

Anyway to keep the toast window on top?

 

These might have been answered, but I did not see it, or I missed it.

 

Thanks

Did you actually read the documentation headers?

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

  • Moderators
Posted

nitekram,

The Toast always opens above the systray (notification area) - there is no option to display it anywhere else. You might like to look at my Notify UDF - that does let you choose which side of the screen and in which direction the notifications appear. :)

The Toast is created with the $WS_EX_TOPMOST extended style - so it should be on top already. ;)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted (edited)

I was reading the parameters (in the header), to see if you could change location - did not see it. I thought it was set to be ontop, but I have a window that went over it and messed up the text. Also because I am using 2 monitors, my toast is not above the systray, but rather on the primary monitor at the very upper left corner.

edit, I also have the start menu (systray) on the secondary monitor, on the bottom

edit2, the graphics card I am using is rather old, and the most resent driver is for 2004 for XP, using that as the Windows 7 drivers - more or less it works, I have seen some issues with an application that is using JAVA, so when I lock my computer, or it times out, that application will crash. I am stating this, as it might be the reason for the text getting messed up

Edited by nitekram

  Reveal hidden contents
All by me:

"Sometimes you have to go back to where you started, to get to where you want to go." 

"Everybody catches up with everyone, eventually" 

"As you teach others, you are really teaching yourself."

From my dad

"Do not worry about yesterday, as the only thing that you can control is tomorrow."

 

WindowsError.gif

  Reveal hidden contents

WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF

AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send

StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2

AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit  Docs

SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF

Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language

Programming Tips

Excel Changes

ControlHover.UDF

GDI_Plus

Draw_On_Screen

GDI Basics

GDI_More_Basics

GDI Rotate

GDI Graph

GDI  CheckExistingItems

GDI Trajectory

Replace $ghGDIPDll with $__g_hGDIPDll

DLL 101?

Array via Object

GDI Swimlane

GDI Plus French 101 Site

GDI Examples UEZ

GDI Basic Clock

GDI Detection

Ternary operator

  • Moderators
Posted

nitekram,

I will look around the forum and see if I can come up with some double monitor location code - as I have only the one it is not something I have ever really though about. :)

As to the "on top" problem, I can only assume that the other window also had the same style applied - I believe Windows then works on creation order to decide which gets priority. ;)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted

  On 3/22/2014 at 9:08 PM, Melba23 said:

nitekram,

I will look around the forum and see if I can come up with some double monitor location code - as I have only the one it is not something I have ever really though about. :)

As to the "on top" problem, I can only assume that the other window also had the same style applied - I believe Windows then works on creation order to decide which gets priority. ;)

M23

 

Thanks, hope you find something on the two monitors. As for the other window, it is not an 'on top' window, as I have other windows that I put on it all the time. Since I have a older machine, I am not too worried about that, and if I can get the toast window to show down near the systray, then no worries anyway.

Also, I did put a time out on that, but it did not remove the window, so I used your _Toast_Hide(). Strange as the toast windows kept the delay and went away after using the _Toast_Hide().

  Reveal hidden contents
All by me:

"Sometimes you have to go back to where you started, to get to where you want to go." 

"Everybody catches up with everyone, eventually" 

"As you teach others, you are really teaching yourself."

From my dad

"Do not worry about yesterday, as the only thing that you can control is tomorrow."

 

WindowsError.gif

  Reveal hidden contents

WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF

AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send

StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2

AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit  Docs

SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF

Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language

Programming Tips

Excel Changes

ControlHover.UDF

GDI_Plus

Draw_On_Screen

GDI Basics

GDI_More_Basics

GDI Rotate

GDI Graph

GDI  CheckExistingItems

GDI Trajectory

Replace $ghGDIPDll with $__g_hGDIPDll

DLL 101?

Array via Object

GDI Swimlane

GDI Plus French 101 Site

GDI Examples UEZ

GDI Basic Clock

GDI Detection

Ternary operator

  • Moderators
Posted

nitekram,

I will try and come up with some location code for you to test soon - I hope you will not mind running some test code first so I can see what sort of returns you get from a dual monitor setup. ;)

If you post the code you are using I would be happy to try and debug the problem you are having with getting the Toasts to disappear. :)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted (edited)

I used this:

_Toast_Set(1)
_Toast_Show(0, 'Ticket Number', $aAlertInfo[2], 3)

That did not disappear until after I killed my script, but after I added  _Toast_Hide(), it waited for the 3 seconds and disappeared - I do not mind that, as much as trying to move the toast window down towards the clock.

As for testing, I am working today, until 7:30, and will be working from 730 - 730 tommorrow, so I am yours to use for testing.
 

edit, forgot you have no clue what timezone I am in - eastern or 23:30 gmt, and tomorrow 11:30 gmt - 23:30 gmt

Edited by nitekram

  Reveal hidden contents
All by me:

"Sometimes you have to go back to where you started, to get to where you want to go." 

"Everybody catches up with everyone, eventually" 

"As you teach others, you are really teaching yourself."

From my dad

"Do not worry about yesterday, as the only thing that you can control is tomorrow."

 

WindowsError.gif

  Reveal hidden contents

WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF

AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send

StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2

AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit  Docs

SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF

Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language

Programming Tips

Excel Changes

ControlHover.UDF

GDI_Plus

Draw_On_Screen

GDI Basics

GDI_More_Basics

GDI Rotate

GDI Graph

GDI  CheckExistingItems

GDI Trajectory

Replace $ghGDIPDll with $__g_hGDIPDll

DLL 101?

Array via Object

GDI Swimlane

GDI Plus French 101 Site

GDI Examples UEZ

GDI Basic Clock

GDI Detection

Ternary operator

  • Moderators
Posted

nitekram,

That code as posted works just fine for me - the Toast appears and waits 3 seconds before disappearing. So I am a bit at a loss as to why it does not appear for you. Is the text you are trying to show likely to be too wide? :huh:

Weather permitting, I should be flying tomorrow morning - I will try and get something cobbled together for tommorrow afternoon, which will be late morning your side of the Atlantic. ;)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...