piccaso

Nice way of monitoring other Apps

29 posts in this topic




what exactly does this do?


The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites

the helper dll forwards the specified (WM_COMMAND in the example) Message to the autoit Window so you can catch it with GUIRegisterMsg()


CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map

Share this post


Link to post
Share on other sites

here is a better example.

it adds a new menu item into the '?' menu of the calculator.

Change "Rechner" to "Calculator" for english windows version


CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map

Share this post


Link to post
Share on other sites

Hi picasso,

I see that you also left the SQLite project.

Regarding this DLL you made. It is nice but I prefer the do all the GUI changes, using the ANYGUI script.

It is less complicated and has no need for an extra DLL.

Anyhow this looks nice.

See you around.

PTREX

Share this post


Link to post
Share on other sites

ANYGUI is nice, but it has some limitations i could not live with...

i needet this for work, and i got to learn some c/c++ while working on it.

so maybe i am able to compile the sqlite com wraper with the new version.

the example above is just a side effect while i was testing the dll.


CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map

Share this post


Link to post
Share on other sites

Looks cool. Haven't looked at it in detail, but I assuem that this can be used to catch windows resize/redraw events of other windows. I tried using the AutoIt functions, but they screw with drag drop events.


“Give a man a script; you have helped him for today. Teach a man to script; and you will not have to hear him whine for help.”AutoIt4UE - Custom AutoIt toolbar and wordfile for UltraEdit/UEStudio users.AutoIt Graphical Debugger - A graphical debugger for AutoIt.SimMetrics COM Wrapper - Calculate string similarity.

Share this post


Link to post
Share on other sites

Looks cool. Haven't looked at it in detail, but I assuem that this can be used to catch windows resize/redraw events of other windows.

most WM_* messages

I tried using the AutoIt functions, but they screw with drag drop events.

i dont know what you mean. if you post it i'll try to help...

CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map

Share this post


Link to post
Share on other sites

most WM_* messagesi dont know what you mean. if you post it i'll try to help...

I don't have anything to post as it was simply using the WinGetPos function to get the size a window A to try and dock window B to it. Window A being UltraEdit and Window B being a help file.

Calling WinGetPos every second or so resulted in some of the features of UltraEdit not working. As I remember, it was some of the automatic context menus, not the drag and drop (got mixed up with another script).

I assumed that the continuous calls of WinGetPos were interfering with the events within the program. I gave up at that point. I had thought about intercepting the draw/refresh messages from Windows, but could not spend the time to look into it. I saw your post and thought that it may do the trick.


“Give a man a script; you have helped him for today. Teach a man to script; and you will not have to hear him whine for help.”AutoIt4UE - Custom AutoIt toolbar and wordfile for UltraEdit/UEStudio users.AutoIt Graphical Debugger - A graphical debugger for AutoIt.SimMetrics COM Wrapper - Calculate string similarity.

Share this post


Link to post
Share on other sites

I am going to play around with the WM_SIZE message and see what trouble I can get into!

Really cool how you added the new menu. I might use that in one of my progs.


“Give a man a script; you have helped him for today. Teach a man to script; and you will not have to hear him whine for help.”AutoIt4UE - Custom AutoIt toolbar and wordfile for UltraEdit/UEStudio users.AutoIt Graphical Debugger - A graphical debugger for AutoIt.SimMetrics COM Wrapper - Calculate string similarity.

Share this post


Link to post
Share on other sites

The moving and resizing works (used WM_MOVE and WM_SIZE)! However the menu is always greyed out. Will investigate.


“Give a man a script; you have helped him for today. Teach a man to script; and you will not have to hear him whine for help.”AutoIt4UE - Custom AutoIt toolbar and wordfile for UltraEdit/UEStudio users.AutoIt Graphical Debugger - A graphical debugger for AutoIt.SimMetrics COM Wrapper - Calculate string similarity.

Share this post


Link to post
Share on other sites

Very nice :o


-jaenster

Share this post


Link to post
Share on other sites

Picasso,

With your programm i have a problem when creating new menu. These menu are enabled with Microsoft programm like "calc" and with other programm submenu are greyed.

Is anyone knoxw how to enable supprogramm in such case ?

Regards

Share this post


Link to post
Share on other sites

Can't believe I'm saying this... but thanks for the bump LOULOU, I hadn't seen picasso's play toy here before.

Nice work picasso.


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Thanks Smoke_N :lmao:

LOULOU try SetMenuItemInfo

Thanks Picasso,

But i haven't knowledge as well to make that, can you help me please

What can i do with setmenuiteminfo ?

Mu problem come from the c language because i try your program on a programm written in Delphi and all is good and i can tdo what i want

Share this post


Link to post
Share on other sites

Hi!

I try the (great) work of Piccaso, but I have the same thing that Loulou.

Exist a solution, without C-language way?

Thank you in advance

:lmao:

Share this post


Link to post
Share on other sites

for the dllcall syntax look into auto3lib

for the struct try

;~ typedef struct tagMENUITEMINFO {
DllStructCreate("uint;" & _     ;~   UINT    cbSize; 
                "uint;" & _     ;~   UINT    fMask;
                "uint;" & _     ;~   UINT    fType; 
                "uint;" & _     ;~   UINT    fState; 
                "uint;" & _     ;~   UINT    wID; 
                "ptr;"  & _     ;~   HMENU   hSubMenu; 
                "ptr;" & _      ;~   HBITMAP hbmpChecked; 
                "ptr;" & _      ;~   HBITMAP hbmpUnchecked; 
                "ptr;" & _      ;~   ULONG_PTR dwItemData; 
                "ptr;" & _      ;~   LPTSTR  dwTypeData; 
                "uint;" & _     ;~   UINT    cch; 
                "ptr;")         ;~   HBITMAP hbmpItem;
                                ;~ } MENUITEMINFO, *LPMENUITEMINFO;

use getmenuiteminfo to read the info out and set it with setmenuiteminfo

sorry the link above was wrong :lmao:

@Michel Claveau

i dont know an other way...

but belief me DllCall is your friend :ph34r:


CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map

Share this post


Link to post
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