| 216 | |
| 217 | namespace { |
| 218 | void ProcessSnippet(const string& s) { |
| 219 | if (s.empty()) return; |
| 220 | auto parts = ParseSnippet(s); |
| 221 | InputSender is; |
| 222 | for (const auto& it : parts) { |
| 223 | |
| 224 | // VK_CODE |
| 225 | if (it.inBrackets) { |
| 226 | for (const auto& hk_string : StrUtils::Split(it.text, ',')) { |
| 227 | auto hk = CHotKey::FromString(hk_string); |
| 228 | is.AddPressVk(hk); |
| 229 | } |
| 230 | continue; |
| 231 | } |
| 232 | |
| 233 | // UNICODE |
| 234 | auto str = StrUtils::Convert(it.text); |
| 235 | for (auto c : str) { |
| 236 | is.AddUnicodePress(c); |
| 237 | } |
| 238 | |
| 239 | } |
| 240 | is.Send(); |
| 241 | } |
| 242 | } |
| 243 | |
| 244 | TStatus WorkerImplement::RunProcess(HotKeyType hk, bool after_wait) { |
no test coverage detected