Zach Posted December 31, 2006 Posted December 31, 2006 (edited) I am sure it exists and I am just missing it - but I can find anything that seems to give me the actual object handles. Not looking for the hwnd - want the object. $btn = GUICtrlCreateButton("Button", 10, 10, 100, 30) I thought - incorrectly - would give me the object as ... $btn but it does not seem to work if I try to pass it a static or a com dll ... Have not looked at it all that close yet - but just assuming that a variable that comes from AutoIt is going to have an AutoIt format or something to that extent. Now - if I use something like $oIE = _IECreateEmbedded () or $obj = ObjCreate("Shell32.WhatEver") The left hand variable in those cases is the object I would have expected to get from any of the GUICreate functions. I know there is ways to get it ... just wondering if there is a built in method I am missing? Edited December 31, 2006 by Zach
Uten Posted January 1, 2007 Posted January 1, 2007 Why do you think you should be able to get a object? What kind of object do you expect to get that you can pass on to a COM interface?If it is the handle you want after all you could try hwnd($btn)A gui element based on Win32 is not a object before some library wraps it up and protects you from the real implementation. Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling
theguy0000 Posted January 1, 2007 Posted January 1, 2007 I think you're missing up opjects with handles/controls....a button is a control and ObjGet has absolutely nothing to do with it.... The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN
Richard Robertson Posted January 1, 2007 Posted January 1, 2007 (edited) A control is a window with a parent. Every window is a handle.Edit: a handle with some extra items like text, size, location, z order, ability to receive messages, etc. Edited January 1, 2007 by Mr Icekirby
Zach Posted January 1, 2007 Author Posted January 1, 2007 (edited) I really got to make a rule that I never use the word "handle" again. Its got way to many uses for way to many different things. To put it another way. What I was really looking for is a reference to the running script itself - or a reference that puts me into the same scope as the running script. Edited January 1, 2007 by Zach
Zach Posted January 1, 2007 Author Posted January 1, 2007 Oh - and about the sig of Mr Icekirby.... I have noticed it before ... editbin /NOLOGO /SUBSYSTEM:CONSOLE CompiledAU3.exe and you now have a console app
/dev/null Posted January 1, 2007 Posted January 1, 2007 (edited) What I was really looking for is a reference to the running script itself - or a reference that puts me into the same scope as the running script.Do you mind to tell us what the "sope" of a running script could be?? Or in other words: WHAT do you want to do?CheersKurt Edited January 1, 2007 by /dev/null __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now