跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[程序员] 客户端小白用 tauri 小技巧

发表于

没有桌面客户端开发经验的小白,做客户端一般是按前端的方式去做。主要是写页面。但是如何实现一些系统相关的功能(如复制粘贴、切换窗口),这里提供几种思路。 第一种思路是用 AppleScript (对于 MacOS 系统) ,但执行速度会比较慢,并且和 rust 通信需要时间。 第二种思路是模拟用户键盘事件,这种在大部分情况下没啥问题,但是应该稳定性会差一些。例如模拟键盘 Command+Tab 实现切换窗口时,有时候会失败,需要在按键之间加延迟 第三种就是直接调用系统的方法,例如在 Mac 上可以用 cocoa ,在 Windows 上可以用 winapi 。但这个门槛会比较高。

Featured Replies

No posts to show

创建帐户或登录来提出意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.