Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Toolbar variables and initialisation
#9
Now I tested this
Macro Macro2781
Code:
Copy      Help
Acc+ g_accTest
if !g_accTest.a
,int w=win("This PC" "CabinetWClass")
,g_accTest.Find(w "LISTITEM" "Downloads" "class=DirectUIHWND" 0x1005)

out g_accTest.Name
;next time:
;Error (RT) in <open ":13564: /145">Macro2781:  0x800401FD, Object is not connected to server.    <help #IDP_ERR>?
It means that an Acc object is invalid in other threads, and therefore global variables does not have sense. There are possible alternatives, but not easy. Better change your code so that would not need non-temporary Acc variables.


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)