app('System Events').keystroke('k')
とかやるとキーボードのkを叩けるが、カーソルキーはちょっと特殊で
keystroke(28.chr) # 左
keystroke(29.chr) # 右
keystroke(30.chr) # 上
keystroke(31.chr) # 下
とやってやればいい。
app('System Events').keystroke('k')
keystroke(28.chr) # 左
keystroke(29.chr) # 右
keystroke(30.chr) # 上
keystroke(31.chr) # 下
inherits from NSString : NSObject
NSMutableString* boku = [NSMutableString stringWithString:@"Doraemon"];
boku = NSMtableString.stringWithString "Doraemon"
- (void)appendString:(NSString*)string
[boku appendString:@"desu"];
boku.appendString "desu"
- (id)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)windowStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)deferCreation
- (返り値型)メソッド名:(引数型)引数名 ラベル:(引数型)引数名: ラベル(引数型)引数名: ラベル(引数型)引数名
NSWindow *window = [[NSWindow alloc] initWithContentRect:frame
styleMask:NSBorderlessWindowMask
backing:NSBackingStoreBuffered
defer:false];
window = NSWindow.alloc.initWithContentRect frame,
styleMask:NSBorderlessWindowMask,
backing:NSBackingStoreBuffered,
defer:false
+ (id)stringWithString:(NSString *)aString
+ (返り値型)メソッド名:(引数型)引数
NSString* obake;
obake = [NSString stringWithString:@"Qtaro"];
obake = [NSString stringWithString:@"Qtaro"];
返り値 = [クラス名 メソッド名:引数];
NSString* obake = [NSString stringWithString:@"Qtaro"];
obake = NSString.stringWithString "Qtaro"