mirror of https://github.com/dnaka91/obws
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
413 B
Rust
19 lines
413 B
Rust
use anyhow::Result;
|
|
use obws::requests::hotkeys::KeyModifiers;
|
|
|
|
use crate::common;
|
|
|
|
#[tokio::test]
|
|
async fn hotkeys() -> Result<()> {
|
|
let client = common::new_client().await?;
|
|
let client = client.hotkeys();
|
|
|
|
client.list().await?;
|
|
client.trigger_by_name("ReplayBuffer.Save", None).await?;
|
|
client
|
|
.trigger_by_sequence("OBS_KEY_P", KeyModifiers::default())
|
|
.await?;
|
|
|
|
Ok(())
|
|
}
|