0 Members and 3 Guests are viewing this topic.
which is why I think there should be one command to create the appvar and a different one to read from an appvar...
Quote from: DJ Omnimaga on February 07, 2011, 02:05:22 pmwhich is why I think there should be one command to create the appvar and a different one to read from an appvar...Wait, i'm confused, isn't there only one command to create them and only one command to read from them? getCalc() can create them, and using a pointer can read from them?
GetCalc("appvAPPVAR")→Pointer
GetCalc("appvAPPVAR")→A
GetCalc("appvAPPVAR")→A1→{A}
GetCalc("appvAPPVAR",Size)→Pointer
UnArchive "appvAPPVAR"
Archive "appvAPPVAR"
GetCalc("appvAPPVAR",File)
GetCalc("appvAPPVAR",Y0){Y0}→A
DelVar "appvAPPVAR"
GetCalc("appvAPPVAR",Y0)GetCalc("appvAPPVAR2",Y0)
GetCalc("varA")→Pointer
GetCalc("varA")→P1→float{P}
GetCalc("varA")→P1→float{P-2}
It does the same thing as GetCalc("appvHI")->A, but I'm sure you can think of many applications of this method instead (shells and mem readers come to mind). You can use 05 to get a program or 06 to get a protected program (instead of $15). Other prefixes you may be able to use are (taken from the SDK. also I haven't tested all of these and would be wary if you tried GetCalc'ing an application for example)
:!If GetCalc("appvPOLSC"):GetCalc("appvPOLSC",37)->N:For(A,0,37):0->{N+A}:End:End:GetCalc("appvPOLSC")->N:For(A,0,37):!If {N+A}:.(do something):Else:.(do something else):End:End