Checks if a variable's base type is a pointer.
IsPtr ( variable )
| variable | The variable/expression to check. |
| Success: | Returns 1 if the expression is a pointer type. |
| Failure: | Returns 0 if expression is not pointer type. |
Run("notepad.exe")
Local $hWnd = WinWait("[CLASS:Notepad]")
If IsPtr($hWnd) Then
MsgBox(4096, "", "It's a valid Ptr")
Else
MsgBox(4096, "", "It's not a valid Ptr")
EndIf