Noobster24 Posted July 1, 2007 Posted July 1, 2007 (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 July 1, 2007 by Noobster24 Programs so far:Teh Serializer - Search for licenses for Nero - Windows - Office - Alcohol etc.
martin Posted July 1, 2007 Posted July 1, 2007 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.GuiSetOnEventGuiCtrlSetOnEventTraySetOnEvent 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,AndreasDid 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.
Noobster24 Posted July 2, 2007 Author Posted July 2, 2007 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.
Holger Posted July 2, 2007 Posted July 2, 2007 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 Old project:GUI/Tray menu with icons and colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView
Noobster24 Posted July 2, 2007 Author Posted July 2, 2007 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...HolgerOk, thanks in advance. Programs so far:Teh Serializer - Search for licenses for Nero - Windows - Office - Alcohol etc.
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