CN107491292A - The automatic method for robbing red packet - Google Patents

The automatic method for robbing red packet Download PDF

Info

Publication number
CN107491292A
CN107491292A CN201610700163.XA CN201610700163A CN107491292A CN 107491292 A CN107491292 A CN 107491292A CN 201610700163 A CN201610700163 A CN 201610700163A CN 107491292 A CN107491292 A CN 107491292A
Authority
CN
China
Prior art keywords
red packet
interface
robbing
open
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610700163.XA
Other languages
Chinese (zh)
Inventor
戴金春
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Ding Zhi Link Communications Inc
Original Assignee
Shenzhen Ding Zhi Link Communications Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Ding Zhi Link Communications Inc filed Critical Shenzhen Ding Zhi Link Communications Inc
Priority to CN201610700163.XA priority Critical patent/CN107491292A/en
Publication of CN107491292A publication Critical patent/CN107491292A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4494Execution paradigms, e.g. implementations of programming paradigms data driven

Abstract

The present invention discloses a kind of automatic method for robbing red packet, in the main monitoring AccessibilityEvent.TYPE_VIEW_SCROLLED events of chat interface, obtained when first entering into chat interface and protect stored sum, the sum of current information is obtained when receiving AccessibilityEvent.TYPE_VIEW_SCROLLED events, according to the sum of information before and the total several information that must arrive of the information currently obtained, whether the information for judging to newly increase again is red packet, if red packet then simulates click event and opens red packet.User constantly check without often entering application accordingly, without performing any manual operation, process very simple, for electronic equipment, without the operation of more secondary response users, alleviate the burden of electronic equipment.

Description

The automatic method for robbing red packet
Technical field
The present invention relates to the technical field of mechanics of communication, more particularly to a kind of automatic method for robbing red packet.
Background technology
The experience for robbing red packet is said, everyone had blood to spell experience.In addition except by moral standing, it is most important still The performance and network speed problem of oneself mobile phone, after red packet has been sent out, that can really be the thing of second second, and distributing can be by the red packet second It is complete.
There are several mobile phone brands to have red packet assistant's function at present, but can only judge after thering is red packet to send, notifying automatically Column eject notification can just be robbed, it is necessary to put and touch, and this red packet that is more like is reminded, and nonsystematic robs red packet automatically.
It is " CN201510634644.0 " in Chinese invention patent application number, patent name is a kind of " information processing method And electronic equipment " patent document in, disclose and a kind of be used to solve in the electronic device to enter to rob electronic equipment during red packet Bear larger processing method.This method includes:Obtain the default application of first be directed in electronic equipment first monitors event; Wherein, the electronic equipment is in screen lock state;If it is determined that the first monitoring event is predeterminable event, the electronics is controlled to set It is standby that the first display information corresponding with the first monitoring event is shown in locking screen interface corresponding to the screen lock state;Receive For the input operation of first display information, and according to the input operation, the electronic equipment is controlled to pass through from the background Calling interface calls the described first default application, and it is corresponding with the first monitoring event to indicate that the described first default application performs The first preset instructions, first preset instructions be used for obtain resource corresponding to the first monitoring event.In predeterminable event For in application when robbing red packet event, however, it is determined that first to monitor event identical with predeterminable event, then can be shown in locking screen interface Rob display information corresponding to red packet event, and then determined receiving user into during the input operation for red packet of robbing, can be on backstage By calling interface call corresponding first it is default rob red packet using execution and instruct, acquisition red packet resource, and in this process without Need user electronic equipment is carried out manual unlocking can be achieved in the application rob red packet, the success rate of red packet is robbed in raising.
Reception user is still needed to determine just rob red packet, institute after into the input operation for red packet of robbing in the invention file Also not up to rob the effect of red packet automatically with its process.
The content of the invention
For weak point present in above-mentioned technology, the present invention provides a kind of simple to operate, automatic robbing of being easily achieved The method of red packet.
In order to achieve the above object, a kind of automatic method for robbing red packet of the present invention, it is characterised in that this method utilizes auxiliary Service AccessibilityServer robs red packet process to realize that simulation clicking operation is realized;This method is in chat interface Concrete operation step is as follows:
Red packet assistant switch is opened, red packet assistant service is opened, begins listening for AccessibilityEvent.
TYPE_VIEW_SCROLLED events;
Obtained when first entering into chat interface and protect stored sum, chat interface is first entered into non-, when receiving The sum of current information, and and record before are obtained during AccessibilityEvent.TYPE_VIEW_SCROLLED events It is compared;
Whether the information sum before relatively currently showing the information sum obtained relatively has increase;
If not increasing, terminate process;If there is increase, judgement newly increases whether information is red packet;
If the information newly increased is not red packet, terminate process, if the presentation of information newly increased is red packet, simulate click event Open red packet;
At the interface for tearing red packet open, if taking the unsuccessful operation that can be torn open red packet for the second time automatically apart for the first time, until opening red Bag or red packet have been robbed, and terminate process.
Wherein, in this method, also include whether to open the process for robbing red packet sound prompting, the process after red packet success is robbed Comprise the following steps that:
After simulation click event opens red packet, judge whether to rob red packet success;
If it is unsuccessful to rob red packet, terminate process;If robbing red packet success, the details interface after robbing red packet success is opened, and judge Whether details interface is successfully loaded;
If not loading details interface, terminate process;If successfully loading details interface, continue to choose whether that opening sound carries Wake up;
If being not turned on, terminate process;If sound prompting is opened in selection, system sends the prompt tone for getting red packet, terminate into Journey.
Wherein, in this method, the mistake for setting red packet to be delayed also is included after the presentation of information for judging to newly increase is red packet Journey, the process comprise the following steps that:
After judging that the presentation of information newly increased is red packet for the first time, choose whether to set extension to rob the red packet time;
If not extending, simulation click event opens red packet immediately, and then completes to rob red packet process;If selection sets delay, There are multiple extension time options:Nothing, delay 1s, delay 5s, delay 10s, delay 30s and the 60s that is delayed;
One extension time option of selection, is delayed at the interface for tearing red packet open according to the delay time of selection and tears red packet open, and then complete Rob red packet process;
The interface for tearing red packet open each afterwards all can open red packet after the extension time of selection.
Wherein, in this method, also include setting the process that automatically replies after red packet is successfully got, the process it is specific Step is as follows:
After successfully red packet is got, choose whether to be automatically replied;
If not selecting to automatically reply, terminate process;If selection automatically replies, return chat interface selection automatically replies interior Hold;
The automatic reply content of selection is sent in chat box, completion automatically replies process.
Wherein, in this method, red packet recording process, the tool of the process are also included after simulation click event opens red packet Body step is as follows:
Red packet is opened by simulating click event;
Obtain the current time for clicking on red packet;
Red packet interface is torn in loading open, if loading is unsuccessful, terminates process;If loading successfully, red packet is taken apart;
If taking red packet apart does not get red packet, terminate process;If taking red packet apart robs red packet success, continue to load red packet details circle Face;
If the loading failure of details interface, terminates process;If details interface loads successfully, further obtain and enter red packet details The time at interface;
Continue to obtain the data on red packet details interface, and preserve this bar red packet record, terminate process;
By repeatedly robbing the record of red packet information, comprehensive improvement robbed automatically the accumulating sum of red packet, the number robbed automatically, into Number that work(is got, rob the average used time of red packet and rob red packet each time and successfully record.
Invention additionally discloses a kind of automatic method for robbing red packet, this method utilizes assistant service AccessibilityServer robs red packet process to realize that simulation clicking operation is realized;Tool of this method in non-chat interface Body operating procedure is as follows:
Red packet assistant switch is opened, red packet assistant service is opened, begins listening for AccessibilityEvent.
TYPE_NOTIFICATION_STATE_CHANGED events;
The event can be received when carrying out information, the information by obtaining informing judges whether to include keyword " red packet ";
If not including the keyword, terminate process;If comprising the keyword, judge interface whether screen locking and whether bright Screen;
If interface screen locking and no bright screen, simultaneously bright screen is unlocked;If interface screen locking but bright screen, are unlocked;If interface There is no screen locking but there is no bright screen yet, then carry out bright screen;, need not unblock or bright screen if interface does not have screen locking and bright screen;
Simulation click event opens red packet in next step;
At the interface for tearing red packet open, if taking the unsuccessful operation that can be torn open red packet for the second time automatically apart for the first time, until opening red Bag or red packet have been robbed;
Unblock in the process is not that really lock is taken off, but a lock is hidden, and either the lock under safe mode is still Lock under non-security mode can all be hidden;If table can't be entered by pressing home keys or return key during red packet is robbed Face, but show unlock interface.
Wherein, in this method, also include whether to open the process for robbing red packet sound prompting, the process after red packet success is robbed Comprise the following steps that:
After simulation click event opens red packet, judge whether to rob red packet success;
If it is unsuccessful to rob red packet, terminate process;If robbing red packet success, the details interface after robbing red packet success is opened, and judge Whether details interface is successfully loaded;
If not loading details interface, terminate process;If successfully loading details interface, continue to choose whether that opening sound carries Wake up;
If being not turned on, terminate process;If sound prompting is opened in selection, system sends the prompt tone for getting red packet, terminate into Journey.
Wherein, in this method, the presentation of information for judging to newly increase is the process that red packet also includes setting red packet to be delayed afterwards, The process comprises the following steps that:
After judging that the presentation of information newly increased is red packet for the first time, choose whether to set extension to rob the red packet time;
If not extending, simulation click event opens red packet immediately, and then completes to rob red packet process;If selection sets delay, There are multiple extension time options:Nothing, delay 1s, delay 5s, delay 10s, delay 30s and the 60s that is delayed;
One extension time option of selection, is delayed at the interface for tearing red packet open according to the delay time of selection and tears red packet open, and then complete Rob red packet process;
The interface for tearing red packet open each afterwards all can open red packet after the extension time of selection.
Wherein, in this method, also include setting the process that automatically replies after red packet is successfully got, the process it is specific Step is as follows:
After successfully red packet is got, choose whether to be automatically replied;
If not selecting to automatically reply, terminate process;If selection automatically replies, return chat interface selection automatically replies interior Hold;
The automatic reply content of selection is sent in chat box, completion automatically replies process.
Wherein, in this method, red packet recording process, the tool of the process are also included after simulation click event opens red packet Body step is as follows:
Red packet is opened by simulating click event;
Obtain the current time for clicking on red packet;
Red packet interface is torn in loading open, if loading is unsuccessful, terminates process;If loading successfully, red packet is taken apart;
If taking red packet apart does not get red packet, terminate process;If taking red packet apart robs red packet success, continue to load red packet details circle Face;
If the loading failure of details interface, terminates process;If details interface loads successfully, further obtain and enter red packet details The time at interface;
Continue to obtain the data on red packet details interface, and preserve this bar red packet record, terminate process;
By repeatedly robbing the record of red packet information, comprehensive improvement robbed automatically the accumulating sum of red packet, the number robbed automatically, into Number that work(is got, rob the average used time of red packet and rob red packet each time and successfully record.
The beneficial effects of the invention are as follows:
Compared with prior art, the automatic method for robbing red packet of the invention, in the main monitoring of chat interface AccessibilityEvent.TYPE_VIEW_SCROLLED events, obtained when first entering into chat interface and preserve information Sum, when receiving AccessibilityEvent.TYPE_VIEW_SCROLLED events obtain current information sum, According to the sum of information before and the total several information that must arrive of the information currently obtained, then judge the information newly increased Whether it is red packet, if red packet then simulates click event and opens red packet.
Carry out red packet mainly by monitoring AccessibilityEvent. at non-chat interface
TYPE_NOTIFICATION_STATE_CHANGED events, the event can be received when carrying out information, be notified by obtaining The information on column judges whether to include keyword " [wechat red packet] ", if comprising turning on the announcement information.Due to be not Chat interface, it is possible that be in the standby state or under other chat interfaces when, it is necessary to judge whether screen locking Whether bright screen, be likely to require in this case and be unlocked and simulate click event after bright screen again and enter red packet of robbing.
Red packet function is robbed mainly to rob to realize that simulation clicking operation is realized using assistant service AccessibilityServer Red packet function.The change of the event of related application is monitored in assistant service by the bag name of the application of correlation, according to what is received Different event carries out different processing.User constantly checks without often entering application accordingly, without performing any artificial behaviour Make, process very simple, for electronic equipment, without the operation of more secondary response users, alleviate the negative of electronic equipment Load.
Brief description of the drawings
Fig. 1 is the schematic flow sheet that the present invention robs the method for red packet in chat interface automatically;
Fig. 2 robs the schematic flow sheet of the method for red packet automatically for the present invention at non-chat interface;
Fig. 3 is the schematic flow sheet of sound prompting operating process of the present invention;
Fig. 4 is the schematic flow sheet of red packet delay operation process of the present invention;
Fig. 5 is the schematic flow sheet that the present invention automatically replies setting up procedure;
Fig. 6 is the schematic flow sheet of present invention record red packet operating process.
Embodiment
In order to more clearly state the present invention, the present invention is further described below in conjunction with the accompanying drawings.
A kind of automatic method for robbing red packet of the present invention, simulation is realized using assistant service AccessibilityServer Clicking operation, which is realized, robs red packet process;
First embodiment
Referring to Fig. 1, the concrete operation step for robbing red packet automatically in chat interface is as follows:
Red packet assistant switch is opened, red packet assistant service is opened, begins listening for AccessibilityEvent.
TYPE_VIEW_SCROLLED events;
Obtained when first entering into chat interface and protect stored sum, chat interface is first entered into non-, when receiving The sum of current information, and and record before are obtained during AccessibilityEvent.TYPE_VIEW_SCROLLED events It is compared;
Whether the information sum before relatively currently showing the information sum obtained relatively has increase;
If not increasing, terminate process;If there is increase, judgement newly increases whether information is red packet;
If the information newly increased is not red packet, terminate process, if the presentation of information newly increased is red packet, simulate click event Open red packet;
At the interface for tearing red packet open, if taking the unsuccessful operation that can be torn open red packet for the second time automatically apart for the first time, until opening red Bag or red packet have been robbed, and terminate process.
Second embodiment
Fig. 2 is further regarded to, the concrete operation step for robbing red packet automatically at non-chat interface is as follows:
Red packet assistant switch is opened, red packet assistant service is opened, begins listening for AccessibilityEvent.
TYPE_NOTIFICATION_STATE_CHANGED events;
The event can be received when carrying out information, the information by obtaining informing judges whether to include keyword " red packet ";
If not including the keyword, terminate process;If comprising the keyword, judge interface whether screen locking and whether bright Screen;
If interface screen locking and no bright screen, simultaneously bright screen is unlocked;If interface screen locking but bright screen, are unlocked;If interface There is no screen locking but there is no bright screen yet, then carry out bright screen;, need not unblock or bright screen if interface does not have screen locking and bright screen;
Simulation click event opens red packet in next step;
At the interface for tearing red packet open, if taking the unsuccessful operation that can be torn open red packet for the second time automatically apart for the first time, until opening red Bag or red packet have been robbed;
Unblock in the process is not that really lock is taken off, but a lock is hidden, and either the lock under safe mode is still Lock under non-security mode can all be hidden;If table can't be entered by pressing home keys or return key during red packet is robbed Face, but show unlock interface.
It is of the invention automatic to rob red packet function and mainly utilize assistant service compared to prior art AccessibilityServer robs red packet function to realize that simulation clicking operation is realized.The application that assistant service passes through correlation Bag name monitors the change of the event of related application, and different processing is carried out according to the different event received.User without through Often enter application accordingly constantly to check, without performing any manual operation, process very simple, for electronic equipment, Without the operation of more secondary response users, the burden of electronic equipment is alleviated.
Rob the principle of red packet:By monitoring AccessibilityService(Assistant service)Send AccessibilityEvent is realized.
AccessibilityEvent is AccessibilityService response events,
What AccessibilityService is, official website is so explained,
Accessibility services are intended to assist users with disabilities in using Android devices and apps. They run in the background and receive callbacks by the system whenAccessibilityEvents are fired.
That is this is a miscellaneous function, it is therefore an objective to aids in people to go to use Android device and application. Accessibilityservice can strengthen the interaction of user interface, convenient as body, eyesight, cause user the problems such as the age Can not well and user interface exchange situation.The assistant service is operated in backstage, is called by system, the one of the interface of user A little states(For example Button, CheckBox have been clicked)Change can be by adjusting back Accessibilityservice Method obtains.
Comprise the following steps in the first embodiment and the second embodiment.
Fig. 3 is further regarded to, also includes whether to open the process for robbing red packet sound prompting, the process after red packet success is robbed Comprise the following steps that:After simulation click event opens red packet, judge whether to rob red packet success;If it is unsuccessful to rob red packet, End process;If robbing red packet success, the details interface after robbing red packet success is opened, and judge whether successfully to load details interface; If not loading details interface, terminate process;If successfully loading details interface, continue to choose whether to open sound prompting;If It is not turned on, then terminates process;If sound prompting is opened in selection, system sends the prompt tone for getting red packet, terminates process.
Red packet sound prompting is robbed, is judging whether to have opened after successfully getting red packet and successfully loading red packet details interface Red packet prompting function is opened, the sound prompting if opening, if details interface does not have loading to come out after not opening or robbing red packet success Do not remind then.
Fig. 4 is further regarded to, the mistake for setting red packet to be delayed also is included after the presentation of information for judging to newly increase is red packet Journey, the process comprise the following steps that:After judging that the presentation of information newly increased is red packet for the first time, choose whether that setting is prolonged Length robs the red packet time;If not extending, simulation click event opens red packet immediately, and then completes to rob red packet process;If selection is set Delay is put, then multiple extension time options occurs:Nothing, delay 1s, delay 5s, delay 10s, delay 30s and the 60s that is delayed;This The delay time section of invention is set not to be limited by the above-mentioned specific period, can also be arranged to delay time option:Without, 0.5s, 1s, random 2-8s;One extension time option of selection, is delayed at the interface for tearing red packet open according to the delay time of selection and tears open Red packet, and then complete to rob red packet process;The interface for tearing red packet open each afterwards can all open red after the extension time of selection Bag.So system robs red packet according to the delay time of setting, and software can optimize the anti-title of wechat, offline algorithm, the function Effectively prevent title or red packet phenomenon can not be robbed in the short time.
Further regard to Fig. 5, also include setting the process that automatically replies after red packet is successfully got, the process it is specific Step is as follows:After successfully red packet is got, choose whether to be automatically replied;If not selecting to automatically reply, terminate process; If selection automatically replies, the content that chat interface selection automatically replies is returned;The automatic reply content of selection is sent to merely Its inframe, completion automatically reply process." automatically replying " settable to be got after red packet in wechat group return information, prevents from being kicked. The information content is "None"(Do not reply), " it is too exciting, it thanks boss!", " thanks!" three options, do not support to edit, acquiescence choosing Select "None".Get red packet automatic information reply after 3 seconds.
Fig. 6 is further regarded to, also includes red packet recording process, the tool of the process after simulation click event opens red packet Body step is as follows:Red packet is opened by simulating click event;Obtain the current time for clicking on red packet;Red packet interface is torn in loading open, if Load unsuccessful, then terminate process;If loading successfully, red packet is taken apart;If taking red packet apart does not get red packet, terminate process; If taking red packet apart robs red packet success, continue to load red packet details interface;If the loading failure of details interface, terminates process;If Details interface loads successfully, then further obtains the time into red packet details interface;Continue to obtain on red packet details interface Data, and this bar red packet record is preserved, terminate process;By repeatedly robbing the record of red packet information, comprehensive improvement is robbed automatically The accumulating sum of red packet, the number robbed automatically, the number successfully got, the average used time for robbing red packet and rob each time red packet into The record of work(.
The coded program that red packet database of record // rob red packet record list data structure is robbed in preservation is as follows:
CREATE TABLE record (" +
"_id INTEGER PRIMARY KEY AUTOINCREMENT," +
"name TEXT," +
"money DECIMAL(5,2)," +
"usedtime Long," +
"time TEXT" +
");")。
Table one robs red packet record sheet data definition
Title Type Whether it is major key Description
id interger It is LSN
name text It is no The wechat name for whose red packet got
money decimal It is no How much is got
usedtime long It is no Rob the red packet used time(ms)
time text It is no Rob the time of red packet
It is that above coded program is explained with a kind of title of upper table.
The various paths listed here for testing the function, the various formatted datas of test, the various states of program operation Deng, as shown in following table two, below test be respectively provided with operability.
Two specific test mode of table

Claims (10)

  1. A kind of 1. automatic method for robbing red packet, it is characterised in that this method using assistant service AccessibilityServer come Realize that simulation clicking operation is realized and rob red packet process;The concrete operation step of this method is as follows in chat interface:
    Red packet assistant switch is opened, red packet assistant service is opened, begins listening for AccessibilityEvent.
    TYPE_VIEW_SCROLLED events;
    Obtained when first entering into chat interface and protect stored sum, chat interface is first entered into non-, when receiving The sum of current information, and and record before are obtained during AccessibilityEvent.TYPE_VIEW_SCROLLED events It is compared;
    Whether the information sum before relatively currently showing the information sum obtained relatively has increase;
    If not increasing, terminate process;If there is increase, judgement newly increases whether information is red packet;
    If the information newly increased is not red packet, terminate process, if the presentation of information newly increased is red packet, simulate click event Open red packet;
    At the interface for tearing red packet open, if taking the unsuccessful operation that can be torn open red packet for the second time automatically apart for the first time, until opening red Bag or red packet have been robbed, and terminate process.
  2. 2. the automatic method for robbing red packet according to claim 1, it is characterised in that in this method, after red packet success is robbed Also include whether to open the process for robbing red packet sound prompting, the process comprises the following steps that:
    After simulation click event opens red packet, judge whether to rob red packet success;
    If it is unsuccessful to rob red packet, terminate process;If robbing red packet success, the details interface after robbing red packet success is opened, and judge Whether details interface is successfully loaded;
    If not loading details interface, terminate process;If successfully loading details interface, continue to choose whether that opening sound carries Wake up;
    If being not turned on, terminate process;If sound prompting is opened in selection, system sends the prompt tone for getting red packet, terminate into Journey.
  3. 3. the automatic method for robbing red packet according to claim 2, it is characterised in that in this method, judging what is newly increased Presentation of information is the process that red packet also includes setting red packet to be delayed afterwards, and the process comprises the following steps that:
    After judging that the presentation of information newly increased is red packet for the first time, choose whether to set extension to rob the red packet time;
    If not extending, simulation click event opens red packet immediately, and then completes to rob red packet process;If selection sets delay, There are multiple extension time options:Nothing, delay 1s, delay 5s, delay 10s, delay 30s and the 60s that is delayed;
    One extension time option of selection, is delayed at the interface for tearing red packet open according to the delay time of selection and tears red packet open, and then complete Rob red packet process;
    The interface for tearing red packet open each afterwards all can open red packet after the extension time of selection.
  4. 4. the automatic method for robbing red packet according to claim 3, it is characterised in that in this method, successfully getting red packet Also include setting the process automatically replied afterwards, the process comprises the following steps that:
    After successfully red packet is got, choose whether to be automatically replied;
    If not selecting to automatically reply, terminate process;If selection automatically replies, return chat interface selection automatically replies interior Hold;
    The automatic reply content of selection is sent in chat box, completion automatically replies process.
  5. 5. the automatic method for robbing red packet according to claim 1, it is characterised in that in this method, in simulation click event Open red packet also includes red packet recording process afterwards, and the process comprises the following steps that:
    Red packet is opened by simulating click event;
    Obtain the current time for clicking on red packet;
    Red packet interface is torn in loading open, if loading is unsuccessful, terminates process;If loading successfully, red packet is taken apart;
    If taking red packet apart does not get red packet, terminate process;If taking red packet apart robs red packet success, continue to load red packet details circle Face;
    If the loading failure of details interface, terminates process;If details interface loads successfully, further obtain and enter red packet details The time at interface;
    Continue to obtain the data on red packet details interface, and preserve this bar red packet record, terminate process;
    By repeatedly robbing the record of red packet information, comprehensive improvement robbed automatically the accumulating sum of red packet, the number robbed automatically, into Number that work(is got, rob the average used time of red packet and rob red packet each time and successfully record.
  6. A kind of 6. automatic method for robbing red packet, it is characterised in that this method using assistant service AccessibilityServer come Realize that simulation clicking operation is realized and rob red packet process;Concrete operation step of this method in non-chat interface is as follows:
    Red packet assistant switch is opened, red packet assistant service is opened, begins listening for AccessibilityEvent.
    TYPE_NOTIFICATION_STATE_CHANGED events;
    The event can be received when carrying out information, the information by obtaining informing judges whether to include keyword " red packet ";
    If not including the keyword, terminate process;If comprising the keyword, judge interface whether screen locking and whether bright Screen;
    If interface screen locking and no bright screen, simultaneously bright screen is unlocked;If interface screen locking but bright screen, are unlocked;If interface There is no screen locking but there is no bright screen yet, then carry out bright screen;, need not unblock or bright screen if interface does not have screen locking and bright screen;
    Simulation click event opens red packet in next step;
    At the interface for tearing red packet open, if taking the unsuccessful operation that can be torn open red packet for the second time apart for the first time, until open red packet or Red packet has been robbed;
    Wherein, unblock in the process is not that really lock is taken off, but a lock is hidden, either the lock under safe mode Or the lock under non-security mode can all be hidden;If pressing home keys or return key can't enter during red packet is robbed Desktop, but show unlock interface.
  7. 7. the automatic method for robbing red packet according to claim 6, it is characterised in that in this method, after red packet success is robbed Also include whether to open the process for robbing red packet sound prompting, the process comprises the following steps that:
    After simulation click event opens red packet, judge whether to rob red packet success;
    If it is unsuccessful to rob red packet, terminate process;If robbing red packet success, the details interface after robbing red packet success is opened, and judge Whether details interface is successfully loaded;
    If not loading details interface, terminate process;If successfully loading details interface, continue to choose whether that opening sound carries Wake up;
    If being not turned on, terminate process;If sound prompting is opened in selection, system sends the prompt tone for getting red packet, terminate into Journey.
  8. 8. the automatic method for robbing red packet according to claim 7, it is characterised in that in this method, judging what is newly increased Presentation of information is the process that red packet also includes setting red packet to be delayed afterwards, and the process comprises the following steps that:
    After judging that the presentation of information newly increased is red packet for the first time, choose whether to set extension to rob the red packet time;
    If not extending, simulation click event opens red packet immediately, and then completes to rob red packet process;If selection sets delay, There are multiple extension time options:Nothing, delay 1s, delay 5s, delay 10s, delay 30s and the 60s that is delayed;
    One extension time option of selection, is delayed at the interface for tearing red packet open according to the delay time of selection and tears red packet open, and then complete Rob red packet process;
    The interface for tearing red packet open each afterwards all can open red packet after the extension time of selection.
  9. 9. the automatic method for robbing red packet according to claim 8, it is characterised in that in this method, successfully getting red packet Also include setting the process automatically replied afterwards, the process comprises the following steps that:
    After successfully red packet is got, choose whether to be automatically replied;
    If not selecting to automatically reply, terminate process;If selection automatically replies, return chat interface selection automatically replies interior Hold;
    The automatic reply content of selection is sent in chat box, completion automatically replies process.
  10. 10. the automatic method for robbing red packet according to claim 9, it is characterised in that in this method, in simulation click event Open red packet also includes red packet recording process afterwards, and the process comprises the following steps that:
    Red packet is opened by simulating click event;
    Obtain the current time for clicking on red packet;
    Red packet interface is torn in loading open, if loading is unsuccessful, terminates process;If loading successfully, red packet is taken apart;
    If taking red packet apart does not get red packet, terminate process;If taking red packet apart robs red packet success, continue to load red packet details circle Face;
    If the loading failure of details interface, terminates process;If details interface loads successfully, further obtain and enter red packet details The time at interface;
    Continue to obtain the data on red packet details interface, and preserve this bar red packet record, terminate process;
    By repeatedly robbing the record of red packet information, comprehensive improvement robbed automatically the accumulating sum of red packet, the number robbed automatically, into Number that work(is got, rob the average used time of red packet and rob red packet each time and successfully record.
CN201610700163.XA 2016-08-22 2016-08-22 The automatic method for robbing red packet Pending CN107491292A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610700163.XA CN107491292A (en) 2016-08-22 2016-08-22 The automatic method for robbing red packet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610700163.XA CN107491292A (en) 2016-08-22 2016-08-22 The automatic method for robbing red packet

Publications (1)

Publication Number Publication Date
CN107491292A true CN107491292A (en) 2017-12-19

Family

ID=60642355

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610700163.XA Pending CN107491292A (en) 2016-08-22 2016-08-22 The automatic method for robbing red packet

Country Status (1)

Country Link
CN (1) CN107491292A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109104356A (en) * 2018-07-04 2018-12-28 奇酷互联网络科技(深圳)有限公司 Rob management method, system, readable storage medium storing program for executing and the intelligent terminal of red packet
CN110875873A (en) * 2018-09-03 2020-03-10 Oppo广东移动通信有限公司 Information monitoring method, information monitoring device and mobile terminal
CN112187624A (en) * 2020-09-29 2021-01-05 维沃移动通信有限公司 Message reply method and device and electronic equipment
CN115018482A (en) * 2022-08-10 2022-09-06 杭州星犀科技有限公司 Method and device for preventing cheating during red packet robbing, storage medium and terminal

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105739700A (en) * 2016-01-29 2016-07-06 珠海市魅族科技有限公司 Notice opening method and apparatus
CN105760048A (en) * 2016-01-29 2016-07-13 珠海市魅族科技有限公司 Method and device for processing notice

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105739700A (en) * 2016-01-29 2016-07-06 珠海市魅族科技有限公司 Notice opening method and apparatus
CN105760048A (en) * 2016-01-29 2016-07-13 珠海市魅族科技有限公司 Method and device for processing notice

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
安卓大叔: "《微信自动回复和自动抢红包实现原理(三):自动抢红包》", 《简书》 *
安卓大叔: "《微信自动回复和自动抢红包实现原理(二):自动回复》", 《简书》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109104356A (en) * 2018-07-04 2018-12-28 奇酷互联网络科技(深圳)有限公司 Rob management method, system, readable storage medium storing program for executing and the intelligent terminal of red packet
CN110875873A (en) * 2018-09-03 2020-03-10 Oppo广东移动通信有限公司 Information monitoring method, information monitoring device and mobile terminal
CN112187624A (en) * 2020-09-29 2021-01-05 维沃移动通信有限公司 Message reply method and device and electronic equipment
CN115018482A (en) * 2022-08-10 2022-09-06 杭州星犀科技有限公司 Method and device for preventing cheating during red packet robbing, storage medium and terminal

Similar Documents

Publication Publication Date Title
CN107491292A (en) The automatic method for robbing red packet
CN107134074A (en) Storing collaborative share method, storing equipment and computer-readable recording medium
CN107786757B (en) Bank card business parameter regulation means and device
CN103546877A (en) Method and system for obtaining and inputting content code and mobile terminal
CN107113362B (en) The safe practice of conference session is reconnected to for using computing device
CN107743086A (en) A kind of message treatment method and system, message is sent and reception device
CN109802881A (en) A kind of orientation prompting processing method and processing device of group chat message
CN103686354B (en) Smart television terminal and method for counting reporting key use behaviors
CN101778149A (en) Mobile terminal and method for mobile terminal to achieve voice broadcast function
CN105208675B (en) A kind of wireless connection method and smartwatch based on smartwatch
CN101026829A (en) Single-window multi-page multi-person chat system for mobile communication system
CN105335146B (en) The method and portable electronic device of management software data traffic
CN107733891A (en) A kind of user registering method, server and computer-readable recording medium
CN106155721A (en) The deployment method of application program, the generation method and device of the recommendation page
CN107465841A (en) A kind of fault information reporting method and terminal
CN108519841A (en) Using startup method, terminal and computer readable storage medium
CN107302493A (en) A kind of message treatment method, message processing apparatus and intelligent terminal
CN102694896A (en) Method, terminal and system for storing communication number
CN105204605B (en) A kind of information processing method, the first electronic equipment and the second electronic equipment
CN108156311A (en) The method and device of prompting message
CN106385321A (en) Conference invitation method and device
CN104598245B (en) The method, device and mobile terminal of chat
CN101389095B (en) Method and system for speech monitoring by communication terminal
CN106355084B (en) Android group right management method and system based on callback mechanism
CN106484208A (en) A kind of fresh information based reminding method based on webpage wechat platform and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171219