Introducing myself and 2 small doubts

Hello Guys,

I think this is my first post here in english forum. My name is Tiago Baciotti Moreira and I am brazilian. I knew Xojo a few years ago when I was searching for a VB Like application. Today I am using Xojo to develope simple applications, for example a simples store management.

I also used a few months ago Xojo to teach somple programming basics (I am actually a teacher at Information Systems Course).

Well, I am trying to make a simple application to manage Windows (and after that, Linux) clipboard. I am facing 2 problems:

  1. How can I put a small icon to Systray (besides windows clock on taskbar)? I searched the forum and did not find any answers. I remenber that in Visual Basic I needed to use an DLL Call but don´t know the details

  2. How can I map a computer shortcut to open my application. For example WINKEY + T to popup my main window from clipboard?

Thank yoy very much,

Regards,

Tiago Baciotti Moreira

Welcome to the forums.

I cannot answer your first question, but the second one is answered here. Bascially, adding the keyboard shortcut happens after the application is installed on the target computer.

Hope this helps.

re: (1)…

This functionality is built in to Xojo… If you open the language reference and type in trayitem you will get some idea and
there is an example shipped with Xojo in:-

\Example Projects\Desktop\TrayItem

re: (2)…
Sorry, never tried to do this :frowning:

@Louis Desjardins / @Chris Carter , Thanks for quick answer!

Chris, I will look to the trayitem!

And, about the shortcut my goal is to allow the user set the desired shortcut inside a kind of “options window” inside my program. For example, I want a shortcut to call a function in my program to show the last 10 texts sent to Clipboard.

Thank you!

Tiago

If you are happy with a mouse click, rather than a hot key, then for Windows, you could have the user click on the tray item and either pop up the list there, or have an option to open the UI

You can register a hotkey with the win32 RegisterHotKey function.

Welcome to the forum, and thanks for the question. I learned something new myself.

Tiago, avoid exposing your email to the forum or you run the risk of being flooded with spam.

You can ask @Norman Palardy to edit your post and remove it ou hide it a bit like: email base64: YmFjaW90dGlAZ21haWwuY29t

Hello @Tim Hare , thanks for the tip! I will try to do this. I never used a DLL Call in Xojo, but a little research will help me!

@Markus Winter , I learn something new almost everyday just reading foruns :wink:

Rick, thanks for the advice. I will send a PM to @Norman Palardy.

Thanks,

Tiago

Take a look at the HotkeyMonitor class in this project: GitHub - charonn0/WinLib: A Windows library for RealBasic