Sign in to follow this  
Followers 0
gzken

What's the difference between old A3L and combined with autoit

1 post in this topic

Hi guys,

I have an old version of A3L, and some scripts is working with it, but now the A3L has been combined with 3.2.12.1, and lots of func name changed, I need to update the scripts.

Now, I need to find item in TreeView by text, I used _TreeView_GetText in A3L before, and replace with _GUICtrlTreeView_GetText now, but I found it did not work after the replaced...

The code of func _TreeView_GetText in A3L:

Func _TreeView_GetText($hWnd, $hNode)
  Local $iItem, $tItem, $pItem, $pBuffer, $tBuffer, $pMemory, $tMemMap, $pText

  $tBuffer = DllStructCreate("char Text[4096]")
  $pBuffer = DllStructGetPtr($tBuffer)
  $tItem   = DllStructCreate($tagTVITEMEX)
  $pItem   = DllStructGetPtr($tItem)
  DllStructSetData($tItem, "Mask", $TVIF_TEXT)
  DllStructSetData($tItem, "hItem", $hNode)
  DllStructSetData($tItem, "TextMax", 4096)
  if _Lib_InProcess($hWnd, $ghTVLastWnd) then
    DllStructSetData($tItem, "Text", $pBuffer)
    _API_SendMessage($hWnd, $TVM_GETITEM, 0, $pItem)
  else
    $iItem   = DllStructGetSize($tItem)
    $pMemory = _Mem_CtrlInit($hWnd, $iItem + 4096, $tMemMap)
    $pText   = $pMemory + $iItem
    DllStructSetData($tItem, "Text", $pText)
    _Mem_CtrlWrite($tMemMap, $pItem, $pMemory, $iItem)
    _API_SendMessage($hWnd, $TVM_GETITEM, 0, $pMemory)
    _Mem_CtrlRead($tMemMap, $pText, $pBuffer, 4096)
    _Mem_CtrlFree($tMemMap)
  endif
  Return DllStructGetData($tBuffer, "Text")
EndFuncoÝ÷ Ù8^r^¡÷îÁ +k:ÞyXÀg­Mìmp.-ßmvÕ«­¢+ÙÕ¹}U%
ÑɱQÉY¥Ý}ÑQáÐ ÀÌØí¡]¹°ÀÌØí¡%Ñ´ôÀ¤(%%ÀÌØíÕ}QXQ¡¸}U%
ÑɱQÉY¥Ý}Y±¥Ñ
±ÍÍ9µ ÀÌØí¡]¹¤(%%9½Ð%Í!]¹ ÀÌØí¡%Ñ´¤Q¡¸ÀÌØí¡%Ñ´ô}U%
ÑɱQÉY¥Ý}Ñ%ѵ!¹± ÀÌØí¡]¹°ÀÌØí¡%Ñ´¤(%%9½Ð%Í!]¹ ÀÌØí¡]¹¤Q¡¸ÀÌØí¡]¹ôU%
ÑɱÑ!¹± ÀÌØí¡]¹¤($(%%ÀÌØí¡%Ñ´ôÁàÀÀÀÀÀÀÀÀQ¡¸IÑÕɸMÑÉÉ½È Ä°Ä°ÅÕ½ÐìÅÕ½Ðì¤($(%1½°ÀÌØíÑQY%Q4°ÀÌØíÑQáаÀÌØíÁ    ÕÈ°ÀÌØí¥%Ñ´°ÀÌØíÁ5µ½Éä°ÀÌØíÁQáаÀÌØíÑ5µ5À°ÀÌØíÁ%Ñ´(($ÀÌØíÑQY%Q4ô±±MÑÉÕÑ
ÉÑ ÀÌØíÑQY%Q5`¤(%%Õѽ%ÑU¹¥½Q¡¸($$ÀÌØíÑQáÐô±±MÑÉÕÑ
ÉÑ ÅÕ½ÐíÝ¡È   ÕÉlÐÀäÙtÅÕ½Ðì¤ìÉÑÑáÐÌäíÉÌäì½ÈÉ¥Ù¥¹Ñ¡ÑáÐ(%±Í($$ÀÌØíÑQáÐô±±MÑÉÕÑ
ÉÑ ÅÕ½Ðí¡È ÕÉlÐÀäÙtÅÕ½Ðì¤ìÉÑÑáÐÌäíÉÌäì½ÈÉ¥Ù¥¹Ñ¡ÑáÐ(%¹%($ÀÌØíÁ   ÕÈô±±MÑÉÕÑÑAÑÈ ÀÌØíÑQáФ($ÀÌØíÁ%Ñ´ô±±MÑÉÕÑÑAÑÈ ÀÌØíÑQY%Q4¤($(%±±MÑÉÕÑMÑÑ ÀÌØíÑQY%Q4°ÅÕ½Ðí5ͬÅÕ½Ðì°ÀÌØíQY%}QaP¤(%±±MÑÉÕÑMÑÑ ÀÌØíÑQY%Q4°ÅÕ½Ðí¡%Ñ´ÅÕ½Ðì°ÀÌØí¡%Ñ´¤(%±±MÑÉÕÑMÑÑ ÀÌØíÑQY%Q4°ÅÕ½ÐíQáÑ5àÅÕ½Ðì°ÐÀäؤ($(%%}]¥¹A%}%¹AɽÍÌ ÀÌØí¡]¹°ÀÌØí}}¡QY1ÍÑ]¹¤Q¡¸($%±±MÑÉÕÑMÑÑ ÀÌØíÑQY%Q4°ÅÕ½ÐíQáÐÅÕ½Ðì°ÀÌØíÁ  ÕȤ($%%Õѽ%ÑU¹¥½Q¡¸($$%}5ÍÍ ÀÌØí¡]¹°ÀÌØíQY5}Q%Q5°À°ÀÌØíÁ%Ñ´°À°ÅÕ½ÐíÝÁÉ´ÅÕ½Ðì°ÅÕ½ÐíÁÑÈÅÕ½Ðì¤($%±Í($$%}5ÍÍ ÀÌØí¡]¹°ÀÌØíQY5}Q%Q4°À°ÀÌØíÁ%Ñ´°À°ÅÕ½ÐíÝÁÉ´ÅÕ½Ðì°ÅÕ½ÐíÁÑÈÅÕ½Ðì¤($%¹%(%±Í($$ÀÌØí¥%Ñ´ô±±MÑÉÕÑÑM¥é ÀÌØíÑQY%Q4¤($$ÀÌØíÁ5µ½Éäô}5µ%¹¥Ð ÀÌØí¡]¹°ÀÌØí¥%Ñ´¬ÐÀäØ°ÀÌØíÑ5µ5À¤($$ÀÌØíÁQáÐôÀÌØíÁ5µ½Éä¬ÀÌØí¥%Ñ´($%±±MÑÉÕÑMÑÑ ÀÌØíÑQY%Q4°ÅÕ½ÐíQáÐÅÕ½Ðì°ÀÌØíÁQáФ($%}5µ]É¥Ñ ÀÌØíÑ5µ5À°ÀÌØíÁ%Ñ´°ÀÌØíÁ5µ½Éä°ÀÌØí¥%Ñ´¤($%%Õѽ%ÑU¹¥½Q¡¸($$%}5ÍÍ ÀÌØí¡]¹°ÀÌØíQY5}Q%Q5°À°ÀÌØíÁ5µ½Éä°À°ÅÕ½ÐíÝÁÉ´ÅÕ½Ðì°ÅÕ½ÐíÁÑÈÅÕ½Ðì¤($%±Í($$%}5ÍÍ ÀÌØí¡]¹°ÀÌØíQY5}Q%Q4°À°ÀÌØíÁ5µ½Éä°À°ÅÕ½ÐíÝÁÉ´ÅÕ½Ðì°ÅÕ½ÐíÁÑÈÅÕ½Ðì¤($%¹%($%}5µI ÀÌØíÑ5µ5À°ÀÌØíÁQáаÀÌØíÁ ÕÈ°ÐÀäؤ($%}5µÉ ÀÌØíÑ5µ5À¤(%¹%($(%IÑÕɸ±±MÑÉÕÑÑÑ ÀÌØíÑQáаÅÕ½Ðí ÕÈÅÕ½Ðì¤)¹Õ¹ìôôÐí}U%
ÑɱQÉY¥Ý}ÑQáoÝ÷ Ù8^kçm¢jüP­®Tëyåb{µ7±µ§¢·bhN·V'°ëS{H~§v+p¢¹w}÷ß}ÚºÚ"µÍ[ÈÑÕRPÝYUY]×ÑÙ]^
    ÌÍÚÛ    ÌÍÚÙHH
BRY ÌÍÑXY×Õ[ÑÕRPÝYUY]×Õ[Y]PÛÜÓ[YJ  ÌÍÚÛ
BRYÝÒÛ
    ÌÍÚÙJH[ ÌÍÚ][HHÑÕRPÝYUY]×ÑÙ]][R[J  ÌÍÚÛ    ÌÍÚÙJBRYÝÒÛ
    ÌÍÚÛ
H[  ÌÍÚÛHÕRPÝÙ][J    ÌÍÚÛ
BBRY    ÌÍÚ][HH[]Ù]ÜKK ][ÝÉ][ÝÊBBSØØ[    ÌÍÚR][K  ÌÍÝ][K   ÌÍÜ][K   ÌÍÜY ÌÍÝY ÌÍÜY[[ÜK    ÌÍÝY[SX  ÌÍÜ^IÌÍÝYHÝXÝÜX]J  ][ÝØÚ^ÍMI][ÝÊBIÌÍÜYHÝXÝÙ]   ÌÍÝYBIÌÍÝ][HHÝXÝÜX]J   ÌÍÝYÕUSQV
BIÌÍÜ][HHÝXÝÙ]    ÌÍÝ][JBQÝXÝÙ]]J   ÌÍÝ][K   ][ÝÓXÚÉ][ÝË   ÌÍÕQÕV
BQÝXÝÙ]]J    ÌÍÝ][K   ][ÝÚ][I][ÝË ÌÍÚÙJBQÝXÝÙ]]J   ÌÍÝ][K   ][ÝÕ^X^   ][ÝË
MBZYÕÚ[TWÒ[ØÙÜÊ  ÌÍÚÛ    ÌÍ××ÙÚÝÛ
H[BQÝXÝÙ]]J  ÌÍÝ][K   ][ÝÕ^ ][ÝË  ÌÍÜYBBWÔÙ[YÜØYÙJ    ÌÍÚÛ    ÌÍÕWÑÑUUSK ÌÍÜ][JBY[ÙBBIÌÍÚR][HHÝXÝÙ]Ú^J    ÌÍÝ][JBBIÌÍÜY[[ÜHHÓY[R[]
    ÌÍÚÛ    ÌÍÚR][H
È
M   ÌÍÝY[SX
BBIÌÍÜ^H ÌÍÜY[[ÜH
È  ÌÍÚR][BBQÝXÝÙ]]J  ÌÍÝ][K   ][ÝÕ^ ][ÝË  ÌÍÜ^
BBWÓY[UÜ]J    ÌÍÝY[SX  ÌÍÜ][K   ÌÍÜY[[ÜK    ÌÍÚR][JBBWÔÙ[YÜØYÙJ ÌÍÚÛ    ÌÍÕWÑÑUUSK ÌÍÜY[[ÜJBBWÓY[TXY
    ÌÍÝY[SX  ÌÍÜ^ ÌÍÜY
MBBWÓY[QYJ ÌÍÝY[SX
BY[YT]ÝXÝÙ]]J    ÌÍÝY ][ÝÕ^ ][ÝÊB[[ÈÏOIÝ×ÑÕRPÝYUY]×ÑÙ]^

So anyone know the cause?Thanks...

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0