oi10:presentation_server:objectid_method_system

OBJECTID Method (System)

This method returns the name of a PS GUI object matching the passed handle (HWND).

ObjectID = Exec_Method( "SYSTEM", "OBJECTID", HwndObject )

NameRequiredDescription
HwndObjectYesHandle (HWND) of the GUI object to query.

The name of the PS GUI object matching the passed handle, or null otherwise.

N/A

 
// Example - find the object under the screen cursor and check if it's a

   // PS object.

   

   hwndHot = Exec_Method( "SYSTEM", "HANDLEBYCURSOR", "", "", "" )

   

   if hwndHot then

      hotID = Exec_Method( "SYSTEM", "OBJECTID", hwndHot )

      if bLen( hotID ) then

         // We have a PS object underneath the cursor

      end

   end
 
 
 

OBJECTBYCURSOR method, OBJECTID method, Common GUI HANDLE property.

  • oi10/presentation_server/objectid_method_system.txt
  • Last modified: 2023/10/25 10:49
  • by 127.0.0.1