English
Forum

INI won't written

another Question Trayicon

 

Hans-Jürgen
Trog
I belästige you again.

yet has Tryicon functions, but now only to that part:

If @TrayIcon("Msg", 1) = $204 'Rechter Mausbutton pressed gives no reaction

but

if @TrayIcon("Msg", 1) = $202 'linke Mouse button works

have You for too a Solution?

Vielen Thanks
 
XProfan X4
Windows-Tablet mit Win11, XProfan X4
08/02/24  
 




H.Brill
shining by me sooner the left Mausbutton To his.
Declare hIcon&, end%
Window Title "XProfan 11: TrayIcon-Demo"
Cls
hIcon& = create("hIcon", "Profan")
TrayIcon("add", %hWnd, 1, hIcon&, "XProfan 11")
Print "Ende with linkem Double click!"

WhileNot end%

    WaitInput

    Select TrayIcon("msg", 1)

        CaseOf $201 : Print "Linke Mouse button gedrückt"

        CaseOf $202: Print "Linke Mouse button losgelassen"

        CaseOf $203: end% = 1

        CaseOf $207 : Print "Mittlere Mouse button gedrückt"

        CaseOf $208 : Print "Mittlere Mouse button losgelassen"

        CaseOf $209 : Print "Mittlere Mouse button Doppelklick"

        CaseOf $204: Print "Rechte Mouse button gedrückt"

        Case $205 : Print "Rechte Mouse button losgelassen"

        CaseOf $206: Print "Rechter Doppelklick"

    EndSelect

EndWhile

TrayIcon("delete", %hWnd, 1)
DeleteObject hIcon&
End

but there can itself indeed over ...Button_UP behelfen, there it Yes
to that equal Result lead.
 
Benutze XPROFAN X3 + FREEPROFAN
Wir sind die XProfaner.
Sie werden von uns assimiliert.
Widerstand ist zwecklos!
Wir werden alle ihre Funktionen und Algorithmen den unseren hinzufügen.

Was die Borg können, können wir schon lange.
08/03/24  
 




Hans-Jürgen
Trog
H.Brill (03.08.2024)
shining by me sooner the left Mausbutton To his.
Declare hIcon&, end%
Window Title "XProfan 11: TrayIcon-Demo"
Cls
hIcon& = create("hIcon", "Profan")
TrayIcon("add", %hWnd, 1, hIcon&, "XProfan 11")
Print "Ende with linkem Double click!"

WhileNot end%

    WaitInput

    Select TrayIcon("msg", 1)

        CaseOf $201 : Print "Linke Mouse button gedrückt"

        CaseOf $202: Print "Linke Mouse button losgelassen"

        CaseOf $203: end% = 1

        CaseOf $207 : Print "Mittlere Mouse button gedrückt"

        CaseOf $208 : Print "Mittlere Mouse button losgelassen"

        CaseOf $209 : Print "Mittlere Mouse button Doppelklick"

        CaseOf $204: Print "Rechte Mouse button gedrückt"

        Case $205 : Print "Rechte Mouse button losgelassen"

        CaseOf $206: Print "Rechter Doppelklick"

    EndSelect

EndWhile

TrayIcon("delete", %hWnd, 1)
DeleteObject hIcon&
End

but there can itself indeed over ...Button_UP behelfen, there it Yes
to that equal Result lead.


with the View source reacted the program on none Button.

what mean You with "...Button_UP" ?
 
XProfan X4
Windows-Tablet mit Win11, XProfan X4
08/03/24  
 




H.Brill
Bedienst You the program too correctly. ?
under in the Taskbar arrow to supra (^).
in the Kästchen you see then your Trayicon.


what mean You with "...Button_UP" ?


so one Click exists really from 2 Events. Z.b. one Linksklick from
$0201 : wm_LButtonDown
and
$0202 : wm_LButtonUp
see WindowsMessages.

rather said from the Herunterdrücken and the Losslassen the
Mouse button. The users observes the but at Click none. therefore
can so one Click too with the wm_LButtonUp discern.
before Yes a Button losgelassen go can, must tappt im dunkeln Yes first pressed
his. And so is it Yes eindeutig, whether the users something klicked has.

so there indeed yet %mousepressed. whom need one but sooner
at Freihandzeichnen, Drag & Drop etc.
 
Benutze XPROFAN X3 + FREEPROFAN
Wir sind die XProfaner.
Sie werden von uns assimiliert.
Widerstand ist zwecklos!
Wir werden alle ihre Funktionen und Algorithmen den unseren hinzufügen.

Was die Borg können, können wir schon lange.
08/03/24  
 




Hans-Jürgen
Trog
[QUOTE_=H.Brill (03.08.2024)  [...] 
Bedienst You the program too correctly. ?
under in the Taskbar arrow to supra (^).
in the Kästchen you see then your Trayicon.

having I do not. I have always into Window geclickt

If I on the Trayicon click, comes with the left Mausbutton always only "linke Mouse button losgelassen", likewise at pressure the Mausrad. it come no others Reaktionen.
 
XProfan X4
Windows-Tablet mit Win11, XProfan X4
08/03/24  
 




H.Brill
Try time the :
Declare Int MNummer[], String MString[], Long end, x
MNummer[0] = $0201 : MString[0] = "wm_LButtonDown"
MNummer[1] = $0202 : MString[1] = "wm_LButtonUp"
MNummer[2] = $0204 : MString[2] = "wm_RButtonDown"
MNummer[3] = $0205 : MString[3] = "wm_RButtonUp"
MNummer[4] = $0207 : MString[4] = "wm_MButtonDown"
MNummer[5] = $0208 : MString[5] = "wm_MButtonUp"
MNummer[6] = $20A  : MString[6] = "Mausrad"
Window 600, 400
end = 0
User Messages $201, $202, $204, $205, $207, $208, $20A

WhileNot end

    WaitInput
    x = 0
    Locate 10, 2
    x = IndexOf(MNummer[], %UMessage)
    Print Space$(20)
    Locate 10, 2
    Case x > -1 : Print MString[x]
    Case %Key = $10 : end = 1

EndWhile

End

or have you got any Mouse buttons over the windows-system umgelegt
(z.b. Linkshänder o. ä.) ?

otherwise should the functions.
 
Benutze XPROFAN X3 + FREEPROFAN
Wir sind die XProfaner.
Sie werden von uns assimiliert.
Widerstand ist zwecklos!
Wir werden alle ihre Funktionen und Algorithmen den unseren hinzufügen.

Was die Borg können, können wir schon lange.
08/03/24  
 




Hans-Jürgen
Trog
the shows everything correctly. on!

How building I the now one?
 
XProfan X4
Windows-Tablet mit Win11, XProfan X4
08/03/24  
 




Hans-Jürgen
Trog
I hope, I nerve you not!
 
XProfan X4
Windows-Tablet mit Win11, XProfan X4
08/03/24  
 




H.Brill
goes because the code, the with whom TraIcon-command standing, not ?

with the User Messages does it not. The only for the Mainwindow
virtual. and a lever for Systray having We also not.
what on the TrayIcon pressed watts, can us only The
TrayIcon("msg", 1) supplying.
Printe times the Messages, The TrayIcon("msg", 1) back gives, on the Window
from. If it normal numbers are, must You The yet before with Hex$() Edit.
Perhaps come we then moreover.

How already said : by me functions it, as should.
 
Benutze XPROFAN X3 + FREEPROFAN
Wir sind die XProfaner.
Sie werden von uns assimiliert.
Widerstand ist zwecklos!
Wir werden alle ihre Funktionen und Algorithmen den unseren hinzufügen.

Was die Borg können, können wir schon lange.
08/03/24  
 




Hans-Jürgen
Trog
rights maustaste bring 517 and no Text

left Mouse button bring 514 and text left Mouse button losgelassen
 
Windows-Tablet mit Win11, XProfan X4
08/03/24  
 




Hans-Jürgen
Trog
to conversion comes rights Mouse button losgelassen. pressed comes none.
 
XProfan X4
Windows-Tablet mit Win11, XProfan X4
08/03/24  
 




H.Brill
is still then correctly., are then The normalen Zahlenwerte instead of Hex :
bring with Hex$(517) - 205 and Hex$(514) - 202

the Dollarzeichen for Hex comes naturally yet before it. goes indeed
again zuück : Print VAL("$205"), VAL("$202").

and whether one now Zahlenwerte or Hexwerte together vergleicht,
is still schnuppe.

How I supra already explained : losgelassen (UP) is as much as pressed.
whom worth of DOWN erhälst You only, if You The Mouse button pressed hälst.
The values of TrayIcon("Msg", 1) are anyway correctly..
 
Benutze XPROFAN X3 + FREEPROFAN
Wir sind die XProfaner.
Sie werden von uns assimiliert.
Widerstand ist zwecklos!
Wir werden alle ihre Funktionen und Algorithmen den unseren hinzufügen.

Was die Borg können, können wir schon lange.
08/03/24  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

735 Views

Untitledvor 0 min.
Sven Bader vor 30 Tagen
HofK10/09/24
Manfred Barei09/25/24
E.T.09/14/24
More...

Themeninformationen

this Topic has 2 subscriber:

Hans-Jürgen Trog (8x)
H.Brill (6x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie