Windows DLLs

2 views
Skip to first unread message

retro

unread,
Dec 21, 2009, 11:15:35 PM12/21/09
to SemWare
Does anyone know how to any of the following using TSE calls to
Windows?

1) Minimize the current TSE window.

2) Switch to the next Window as if pressing <Alt><Tab>.

3) Getting the SHA-1 hash for the current file?

I am running TSE 4.4 and Windows XP Service Pack 3.

Carlo Hogeveen

unread,
Dec 22, 2009, 6:27:27 AM12/22/09
to sem...@googlegroups.com

An example of minimizing the current TSE window can be found in the WinAnim
macro, which can be downloaded from Semware:
http://www.semware.com/html/tseprofilesd.php

> -----Oorspronkelijk bericht-----
> Van: sem...@googlegroups.com [mailto:sem...@googlegroups.com] Namens
> retro
> Verzonden: dinsdag 22 december 2009 5:16
> Aan: SemWare
> Onderwerp: [TSE] Windows DLLs

retro

unread,
Dec 22, 2009, 7:15:16 PM12/22/09
to SemWare
I tried:

dll "<user32.dll>"

integer proc MinimizeWindow(
integer hWnd
) : "CloseWindow"

end

proc cpMinimizeWindow()
MinimizeWindow(GetWinHandle())
end

proc main()
cpMinimizeWindow()
end


It works; however there is an odd side-effect. Sometimes the menu bar
will have one of the menu options hightighted (as if I had pressed
Alt). The menu option that is highlighted is random and sometimes
there is no menu option highlighted. Is there a workaround?

> > I am running TSE 4.4 and Windows XP Service Pack 3.- Hide quoted text -
>
> - Show quoted text -

Carlo Hogeveen

unread,
Dec 23, 2009, 4:56:51 AM12/23/09
to sem...@googlegroups.com

I cannot reproduce that using your example, the window just minimizes.

However, TSE does have the option of assigning commands to the single <alt>
key, so you might try adding this line to the bottom of your macro to let it
overrule and react itself to the superfluous <alt> that is passed on to TSE:

<alt> NoOp()

> -----Oorspronkelijk bericht-----
> Van: sem...@googlegroups.com [mailto:sem...@googlegroups.com] Namens
> retro

> Verzonden: woensdag 23 december 2009 1:15
> Aan: SemWare
> Onderwerp: [TSE] Re: Windows DLLs

Reply all
Reply to author
Forward
0 new messages