Squashed commit of the following:

commit d56e9628b870f18bf4d06f2b42f2fb325cfbfa93
Author: michael starke <michael.starke@hicknhack-software.com>
Date:   Mon Aug 25 20:01:02 2014 +0200

    Implemented settings for forced and recommendet key change intervals.

commit 64336eb662cf66173ef96657cec96b69a706f723
Author: michael starke <michael.starke@hicknhack-software.com>
Date:   Mon Aug 25 18:18:59 2014 +0200

    Added sanity checks for delay

commit 37087da84c2c2d12197196f0d15a517419dbad93
Author: michael starke <michael.starke@hicknhack-software.com>
Date:   Mon Aug 25 14:20:59 2014 +0200

    Added key change ui to database settings
This commit is contained in:
michael starke
2014-08-25 20:02:32 +02:00
parent 74b2132877
commit ef3b1bebb2
7 changed files with 218 additions and 64 deletions

View File

@@ -276,15 +276,19 @@
NSInteger value;
if([numberScanner scanInteger:&value]) {
if([kKPKAutotypeDelay isEqualToString:command]) {
if(MAX(0, value) <= 0) {
return; // Value too low, just skipp
}
[commands addObject:[[MPAutotypeDelay alloc] initWithDelay:value]];
return; // Done
}
else if([kKPKAutotypeVirtualKey isEqualToString:command]) {
NSLog(@"Virutal key strokes aren't supported yet!");
// TODO add key
}
}
else {
NSLog(@"Unable to determine delay!");
NSLog(@"Unable to value part in command:%@", commandString);
}
}
else {