Sign in to follow this  
Followers 0
Noobster24

Onclick on TrayTip call function

5 posts in this topic

#1 ·  Posted (edited)

Hi,

I searched the forum how to solve this question. I use the TrayTip to show new messages for certain information (P2000 Calls).

I would like to create so that when somebody clicks on the TrayTip a function is called.

GuiSetOnEvent

GuiCtrlSetOnEvent

TraySetOnEvent etc. isn't helping me.

In various similar topics people advise to use MouseGetPos() in combination with _IsPressed(). But different people use different screen sizes + that the TrayTip will appear on different coordinates, I don't know where to begin.

Hope somebody can help me.

Thanks,

Andreas

Edited by Noobster24

Programs so far:Teh Serializer - Search for licenses for Nero - Windows - Office - Alcohol etc.

Share this post


Link to post
Share on other sites



Hi,

I searched the forum how to solve this question. I use the TrayTip to show new messages for certain information (P2000 Calls).

I would like to create so that when somebody clicks on the TrayTip a function is called.

GuiSetOnEvent

GuiCtrlSetOnEvent

TraySetOnEvent etc. isn't helping me.

In various similar topics people advise to use MouseGetPos() in combination with _IsPressed(). But different people use different screen sizes + that the TrayTip will appear on different coordinates, I don't know where to begin.

Hope somebody can help me.

Thanks,

Andreas

Did you search as far back as my reply to your previous post earlier today?


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

Did you search as far back as my reply to your previous post earlier today?

Yep, I read it:

#include <GuiConstants.au3>

[quote]$gg = GUICreate("sample 1")
GUISetState()

Opt("TrayAutoPause",0); Script will not be paused when clicking the tray icon.
$zal   = TrayCreateItem("Maximise")
TrayCreateItem("")
TraySetState()


While 1
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop

    $tsg = TrayGetMsg()
    Switch $tsg
        Case $zal
            GUISetState(@SW_RESTORE,WinGetHandle("sample"))
            
    EndSwitch
WEnd[/quote]oÝ÷ Ø­¶¼­¢ë¶­¬èµ«kk(­zoí­¬¢rÀÒ-®'Â+a¶§ÉbëaÆ®¶­sbb33c¶vrÒuT7&VFRgV÷C·6×ÆRgV÷C²¤uT6WE7FFR ¤÷BgV÷CµG&WFõW6RgV÷C²Ã²67&BvÆÂæ÷B&RW6VBvVâ6Æ6¶ærFRG&6öâà¢b33c·¦ÂÒG&7&VFTFVÒgV÷C´ÖÖ6RgV÷C²¥G&7&VFTFVÒgV÷C²gV÷C²¥G&6WE7FFR¢b33c·G&FÒG&FgV÷C·FFÆRgV÷C²ÂgV÷C·FWBgV÷C²Â# ¥vÆR¢b33c¶×6rÒuTvWD×6r¢bb33c¶×6rÒb33c´uTôUdTåEô4Äõ4RFVâWDÆö÷ ¢b33c·G6rÒG&vWD×6r¢7vF6b33c·G6p¢66Rb33c·¦À¢uT6WE7FFR5uõ$U5Dõ$RÅvävWDæFÆRgV÷C·6×ÆRgV÷C²¢66Rb33c·G&F¢×6v&÷Âb33·FW7Bb33²Âb33µ÷R6Æ6¶VBFRG&Fb33²¢VæE7vF6¥tVæ

But that isn't working...


Programs so far:Teh Serializer - Search for licenses for Nero - Windows - Office - Alcohol etc.

Share this post


Link to post
Share on other sites

It is possible, but not like this.

I have some code snippets here for this and to use also traymenu icons or more tray icons.

It is more a way over the GUI message loop.

Will post it tomorrow...

So long...

Holger

Share this post


Link to post
Share on other sites

It is possible, but not like this.

I have some code snippets here for this and to use also traymenu icons or more tray icons.

It is more a way over the GUI message loop.

Will post it tomorrow...

So long...

Holger

Ok, thanks in advance.


Programs so far:Teh Serializer - Search for licenses for Nero - Windows - Office - Alcohol etc.

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