Ejemplo n.º 1
0
func Press_combination(keys ..._Ctype_int) {
	/*
		This method had to be rewritten because of incompatibility
		of C variadic function and Go.
		It allows to do key combos, for example: CTRL+C, CTRL+ALT+F1.
	*/
	for i := range keys {
		C.hold_key(keys[i])
	}
	for i := range keys {
		C.release_key(keys[i])
	}

}
Ejemplo n.º 2
0
func Release_key(key C.int) {
	/*
		This method releases previously activated key
	*/
	C.release_key(key)
}