Ready to Start Your Career?

By: Rattar
October 12, 2016
Creating a Desktop App Blocker Simple Guide in Juliar

By: Rattar
October 12, 2016

- *getprocess* --gets process using name and outputs it's ID/IDs
- *killprocess * --kills process by ID/IDs
- *loop=Infinity * -- loops something infinitely
- *wait * -- waits in seconds (default 3 seconds)
*killprocess *getprocess firefox **This will kill all firefox processes, so you should see firefox shutdown.No problem. Simply open firefox again! That's where *loop=Infinity * comes in. This will continually try to kill process.So if we have all that, why do we need *wait * ? Well, Juliar will try to execute the infinite loop as fast as possible. This will make the processor work very hard and we don't want that. That's where *wait * comes in. Wait safely "pauses" the program for some time period without tying up a processor. So in an infinite loop is strongly recommended to execute wait. We will wait for 1 second. Although, *wait * allows up to 0.001 seconds, we will use 1 seconds for simplicity. So our final program now looks like:
*loop=Infinity *killprocess *getprocess firefox** *wait 1* *That's it! That's your whole program in Juliar...Let's run it! Test it by trying to open up Firefox...Aaah. We cannot! It just automatically shuts down :)We just fox blocked ourselves!You may get an ERROR such as ERROR cannot kill the process ID. That means, Juliar gets all IDs of firefox for example via *getprocess firefox * and then tries to kill all the processes. However, some processes are dependent on another, so if one gets killed another one can get killed. When Juliar, displays such an error, usually it means that Juliar has already killed a process that caused another process to be killed. You can safely ignore such errors :)Get your magnifying glasses on Ninjas and Enjoy! Try inserting other programs and play around.I've noticed that *Juliar * is becoming more popular. The Facebook is growing and I am getting Twitter mentions. However, I do not receive much feedback other than that. If you have any suggestions or comments please let me know at https://www.juliar.org/forums