Page 1 of 1 1
Topic Options
#189971 - 2008-10-01 06:08 PM DLL Call (Source code included)
Arend_ Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1867
Loc: Hilversum, The Netherlands
I'd like to see implementation of DLLCalls into KiX, this can have alot of added value for instance turning on and off of the QuickLaunch, or turn monitors on or off, the added value is simply too much to explain.

Apparantly people of the Windows Developer Journal wrote a DLL that allows KiX and VBS scripters to do just that. The downside being off course that one has to register this dll. But the good people who wrote this dll also included C source code, so this "could" be implemented into Kixtart and I for one would love to see this happening, here's the url to the DynaCall website.

And this is the link to the NT package and this to the 9x version.

To show some code implementing this I created the following function:
 Code:
Function ToggleQL($switch)
  Dim $WM_USER, $WMTRAY_TOGGLEQL, $objItem, $lhWnd
  $WM_USER = &400
  $WMTRAY_TOGGLEQL = ($WM_USER + 237)
  $objItem = CreateObject("DynamicWrapper")
  $=$objItem.Register("USER32.DLL", "FindWindowA", "i=ss", "f=s", "r=l")
  $=$objItem.Register("USER32.DLL", "SendMessage", "I=hlll", "f=s", "R=l")
  $lhWnd = $objItem.FindWindowA("Shell_TrayWnd", "")
  $=$objItem.SendMessage($lhWnd, $WMTRAY_TOGGLEQL, -1, $switch)
EndFunction


This function effectively enables or disables the quicklaunch bar within milliseconds.

Top
#189978 - 2008-10-02 06:31 AM Re: DLL Call (Source code included) [Re: Arend_]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4464
Loc: USA
I'll throw my vote for this if you will write a "DLL Calls for Dummies".
Top
#189999 - 2008-10-02 04:36 PM Re: DLL Call (Source code included) [Re: Allen]
Arend_ Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1867
Loc: Hilversum, The Netherlands
Done ;\)
Top
#190024 - 2008-10-05 06:19 AM Re: DLL Call (Source code included) [Re: Arend_]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4464
Loc: USA
I can't say I know anything about how hard it would be to add to kixtart, but this definitely has value. I'd really like to see it added.
Top
#190028 - 2008-10-06 08:51 AM Re: DLL Call (Source code included) [Re: Allen]
It_took_my_meds Offline
Hey THIS is FUN
*****

Registered: 2003-05-07
Posts: 273
Loc: Sydney, Australia
I vote for this as well.
Top
#207225 - 2013-05-01 04:02 PM Re: DLL Call (Source code included) [Re: It_took_my_meds]
Arend_ Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1867
Loc: Hilversum, The Netherlands
I suggested this nearly 5 years ago, still would like to see it implemented ;\)
Top
Page 1 of 1 1


Moderator:  Lonkero, ShaneEP, Jochen, Radimus, Glenn Barnas, Allen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 177 anonymous users online.
Newest Members
diefnet, Arogya, gkustra, emnipetro, Hirze
17644 Registered Users

Generated in 0.029 seconds in which 0.011 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org