Thanks for your help
How to implement the following commands in QM? My code doesn't work
SCI_GETLINE(line line, char *text) → position
SCI_GETCURLINE(position length, char *text NUL-terminated) → position
autoit related code:
How to implement the following commands in QM? My code doesn't work
SCI_GETLINE(line line, char *text) → position
,act sci
,int cp=SendMessage(sci SCI.SCI_GETCURRENTPOS 0 0)
,int line=SendMessage(sci SCI.SCI_LINEFROMPOSITION cp 0)
,SendMessage(sci SCI.SCI_GETLINE line _s)
,mes _s
SCI_GETCURLINE(position length, char *text NUL-terminated) → position
,act sci
,int cp=SendMessage(sci SCI.SCI_GETCURRENTPOS 0 0)
,int line=SendMessage(sci SCI.SCI_LINEFROMPOSITION cp 0)
,int length=SendMessage(sci SCI.SCI_LINELENGTH line 0)
,SendMessage(sci SCI.SCI_GETCURLINE length _s)
,mes _s
autoit related code:
Local $ret, $iPos = SendMessage($Sci, $SCI_GETCURRENTPOS, 0, 0)
$iLen = SendMessage($Sci, $SCI_GETCURLINE, 0, 0)
$sBuf = DllStructCreate("byte[" & $iLen & "]")
$ret = DllCall($user32, "long", "SendMessageA", "long", $Sci, "int", $SCI_GETCURLINE, "int", $iLen, "ptr", DllStructGetPtr($sBuf))
$current = $ret[0]
$startword = $current