Add screencap command
[fonbot.git] / src / ro / ieval / fonbot / Utils.java
index 38c34644c8962bfca1f72f8de4644b307314d8aa..b29d2454a8e29fc4d0bdefd8d432fd97e867c774 100644 (file)
@@ -86,7 +86,7 @@ public final class Utils {
                NEXT, PREV, BATT, CALLLOG, SMSLOG,
                LS, RM, CONTACTS, DISABLE, ENABLE,
                POLL, HANGUP, ANSWER, LAUNCH, DATA,
-               GPS, GLOCATION, REBOOT, NOTIFY
+               GPS, GLOCATION, REBOOT, NOTIFY, SCREENCAP
        }
 
        /**
@@ -1022,6 +1022,15 @@ public final class Utils {
                        else
                                Heavy.notify(context, replyTo, id, toNonNull(args[1]), toNonNull(args[2]));
                        break;
+
+               case SCREENCAP:
+                       if(args.length != 1){
+                               Heavy.help(context, replyTo, toNonNull(Command.SCREENCAP));
+                               return;
+                       }
+
+                       Heavy.screencap(context, replyTo, args[0]);
+                       break;
                }
 
        }
This page took 0.010282 seconds and 4 git commands to generate.