Jump to content

GUI Object prop/method access


horohoro
 Share

Recommended Posts

I dont know how to access an object methods/proprietes please someone hlp me im a newbie at GUIs. I know how to control my GUIs events using OnEvent mode but if i create a textbox for example. GuiCreateEdit() and lets say the user types 'noob' in the edit, how can i get the text 'noob' from the editbox? pls good souls hlp me im newbie there. sorry 4 my very bad english i hope u all understand me :). In vb6 i would just used text1.text to get the text of the textbox object, but how is it in autoit ? hapiness and health for all members

Edited by horohoro
Link to comment
Share on other sites

AutoIt has an interface to access COM objects, but is not Object Oriented (which is not the same thing).

You would use GuiCtrlRead() or _GUICtrlEdit_GetText(); see help file. The first is a native AutoIt function using standard Windows API (in C++, I think). The later is simply making a DLL call (look up the function in GuiEdit.au3 to see).

:)

Edit: Added explanation.

Edited by PsaltyDS
Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...