how do i detect a space between 2 words such as: between here ok my next question is how do i detect a java script popup window while surfing the internet. im able to detect normal popups but not sure about the java script. thanks smurf
scan the string for character 20h (the space character)! I think there is a MASM32.LIB function that can scan a string for a pattern. If there isn't, its fairly simple anyway!
mov ecx, ADDR Buffer mov eax, -1 @@: inc eax cmp , " " je @F cmp , 0 jne @B mov eax, -1 @@: ret
returns 0..(str_len - 1), or -1 if not present. Mirno
thanks Mirno i appreciate the help.