Miliardsto Posted December 8, 2019 Posted December 8, 2019 (edited) I have errors like this ### StripOnly/StripFunc Error: Found Call() statement using unsolvable Func, which will/could lead to removal of Funcs that are used by this Function. >### current Func: checkAndRun d:\pliki\autoit3\lofty-tibiabot v2\#po zmianach adlibregister\inc\jsondb\jsondb.au3(155,1): Warning for line:Call($funcName) -### StripOnly/StripFunc Error: Found Call() statement using unsolvable Func, which will/could lead to removal of Funcs that are used by this Function. >### current Func: checkAndRun d:\pliki\autoit3\lofty-tibiabot v2\#po zmianach adlibregister\inc\jsondb\jsondb.au3(157,1): Warning for line:Call($funcName) How to deal with that errors my function looks like this below. Depends on $funcName it calls that function by this passed name. How to change code to make it working? I have tried this code to ignore but not working too. Quote #Au3Stripper_Ignore_Variables=funcName #Au3Stripper_Ignore_Funcs=checkAndRun Func checkAndRun($offOn,$checkbox,$funcName,$toggle=False) ; this func check state of running function (checked checkbox) and check it or uncheck depends of state from json DB ; 1 off / on value from mobile phone - so want to on or off ? ; 2 checkbox which one is it to determine if its checked now or no in bot ; 3 for toggles (default all are checkboxes) $checkedOrNo = $toggle ? _Metro_ToggleIsChecked($checkbox) : _Metro_CheckboxIsChecked($checkbox) ; added Off/On values becouse steppers in mobile has values Off/On ; changed to Yes/No ; Do nothing becouse the same values If $checkedOrNo == False And ( $offOn == False Or $offOn == "No" ) Then ; do nothing Return ElseIf $checkedOrNo == True And ( $offOn == True Or $offOn == "Yes" ) Then ; do nothing Return ; not the same so make function call ElseIf $checkedOrNo == True And ( $offOn == False Or $offOn == "No" ) Then ; stop func ConsoleWrite("Stop func " & $funcName) Call($funcName) ElseIf $checkedOrNo == False And ( $offOn == True Or $offOn == "Yes" ) Then ; run func Call($funcName) ConsoleWrite("Run func " & $funcName) EndIf EndFunc I run these function above in other files like that: checkAndRun($offOn_heal,$s_offOn_heal,"s_offOn_heal") ; checkbox checkAndRun($offOn_healSec,$s_offOn_healSec,"s_offOn_healSec") ; checkbox checkAndRun($offOn_spell,$s_offOn_spell,"s_offOn_spell") ; checkbox Edited December 8, 2019 by Miliardsto
Developers Jos Posted December 8, 2019 Developers Posted December 8, 2019 (edited) 4 hours ago, Miliardsto said: How to deal with that errors my function looks like this below. I have already explained many times why these warning/error occurs: Either do not use Call() like that or do not try to strip the code with au3stripper. Jos Edited December 8, 2019 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Developers Jos Posted December 8, 2019 Developers Posted December 8, 2019 Welcome to the AutoIt forum. Unfortunately you appear to have missed the Forum rules on your way in. Please read them now - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked. See you soon with a legitimate question I hope. The Moderation team SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Recommended Posts