windows stuff

This commit is contained in:
Nickiel12 2021-12-31 02:08:37 -08:00
parent 6134ef8843
commit ce92342bc2
11 changed files with 10 additions and 4 deletions

View file

@ -10,4 +10,4 @@ workctl = "0.2.0"
ctrlc = "3.2.1"
serde_json = "1.0"
crossbeam-channel = "0.5"
inputbot = {path = "/home/nick/Documents/GitHub/InputBot"}
inputbot = {path = "D:\\InputBot"}

View file

@ -12,7 +12,7 @@ mod modules;
#[cfg(target_os = "windows")]
const SERVER_ADDRESS: &str = "10.0.0.209:5000";
const SERVER_ADDRESS: &str = "10.0.0.168:5000";
#[cfg(target_os = "linux")]
const SERVER_ADDRESS: &str = "10.0.0.168:5000";

View file

@ -1,8 +1,13 @@
use std::process::Command;
use super::stream_states::{state_update::StateUpdate, enums::{SlideChange, SubScenes, Scenes}};
const AHK_FILES_FOLDER: &str = "./src/ahk_files/";
pub const OPTIONS_PATH: &str = "./options.json";
const AHK_FILES_FOLDER: &str = ".\\ahk_files\\";
pub const OPTIONS_PATH: &str = ".\\options.json";
/*
const AHK_FILES_FOLDER: &str = "./src/ahk_files/";
pub const OPTIONS_PATH: &str = "./options.json";
*/
pub fn create_keyboard_hooks(channel_tx: crossbeam_channel::Sender<String>, close_flag: workctl::sync_flag::SyncFlagRx) {

View file

@ -81,6 +81,7 @@ impl Socket {
pub fn send(&self, message: String) {
let mut streams = self.socket_txs.lock().unwrap();
if streams.len() == 0 {return}
for i in 0..streams.len(){
let mut tx = streams.get(i).unwrap().as_ref();