AutoHotkey Community

It is currently May 26th, 2012, 7:38 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 646 posts ]  Go to page Previous  1 ... 22, 23, 24, 25, 26, 27, 28 ... 44  Next
Author Message
 Post subject:
PostPosted: March 31st, 2009, 1:40 am 
Offline

Joined: April 18th, 2008, 7:57 am
Posts: 1390
Location: The Interwebs
Sean wrote:
Krogdor wrote:
Also, just out of curiosity, why does COM_ScriptControl() have a COM_Init() and COM_Term() built-in? Just seems a bit strange since it is the only function in the library that has this.
I explained here, it's the only one inside COM.ahk where can put both COM_Init()/COM_Term().
http://www.autohotkey.com/forum/topic22923-279.html


Aha, thanks. My apologies for asking questions that have been answered before... Perhaps I'll try searching a little more first next time.


Report this post
Top
 Profile  
Reply with quote  
PostPosted: April 7th, 2009, 3:45 pm 
Offline

Joined: July 5th, 2007, 6:30 pm
Posts: 65
Location: www.newfreethinker.com
Code:
DVM04(hwnd, x, y, w, h)
   {
   Global
   DVM04 := COM_ActiveXObject("HWDVSVideoControl.HoneywellVideoControl")
   COM_AtlAxAttachControl(DVM04, COM_AtlAxCreateContainer(hWnd, x, y, w, h))
   }


How do I kill this? I've tried a few of the terms and releases but nothing has worked.
I want to be able to kill/destroy DVM04 and recreate it with the same var name.

Thanks!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 8th, 2009, 1:45 am 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
Rad777 wrote:
How do I kill this?
How could I possibly know? Why don't you ask the author of this third-party control?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 10th, 2009, 2:48 pm 
Offline

Joined: July 5th, 2007, 6:30 pm
Posts: 65
Location: www.newfreethinker.com
Sean wrote:
Rad777 wrote:
How do I kill this?
How could I possibly know? Why don't you ask the author of this third-party control?


I just figured that there would be a function to destroy a created ActiveX object, in a generic way.

I can fully control the options within the created object DVM04, however once created and placed on a GUI the object is 'always on top' and despite my best efforts nothing can go on top one of these objects once created; the reason I want to be able to destroy them.

I hope these tidbits give a little more insight. Thanks


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 10th, 2009, 3:54 pm 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
is there a visibile property?
you could also move the control out of the gui there by exposing underneath controls

_________________
No matter what your oppinion Please join this discussion
Formal request to Polyethene
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 11th, 2009, 2:13 am 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
Think carefully about what tank said implies. There already is a function to handle the case.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 16th, 2009, 2:10 pm 
Offline

Joined: July 5th, 2007, 6:30 pm
Posts: 65
Location: www.newfreethinker.com
tank wrote:
is there a visibile property?
you could also move the control out of the gui there by exposing underneath controls


The API doesn't have a visible property unfortunately.

My temp fix was to cancel the GUI and create another, and simply revert back to the original GUI whenever I needed.

I hadn't thought about simply moving them. TY for the tip will test that out


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 25th, 2009, 8:35 am 
Offline

Joined: February 11th, 2007, 4:10 pm
Posts: 185
how to alter the attibute ,such as l, t, w, h, of a container created by COM_AtlAxCreateContainer?

And is there a way to create a text control with transparent backgroud color above the com activex object?

And the object added by COM_AtlAxCreateContainer can not be redrawed automatically when minimizing first and then maximizing again. You can have a try
Code:
COM_AtlAxCreateContainer(hwnd, l,t,w,h,"C:\list.xls")


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 25th, 2009, 9:26 am 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
Quote:
how to alter the attibute ,such as l, t, w, h, of a container created by COM_AtlAxCreateContainer?
ControlMove.
Quote:
And the object added by COM_AtlAxCreateContainer can not be redrawed automatically when minimizing first and then maximizing again.
You said that to me? What for? Am I the author of AtlAxWin? Anyway, what's the problem? You can manage it yourself. I already showed one way to solve the issue somewhere in the forum, again using ControlMove. You just seem to never try to solve a problem yourself. I may better not answer your questions afterwards.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 26th, 2009, 4:07 am 
Offline

Joined: February 11th, 2007, 4:10 pm
Posts: 185
Quote:
You said that to me? What for? Am I the author of AtlAxWin? Anyway, what's the problem? You can manage it yourself. I already showed one way to solve the issue somewhere in the forum, again using ControlMove. You just seem to never try to solve a problem yourself. I may better not answer your questions afterwards.


You know, I am just a noob and a busy doctor who have just known a little vb learned by myself and not touched VC. All of the threads you published here are new for me. In fact , I have not known AtlAxWin, COM, WMI, ADO and so on before reading your threads, and I have not known COM can realize my ideas so easily. And my native language is not English, so it's not so easy for me to understand English documents deeply. What's more, you supply a lot of useful and amazing functions almost without comments and documents, even without remarks in the thread.
But it's just the beginning for me and everything is becoming better. I have begun to search MSDN to slove some simply problems by myself. For example, now I can tell Rad777 the solution for his puzzle:
Code:
DllCall("DestroyWindow", "Uint", hWnd)
COM_Realse(DVM04)

But I have still not found the solution for my problem that if the activex control is hosted in a child window created by COM_AtlAxCreateContainer, after minimizing the gui and maximizing it again, the control interface can not be displayed unitl you move or scroll mouse over it. If the control is hosted in the main gui window by COM_AtlAxCreateControl(hGui, Name), it's ok. I found this case in Excel and am not sure the other Activex. I don't know I should ascribe the blame to AtlAxWin or COM or Excel or myself.

At all, thanks for your efforts to the forum and your patience although you seem to become out of patiece for me:)
Forgive my poor english.

Regards
Hughman


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 26th, 2009, 8:53 am 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
hughman wrote:
But I have still not found the solution for my problem that if the activex control is hosted in a child window created by COM_AtlAxCreateContainer, after minimizing the gui and maximizing it again, the control interface can not be displayed unitl you move or scroll mouse over it. If the control is hosted in the main gui window by COM_AtlAxCreateControl(hGui, Name), it's ok. I found this case in Excel and am not sure the other Activex. I don't know I should ascribe the blame to AtlAxWin or COM or Excel or myself.
Read here:
http://www.autohotkey.com/forum/topic31923-35.html

Quote:
At all, thanks for your efforts to the forum and your patience although you seem to become out of patiece for me:)
I guess I became sick and tired of answering some posts, which didn't provide enough/full info/code, and/or refused to follow my instructions while asking my help. My bad.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 1st, 2009, 8:08 am 
8) 8) 8) 8) 8) 8) :roll:


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 9th, 2009, 10:47 am 
Offline

Joined: May 17th, 2007, 9:06 pm
Posts: 421
Location: England
Is there a translated/updated version of MSCOMM32.OCX available?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 10th, 2009, 2:20 am 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
Mustang wrote:
Is there a translated/updated version of MSCOMM32.OCX available?
No, it's pointless now.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 10th, 2009, 5:05 am 
Offline

Joined: May 17th, 2007, 9:06 pm
Posts: 421
Location: England
Sean wrote:
Mustang wrote:
Is there a translated/updated version of MSCOMM32.OCX available?
No, it's pointless now.

What would you suggest for communication between an AHK script and a virtual com port then?
The kind that would make Bluetooth communication possible :D


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 646 posts ]  Go to page Previous  1 ... 22, 23, 24, 25, 26, 27, 28 ... 44  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: bobbysoon, jrav, Xx7 and 16 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group