Hey scripting

I’m currently checking how key is working for scripting and I was a bit surprised by the below results.

open /system/apps/WebPositive
hey WebPositive count Window
Reply BMessage(B_REPLY):
   "result" (B_INT32_TYPE) : 6 (0x00000006)
   "error" (B_INT32_TYPE) : 0 (0x00000000)

WebPositive is considering to have 6 windows at the start.

open /system/apps/Iceweasel/Iceweasel
hey Iceweasel count Window
Reply BMessage(B_REPLY):
   "result" (B_INT32_TYPE) : 1 (0x00000001)
   "error" (B_INT32_TYPE) : 0 (0x00000000)

I would expect one window like with Iceweasel

Someone knows what could be the reason ?

Mmm I’ve got my answer :stuck_out_tongue:

2024-12-26_13-01

1 Like

Just a side note. You don’t have to put the window index in square brackets. hey Foo get Title of Window 0 works fine.