Jump to content



Photo

System Tray Icon Interface


  • Please log in to reply
6 replies to this topic

#1 trids

trids

    Hmmm .. and what have we here?

  • Active Members
  • PipPipPipPipPipPip
  • 1,004 posts

Posted 27 February 2004 - 11:36 AM

:angry: How about this ... ? :evil:

Currently:
The System Tray icon recognises a Left-Click and a Right-Click, and pops up a menu to: (un)pause the script; or terminate the script. B)

Suggestion:
Enhance this interface in two ways: :lmao:
  • Distinguish between Left and Right clicks.
  • Provide support for drag-drop on the icon.
Distinguish between Left and Right clicks:
When a left click is detected on the icon, display the current popup menu. But when a Right-Click is detected, popup a custom menu that will enable the user to interact with the script. The interaction (and custom menu) can be supported by new AU3 functions which identify UDFs that fire per menu item, perhaps along the lines of the following example.

;Setup custom menu     MenuAdd("Change Mode", "_MnuChangeMode")     MenuAdd("Reset with Defaults", "_MnuResetDefaults")     :     : ;Modify custom menu     MenuDelete("Change Mode")     :     :     ;Custom menu support    Func _MnuChangeMode()     :     : EndFunc Func _MnuResetDefaults()     :     : EndFunc



Provide support for drag-drop on the icon:
When a user drops something on the tray icon, trigger a predefined UDF. The drop event needs to discern between different kinds of items that can be dropped (eg: text items, file-references, etc). Different UDFs need to be able to handle different kinds of drops, perhaps as illustrated below.

Plain Text         
;Enable drag-drop on the SystemTray icon ;1 = Text ;2 = File ;4 = ????     DropEnable("_DropText", 1)  ;-> Text     DropEnable("_DropOther", 6);-> Everything else     :     :     ;Disable the detection of non-text items     DropDisable(6)       :     :     ;DragDrop UDFs Func _DropText()     : EndFunc Func _DropOther()     : EndFunc


Any takers? Any comments? :whistle:

I wish I could offer further input, by coding this perhaps, but my C-skills are zilch I'm afraid.
:iamstupid:

Edited by trids, 02 March 2004 - 10:20 AM.








#2 Jon

Jon

    Up all night to get lucky

  • Administrators
  • 9,544 posts

Posted 27 February 2004 - 11:59 AM

Some nice ideas there.

#3 trids

trids

    Hmmm .. and what have we here?

  • Active Members
  • PipPipPipPipPipPip
  • 1,004 posts

Posted 27 February 2004 - 12:32 PM

Thanks Jon B) .. I'm just sorry I only have inspiration to offer on this and no perspiration! Mind you, I guess I can help you test it .. :whistle:

#4 Chris_1013

Chris_1013

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 347 posts

Posted 27 February 2004 - 12:57 PM

Mmmm, this is something I've fancied for ages. A custom systray menu that'll run whatever functions you want.... Think of the possibilities...

drool....

#5 tuape

tuape

    Prodigy

  • Active Members
  • PipPipPip
  • 198 posts

Posted 30 September 2004 - 06:30 PM

Yeah, this would be great!

#6 Guest_CYTEXONE_*

Guest_CYTEXONE_*
  • Guests

Posted 12 December 2004 - 09:36 PM

Has anyone figured out a way to do this? Perhaps on click it loads the gui? :idiot:

#7 Dalarn

Dalarn

    Prodigy

  • Active Members
  • PipPipPip
  • 176 posts

Posted 12 December 2004 - 10:32 PM

...a...

Edited by Dalarn, 20 December 2004 - 01:59 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users