|
|||
|
Hello! I am brand new to swf kit, and just getting on my feet, but I am very familiar with flash, and I used to be very familiar with win32 api programming using visual basic about a decade ago.
I am trying to recreate a program I created in VB - basically using getMousePos to assign location to a pointer struct, then using that point with WindowFromPoint - finally using SetWindowPos specifying the window just found... then setting a flag to keep that window on top of other windows, using the HWND_TOPMOST flag. Anyways, is this possible with swf kit, and is this possible for a ffish beginner? :-[ |
|
|||
|
Yes. The following code shows how to call these functions in ffish script
Code:
struct {
long x;
long y;
} POINT;
dllimport "user32.dll" stdcall Boolean GetCursorPos(POINT*);
dllimport "user32.dll" stdcall pointer WindowFromPoint(POINT);
function traceWin() {
var output = new Object;
output.value = new Struct(POINT);
GetCursorPos(output);
var hwnd = WindowFromPoint(output.value);
trace((new Window(hwnd)).caption);
}
Application.setInterval(traceWin, 1000);
|
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|