Thanks for the reply, but I'm still getting the usage
errors with this script, no matter how I call Hook.
With the attached file, I tried these 3 ways of
calling it:
#$win-Hook($win, WM_ENTERIDLE, \Idle($win));
#$win-Hook(WM_ENTERIDLE, \Idle($win));
Win32::GUI::Hook($win,WM_ENTERIDLE,
command that passes the $win object. when i run that
line, then i get a usage error that says only to pass
the msg and the coderef. does anyone have any idea
what's going on here?
#$win-Hook($win, WM_ENTERIDLE, \Idle($win));
Try:
$win-Hook(WM_ENTERIDLE, \Idle($win));
When called
Thanks for the reply, but I'm still getting the usage
errors with this script, no matter how I call Hook.
With the attached file, I tried these 3 ways of
calling it:
#$win-Hook($win, WM_ENTERIDLE, \Idle($win));
#$win-Hook(WM_ENTERIDLE, \Idle($win));
Win32::GUI::Hook($win,WM_ENTERIDLE,
Ariel Serbin wrote:
1. Win32::GUI::FindWindow only finds top level windows
(which is what it says in the docs.)
The docs are correct! I was thinking of FindWindowEx, which is not in
Win32::GUI.
I had to install
Win32::GuiTest to get the handle of the listview
control in the Open dialog.
Rob wrote:
Does anyone know how I could center my
Win32::GUI::GetOpenFileName dialog
box in my window
Ariel Serbin wrote:
It would be very nice to
be able to have that dialog default to the thumbnail
view.
Brian wrote:
Win32::GUI::GetOpenFileName is a hook into a Windows
system
Rob,
Thanks for that email, which was very helpful. It
seems like the callback method is the way to go with
this one, at least for me. I just spent a long time
trying to get the handle for the listview control in
the file open dialog. Here are some things that I
figured out while failing to
6 matches
Mail list logo