fr.emn.win32input.juser32
Class JUser32

java.lang.Object
  extended byfr.emn.win32input.juser32.JUser32

public class JUser32
extends java.lang.Object

Useful methods from the windows API.


Method Summary
static boolean clipCursor(int x, int y, int w, int h)
           
protected static boolean ClipCursor(int x, int y, int w, int h)
           
protected static int FindWindow(java.lang.String title)
           
static int[] getClipCursor()
           
protected static int[] GetClipCursor()
           
static int getDoubleClickTime()
          Returns the double click time in milliseconds
protected static int GetDoubleClickTime()
           
static int getFrameHWND(java.awt.Frame c)
          This is a method which returns the HWND of a java Frame.
protected static int[] GetMouse()
           
static int getMouseSpeed()
          Returns the mouse speed (does not work)
static int[] getMouseThreshold()
          Returns the mouse threshold in a 2-element int array (does not work)
static void hideCursor()
          Does not work
static boolean isPresent()
           
static void main(java.lang.String[] args)
           
static void moveSystemCursor(int x, int y)
          "The cursor is a shared resource.
protected static boolean SetCursorPos(int x, int y)
           
static void showCursor()
           
protected static int ShowCursor(boolean b)
           
static boolean unclipCursor()
           
protected static boolean UnclipCursor()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

GetDoubleClickTime

protected static int GetDoubleClickTime()

GetMouse

protected static int[] GetMouse()

ShowCursor

protected static int ShowCursor(boolean b)

FindWindow

protected static int FindWindow(java.lang.String title)

SetCursorPos

protected static boolean SetCursorPos(int x,
                                      int y)

ClipCursor

protected static boolean ClipCursor(int x,
                                    int y,
                                    int w,
                                    int h)

UnclipCursor

protected static boolean UnclipCursor()

GetClipCursor

protected static int[] GetClipCursor()

isPresent

public static boolean isPresent()

getDoubleClickTime

public static int getDoubleClickTime()
Returns the double click time in milliseconds


getFrameHWND

public static int getFrameHWND(java.awt.Frame c)
This is a method which returns the HWND of a java Frame. Returns 0 if the HWND is not found, e.g. if the Frame is not showing yet.


getMouseSpeed

public static int getMouseSpeed()
Returns the mouse speed (does not work)


getMouseThreshold

public static int[] getMouseThreshold()
Returns the mouse threshold in a 2-element int array (does not work)


hideCursor

public static void hideCursor()
Does not work


moveSystemCursor

public static void moveSystemCursor(int x,
                                    int y)
"The cursor is a shared resource. A window should move the cursor only when the cursor is in its client area."


showCursor

public static void showCursor()

clipCursor

public static boolean clipCursor(int x,
                                 int y,
                                 int w,
                                 int h)

unclipCursor

public static boolean unclipCursor()

getClipCursor

public static int[] getClipCursor()

main

public static void main(java.lang.String[] args)