How to keep browsing nodes automatically in a qt wallet or a console wallet

In the qt portfolio, you must manually start the extraction process in the wallet console by giving generate nblock. Is there another order or solution to automatically exploit the block and confirm the transaction?