mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-05-31 06:13:55 +00:00
Merge pull request #495 from go-vgo/bitmap-pr
Optimize keyboard code and Update examples
This commit is contained in:
commit
e533734f0b
@ -202,7 +202,7 @@ func main() {
|
||||
robotgo.TypeStr("だんしゃり", 0, 1)
|
||||
// robotgo.TypeStr("テストする")
|
||||
|
||||
robotgo.TypeStr("Hi, Seattle space needle, Gold gate bridge, One world trade center.")
|
||||
robotgo.TypeStr("Hi, Seattle space needle, Golden gate bridge, One world trade center.")
|
||||
robotgo.TypeStr("Hi galaxy, hi stars, hi MT.Rainier, hi sea. こんにちは世界.")
|
||||
robotgo.Sleep(1)
|
||||
|
||||
|
@ -27,7 +27,7 @@ func typeStr() {
|
||||
robotgo.TypeStr("So, hi, bye! 你好, 再见!")
|
||||
robotgo.Sleep(1)
|
||||
|
||||
robotgo.TypeStr("Hi, Seattle space needle, Gold gate bridge, One world trade center.")
|
||||
robotgo.TypeStr("Hi, Seattle space needle, Golden gate bridge, One world trade center.")
|
||||
robotgo.MilliSleep(100)
|
||||
|
||||
ustr := uint32(robotgo.CharCodeAt("So, hi, bye!", 0))
|
||||
|
2
key.go
2
key.go
@ -12,7 +12,7 @@ package robotgo
|
||||
|
||||
/*
|
||||
// #include "key/keycode.h"
|
||||
#include "key/goKey.h"
|
||||
#include "key/keypress_c.h"
|
||||
*/
|
||||
import "C"
|
||||
|
||||
|
@ -1,6 +0,0 @@
|
||||
// Copyright 2016 The go-vgo Project Developers.
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "../base/types.h"
|
||||
#include "keypress_c.h"
|
||||
#include "keycode_c.h"
|
@ -2,7 +2,10 @@
|
||||
#ifndef KEYPRESS_H
|
||||
#define KEYPRESS_H
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "../base/os.h"
|
||||
#include "../base/types.h"
|
||||
|
||||
#include "keycode.h"
|
||||
#include <stdbool.h>
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
#include "keypress.h"
|
||||
#include "../base/deadbeef_rand_c.h"
|
||||
#include "../base/microsleep.h"
|
||||
#include "keycode_c.h"
|
||||
|
||||
#include <ctype.h> /* For isupper() */
|
||||
#if defined(IS_MACOSX)
|
||||
|
Loading…
Reference in New Issue
Block a user