Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25296 Location: The netherlands
|
Posted: Sat Apr 29, 2017 7:06 pm Post subject: |
|
|
almost everything
the order of instructions
not waiting for results
and let's look at the firstScan params
Code: |
firstScan(scanoption, vartype, roundingtype, input1, input2 ,startAddress ,stopAddress ,protectionflags ,alignmenttype ,"alignmentparam" ,isHexadecimalInput ,isNotABinaryString, isunicodescan, iscasesensitive);
Does an initial scan.
memscan: The MemScan object created with createMemScan
scanOption: Defines what type of scan is done. Valid values for firstscan are:
soUnknownValue: Unknown initial value scan
soExactValue: Exact Value scan
soValueBetween: Value between scan
soBiggerThan: Bigger than ... scan
soSmallerThan: smaller than ... scan
vartype: Defines the variable type. Valid variable types are:
vtByte
vtWord 2 bytes
vtDword 4 bytes
vtQword 8 bytes
vtSingle float
vtDouble
vtString
vtByteArray
vtGrouped
vtBinary
vtAll
roundingtype: Defined the way scans for exact value floating points are handled
rtRounded : Normal rounded scans. If exact value = "3" then it includes 3.0 to 3.49999999. If exact value is "3.0" it includes 3.00 to 3.0499999999
rtTruncated: Truncated algorithm. If exact value = "3" then it includes 3.0 to 3.99999999. If exact value is "3.0" it includes 3.00 to 3.099999999
rtExtremerounded: Rounded Extreme. If exact value = "3" then it includes 2.0000001 to 3.99999999. If exact value is "3.0" it includes 2.900000001 to 3.099999999
input1: If required by the scanoption this is a string of the given variable type
input2: If requires by the scanoption this is the secondary input
startAddress : The start address to scan from. You want to set this to 0
stopAddress : The address the scan should stop at. (You want to set this to 0xffffffffffffffff)
protectionflags : See aobscan about protectionflags
alignmenttype : Scan alignment type. Valid options are:
fsmNotAligned : No alignment check
fsmAligned : The address must be dividable by the value in alignmentparam
fsmLastDigits : The last digits of the address must end with the digits provided by alignmentparam
alignmentparam : String that holds the alignment parameter.
isHexadecimalInput: When true this will handle the input field as a hexadecimal string else decimal
isNotABinaryString: When true and the varType is vtBinary this will handle the input field as a decimal instead of a binary string
isunicodescan: When true and the vartype is vtString this will do a unicode (utf16) string scan else normal utf8 string
iscasesensitive : When true and the vartype is vtString this check if the case matches
|
yours:
Code: |
scan.firstScan(soValueBetween, vtSingle, rtRounded, "TextOne", 0, 0xffffffffffffffff, "+w", fsmAligned, "4", false, false, false, false)
|
so
Code: |
scanoption=soValueBetween
vartype=vtSingle
roundingtype=rtRounded
input1="TextOne"
input2=0
startAddress=0xffffffffffffffff
stopAddress="+w"
protectionflags=fsmAligned
alignmenttype="4"
alignmentparam=false
isHexadecimalInput=false
isNotABinaryString=false
isunicodescan=false
iscasesensitive=nil
|
So, first of, the parameter type is wrong, I think you may want to use vtString
Secondly, for text you can only use soExactValue (
Third, you are missing the input2 parameter (I've seen this mistake before in another post. Tip: Don't copy paste code from people asking questions in the forum, they are often wrong)
Fourth, are you sure your string is aligned on a 4 byte boundary ?
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|