Einzelnen Beitrag anzeigen

Benutzerbild von ghost007
ghost007

Registriert seit: 31. Okt 2005
Ort: München
1.024 Beiträge
 
Delphi 7 Personal
 
#1

hilfe mit dll datei und englischem treat

  Alt 27. Feb 2007, 18:30
Hallo,
ich hab in einem entwicklungsforum für die G15 tastatur von logitech folgenden eintrag mit entsprechendem anhang gefunden:
Zitat:
FILE UPDATED at 02/09/07 1:06 AM

Hi!

Here is the API dll, usable by all programmin languages, which has following functions:

BOOL GetProductString(OUT PVOID Buffer, IN ULONG BufferLength);
--- Should give: "G15 Keyboard"

BOOL SetBgLight(IN INT value);
--- value: 0=off 1=half 2=full

BOOL SetLCDLight(IN INT value);
--- value: 0=off 1=half 2=full

BOOL SetLCDContrast(IN INT value);
--- value: the higher, the more contrast; when value exceedes 43 it is set back to 18, which is the level, the LCDMon.exe sets it to low

BOOL SetMacroKeys(IN BOOL M1, IN BOOL M2, IN BOOL M3, IN BOOL MR);
--- multiple are really possible!

INT GetLight(IN INT value);
--- value: look at values.txt

DWORD SetCallback(IN DWORD lpProc);
--- lpProc: pointer to the callback function:
--- VOID WINAPI keyProc(INT pressedKeys);
---
--- In VB: SetCallback(AddressOf(Keys_Pressed))
--- Public Sub Keys_Pressed(Keys as Long) .....


If the functions succeed, the return value is nonzero.
If the functions fails, the return value is zero. To get extended error information, call GetLastError.


I attached it and hope u can find use with it.


The values.txt showes, what to check for at the callback.
Any questions, just ask!

id2433

P.S.:- the license changed
- there is a program 'mouseLight':
M1 when left
M2 when middle
M3 when right
MR when move (with timer, that it does not flicker)
you can close it with the Hotkey [Win]+[Alt]+[M]
msgbox with keys pressed
Attatchement im anhang.

Ich werd aus dem Post einfach nicht schlau, könnt ihr mir vielleicht weiterhelfen, wie ich die dll datei verwenden kann?

Danke schonmal - Ghost007
Angehängte Dateien
Dateityp: zip lglight_765.zip (8,8 KB, 6x aufgerufen)
Christian
Es gibt möglich Dinge und unmöglich Dinge.
Für unmögliche braucht man lediglich etwas länger.
  Mit Zitat antworten Zitat