Enzo_Funny_Gamer Posted May 7, 2021 Share Posted May 7, 2021 Is It Possible To Detect When Or If We Interupted The Script I Would Like To add That Option To My Script That When Its Interupted I can Remove all Vlues That Have Been In The Freeze Folder And Remove Them when Interupted Becouse They Can Find the Freezed Values Does This Help? processKill() bool processKill() Force kill the selected process. If you call this call too often, your script may be interrupted. Attention This can lead to data loss in this process. Returns true on success or false otherwise. https://gameguardian.net/help/classgg.html#aa26601754a21b4e26d5c22f1930a424d Link to comment Share on other sites More sharing options...
Joker0 Posted May 9, 2021 Share Posted May 9, 2021 Do you need to know where exactly does the script interrupted ? If so, you can add an alert or toast to every function you have a doubt that it is causing the problem so you can detect it specifically. Link to comment Share on other sites More sharing options...
Enzo_Funny_Gamer Posted May 10, 2021 Author Share Posted May 10, 2021 I Meant That When Sombody intrupts The Script That I Can Add A Function To Clear All Results and Lists becouse If they intrupt The Script They can See the values but the first reply was helpfull Link to comment Share on other sites More sharing options...
TopGEOYT Posted May 10, 2021 Share Posted May 10, 2021 On 5/7/2021 at 4:51 PM, Enzo_Funny_Gamer said: Is It Possible To Detect When Or If We Interupted The Script I Would Like To add That Option To My Script That When Its Interupted I can Remove all Vlues That Have Been In The Freeze Folder And Remove Them when Interupted Becouse They Can Find the Freezed Values Does This Help? processKill() bool processKill() Force kill the selected process. If you call this call too often, your script may be interrupted. Attention This can lead to data loss in this process. Returns true on success or false otherwise. https://gameguardian.net/help/classgg.html#aa26601754a21b4e26d5c22f1930a424d By This Code (code will be bellow) Script will detect if script process was not ended by Exit button. If script was interrupted or process was killed or in general if script was not ended by exit, it will alert you : local Cashe, A= "/storage/emulated/0/...cfg", "" if io.open(Cashe) then gg.alert("Previous Script Process Was Interrupted !","") else io.output(Cashe) end function Start () -- add your codes here and you should also add exit button in script for detect process killing. local M = gg.choice({"hack1","hack2","exit"}) if M == 3 then os.remove(Cashe) A = nil end end gg.setVisible(true) while A == "" do if gg.isVisible(true) then gg.setVisible(false) Start() end end Link to comment Share on other sites More sharing options...
Enzo_Funny_Gamer Posted May 10, 2021 Author Share Posted May 10, 2021 5 minutes ago, TopGEOYT said: By This Code (code will be bellow) Script will detect if script process was not ended by Exit button. If script was interrupted or process was killed or in general if script was not ended by exit, it will alert you : local Cashe, A= "/storage/emulated/0/...cfg", "" if io.open(Cashe) then gg.alert("Previous Script Process Was Interrupted !","") else io.output(Cashe) end function Start () -- add your codes here and you should also add exit button in script for detect process killing. local M = gg.choice({"hack1","hack2","exit"}) if M == 3 then os.remove(Cashe) A = nil end end gg.setVisible(true) while A == "" do if gg.isVisible(true) then gg.setVisible(false) Start() end end Thanks Dude I Never Go A reply From you Do you Still Make Encryptions? Link to comment Share on other sites More sharing options...
Enzo_Funny_Gamer Posted May 10, 2021 Author Share Posted May 10, 2021 8 minutes ago, TopGEOYT said: By This Code (code will be bellow) Script will detect if script process was not ended by Exit button. If script was interrupted or process was killed or in general if script was not ended by exit, it will alert you : local Cashe, A= "/storage/emulated/0/...cfg", "" if io.open(Cashe) then gg.alert("Previous Script Process Was Interrupted !","") else io.output(Cashe) end function Start () -- add your codes here and you should also add exit button in script for detect process killing. local M = gg.choice({"hack1","hack2","exit"}) if M == 3 then os.remove(Cashe) A = nil end end gg.setVisible(true) while A == "" do if gg.isVisible(true) then gg.setVisible(false) Start() end end Can I add It to This Script? function MAINMENU () mainmenu = gg.choice ({ ' to subscribers ', ' exit '},nil,' ') if mainmenu == 1 then tosubscribers () end if mainmenu == 2 then exit () end MAINMENUVISIBLE = -1 end function tosubscribers () ts = gg.multiChoice ({ ' thank you very much for 4 000 subscribers ', ' thank you for like my videos ', ' back to main menu '},nil,' to subscribers ') if ts == nil then else if ts [1] == true then subscribers () end if ts [2] == true then like () end if ts [3] == true then MAINMENU () end end end function subscribers () gg.toast ( ' thank you very much for 4000 subscribers 🇫🇳🇾 🇷 ') end function like () gg.toast (' thank you for like my videos ') end function exit () print ( ' 🇫🇳🇾 🇷') print (' ZЌR ') print ( ' ') gg.toast ( ' ') os.exit () end while true do if gg.isVisible(true) then MAINMENUVISIBLE = 1 gg.setVisible(false) end if MAINMENUVISIBLE == 1 then MAINMENU () end end Link to comment Share on other sites More sharing options...
TopGEOYT Posted May 10, 2021 Share Posted May 10, 2021 8 hours ago, Enzo_Funny_Gamer said: Can I add It to This Script? function MAINMENU () mainmenu = gg.choice ({ ' to subscribers ', ' exit '},nil,' ') if mainmenu == 1 then tosubscribers () end if mainmenu == 2 then exit () end MAINMENUVISIBLE = -1 end function tosubscribers () ts = gg.multiChoice ({ ' thank you very much for 4 000 subscribers ', ' thank you for like my videos ', ' back to main menu '},nil,' to subscribers ') if ts == nil then else if ts [1] == true then subscribers () end if ts [2] == true then like () end if ts [3] == true then MAINMENU () end end end function subscribers () gg.toast ( ' thank you very much for 4000 subscribers 🇫🇳🇾 🇷 ') end function like () gg.toast (' thank you for like my videos ') end function exit () print ( ' 🇫🇳🇾 🇷') print (' ZЌR ') print ( ' ') gg.toast ( ' ') os.exit () end while true do if gg.isVisible(true) then MAINMENUVISIBLE = 1 gg.setVisible(false) end if MAINMENUVISIBLE == 1 then MAINMENU () end end There is moded version : local Cashe, A= "/storage/emulated/0/...cfg", "" if io.open(Cashe) then -- type here code whatever u want to do if previous process was interrupted gg.alert("Previous Script Process Was Interrupted !","") else io.output(Cashe) end function MAINMENU () mainmenu = gg.choice ({ ' to subscribers ', ' exit '},nil,' ') if mainmenu == 1 then tosubscribers () end if mainmenu == 2 then exit () end MAINMENUVISIBLE = -1 end function tosubscribers () ts = gg.multiChoice ({ ' thank you very much for 4 000 subscribers ', ' thank you for like my videos ', ' back to main menu '},nil,' to subscribers ') if ts == nil then else if ts [1] == true then subscribers () end if ts [2] == true then like () end if ts [3] == true then MAINMENU () end end end function subscribers () gg.toast ( ' thank you very much for 4000 subscribers 🇫🇳🇾 🇷 ') end function like () gg.toast (' thank you for like my videos ') end function exit () os.remove(Cashe) print ( ' 🇫🇳🇾 🇷') print (' ZЌR ') print ( ' ') gg.toast ( ' ') os.exit () end while true do if gg.isVisible(true) then MAINMENUVISIBLE = 1 gg.setVisible(false) end if MAINMENUVISIBLE == 1 then MAINMENU () end end [added 0 minutes later] 8 hours ago, Enzo_Funny_Gamer said: Thanks Dude I Never Go A reply From you Do you Still Make Encryptions? Welcome. Yeah, im still making encryptions. Link to comment Share on other sites More sharing options...
Question
Enzo_Funny_Gamer
Is It Possible To Detect When Or If We Interupted The Script I Would Like To add That Option To My Script
That When Its Interupted I can Remove all Vlues That Have Been In The Freeze Folder And Remove Them when Interupted
Becouse They Can Find the Freezed Values Does This Help?
processKill()
bool processKill()
Force kill the selected process.
If you call this call too often, your script may be interrupted.
Attention
This can lead to data loss in this process.
Returns
true on success or false otherwise.
https://gameguardian.net/help/classgg.html#aa26601754a21b4e26d5c22f1930a424d
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.