Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

perlguitest · Win32::GuiTest (Perl)

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 2444
  • Category: Perl
  • Founded: Jul 25, 2001
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Messages

Advanced
Messages Help
Messages 815 - 844 of 1818   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#815 From: "wenjie wang" <wenjie.wang@...>
Date: Mon Apr 4, 2005 6:54 am
Subject: SelComboItem command won't trigger CBN_SELCHANGE Notification
wiseagent2000
Send Email Send Email
 
I'm having problem with the manipulation of combo item selection when
sending raw message(CB_SETCURSEL) or using the new
feature "SelComboItem" command added in the release 1.50.3-ad.  Both
approaches don't behave the same as a real user selecting an item from
a combo box.

When a real user make a selection from the combo box, a notification
(CBN_SELCHANGE) is sent, but the GUITEST32 will only make the change
to the current selected item, but won't be triggering the windows
notification message.  I guess it works fine for most of the cases,
except mine;-)  I have more than one combo boxes, the contents of 2nd
combo depending on the selected item of 1st combo.  What I'm doing
inside the application is to handle the CBN_SELCHANGE notification of
1st combo and depending on what's being selected, I'll populate the
contents of 2nd combo box.  As the CBN_SELCHANGE is not sent, my
application behaved different when using GUITEST and failed my test
case;(

Any suggestions?

#816 From: x shri <x_shri420@...>
Date: Mon Apr 4, 2005 6:51 am
Subject: IE ActiveX setttings
x_shri420
Send Email Send Email
 
Hi All,
  Can anyone point me to resources/scripts which will
be helpfull in controling settings of
IE->Options->Security->ActiveX stuff

Thnx in advance,
Shri



__________________________________
Yahoo! Messenger
Show us what our next emoticon should look like. Join the fun.
http://www.advision.webevents.yahoo.com/emoticontest

#817 From: "pkaluski" <pkaluski@...>
Date: Mon Apr 4, 2005 7:39 am
Subject: Re: SelComboItem command won't trigger CBN_SELCHANGE Notification
pkaluski
Send Email Send Email
 
--- In perlguitest@yahoogroups.com, "wenjie wang" <wenjie.wang@d...>
wrote:
>
>
> I'm having problem with the manipulation of combo item selection
when
> sending raw message(CB_SETCURSEL) or using the new
> feature "SelComboItem" command added in the release 1.50.3-ad.
Both
> approaches don't behave the same as a real user selecting an item
from
> a combo box.
>
> When a real user make a selection from the combo box, a notification
> (CBN_SELCHANGE) is sent, but the GUITEST32 will only make the
change
> to the current selected item, but won't be triggering the windows
> notification message.  I guess it works fine for most of the cases,
> except mine;-)  I have more than one combo boxes, the contents of
2nd
> combo depending on the selected item of 1st combo.  What I'm doing
> inside the application is to handle the CBN_SELCHANGE notification
of
> 1st combo and depending on what's being selected, I'll populate the
> contents of 2nd combo box.  As the CBN_SELCHANGE is not sent, my
> application behaved different when using GUITEST and failed my test
> case;(
>
> Any suggestions?


Hmm...
Good point. It behaves as expected. CBN_SELCHANGE documentation on
MSDN says that it is not triggered when CB_SETCURSEL is used.
But during the human interaction with GUI application, in 99.99%
CBN_SELCHANGE will be sent. This may lead to unexpected failures of
automated tests.
The workaround could be calling SelComboItem and then SendKeys
( "arrow up" "arrow down" ) (so the net effect is "no change").

The issue should be logged in the bugs or issues database on
project's site on the source forge. The best person to do it would be
Wenjie (as a discoverer)

-Piotr

#818 From: "Dennis K. Paulsen" <ctrondlpaulsden@...>
Date: Thu Apr 7, 2005 1:02 am
Subject: Re: How to show desktop?
ctrondlpaulsden
Send Email Send Email
 
You could use the following that simulates a Win-d

SendRawKey(VK_LWIN, 0);
SendKeys('d');
SendRawKey(VK_LWIN, KEYEVENTF_KEYUP)

Regards,
Dennis K. Paulsen

--- In perlguitest@yahoogroups.com, liu xiaolei <guguqiaqia@y...>
wrote:
>
>
>
> Hi,
>  I use GUI perl . How to show desktop with function or
> other methods?
>
> thanks a lot!
>
> guguqiaqia
>
>
> _________________________________________________________
> Do You Yahoo!?
> 150ÍòÇúMP3·è¿ñËÑ£¬´øÄú´³ÈëÒôÀÖµîÌÃ
> http://music.yisou.com/
> ÃÀÅ®Ã÷ÐÇÓ¦Óо¡ÓУ¬ËѱéÃÀͼ¡¢ÑÞͼºÍ¿áͼ
> http://image.yisou.com
> 1G¾ÍÊÇ1000Õ×£¬ÑÅ»¢µçÓÊ×ÔÖúÀ©ÈÝ£¡
>
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event
/mail_1g/

#819 From: "Dennis K. Paulsen" <ctrondlpaulsden@...>
Date: Thu Apr 7, 2005 1:07 am
Subject: Re: Hi There all
ctrondlpaulsden
Send Email Send Email
 
Hello,

The best source of information is the ReadMe file and example
scripts; which are available at
http://sourceforge.net/projects/winguitest

It is also recommended that you first learn a bit about Perl
(www.perl.org), since this is a Perl module.

If you have a specific question, please let me know.


Regards,
Dennis K. Paulsen

--- In perlguitest@yahoogroups.com, "roy_biswadip"
<roy_biswadip@y...> wrote:
>
>
>    I have started to learn the usage of Win32::GuiTest for Gui
> Testing. I need serious help from you guys.

#820 From: "evenprime" <evenprime@...>
Date: Sun Apr 17, 2005 3:24 pm
Subject: Tabbed navigation question
evenprime
Send Email Send Email
 
I'm useing win32 guitest to automate some unscriptable applications
(not something I wrote, no OLE or WMI as options)

I'm having trouble with tabbed navigation.  Where buttons can be
controlled ala:

    PushChildButton($fgWindow, "^OK\$");

Tabs seem to have to be clicked with coordinates relative to the
entire screen, and I can't always guarantee the window I need to
interact with will open in the same place everytime.

Is their a way to get those coordinates relative to the active window?
   Better yet, is their a way to determine which tab to activate
without coordinate based mouse clicks?

#821 From: "Chris Hilton" <chilton@...>
Date: Mon Apr 18, 2005 3:13 pm
Subject: RE: Tabbed navigation question
chris_hilton
Send Email Send Email
 
You can use ClientToScreen and ScreenToClient to convert coordinates
back and forth in Win32::GuiTest 1.50.3-ad from CPAN.

($x,$y) = ScreenToClient(hwnd,x,y)
($x,$y) = ClientToScreen(hwnd,x,y)

There are also the following functions to work with tabs:

GetTabItems($window)
     Returns a list of a tab control's labels.

SelTabItem($window, $idx)
     Selects a tab based off an index (zero-based).

SelTabItemText($window, $txt)
     Selects a tab based off text label (case insensitive).

IsTabItemSel($window, $txt)
    Determines if the specified tab item is selected.

Hope some of that helps.

Chris Hilton

-----Original Message-----
From: perlguitest@yahoogroups.com [mailto:perlguitest@yahoogroups.com]
On Behalf Of evenprime
Sent: Sunday, 17 April, 2005 10:24
To: perlguitest@yahoogroups.com
Subject: [perlguitest] Tabbed navigation question




I'm useing win32 guitest to automate some unscriptable applications (not
something I wrote, no OLE or WMI as options)

I'm having trouble with tabbed navigation.  Where buttons can be
controlled ala:

    PushChildButton($fgWindow, "^OK\$");

Tabs seem to have to be clicked with coordinates relative to the entire
screen, and I can't always guarantee the window I need to interact with
will open in the same place everytime.

Is their a way to get those coordinates relative to the active window?
   Better yet, is their a way to determine which tab to activate without
coordinate based mouse clicks?









Yahoo! Groups Links

#822 From: "alex_73_1" <alex_73_1@...>
Date: Wed Apr 20, 2005 7:09 pm
Subject: Getting content from ListView32 window
alex_73_1
Send Email Send Email
 
Hi,

Great module, I started using it and run into slight problem.
I'm mapping and unmapping drives in WinXP, so when I get to
disconnect network drive window, it consist of ListView32
window with list of currently connected drives. After
executing GetListViewContets on this window, I get back a list with 5
items, which is the correct number of drives currently mapped, but
when I try to print out contents of the items, it just print blanks.
So I can't figure out which disk to select with SelListViewItem.

Here is the piece of code I use:

##...bunch of code to get the window.....
@disconnect_drive_window = FindWindowLike(0, "Disconnect Network
Drives");
@ndrives_list_window = FindWindowLike($disconnect_drive_window
[0], "Network Drives", "SysListView32", DRIVES_LIST_BOX);
my @lst = GetListViewContents($ndrives_list_window[0]);
for (@lst) {
    print "[$_]\n";
}

Any help would be appriciated...

Also as a side note, if I want to help with the development or
contribute to the development who do I ask?:)

#823 From: "Philip Zembrod" <Philip.Zembrod@...>
Date: Tue Apr 19, 2005 10:32 am
Subject: Re: Tabbed navigation question
pzembrod
Send Email Send Email
 
> Date: Sun, 17 Apr 2005 15:24:29 -0000
> From: "evenprime" <evenprime@...>
> Subject: Tabbed navigation question
>
> I'm useing win32 guitest to automate some unscriptable applications
> (not something I wrote, no OLE or WMI as options)
>
> I'm having trouble with tabbed navigation.  Where buttons can be
> controlled ala:
>
>    PushChildButton($fgWindow, "^OK\$");
>
> Tabs seem to have to be clicked with coordinates relative to the
> entire screen, and I can't always guarantee the window I need to
> interact with will open in the same place everytime.
>
> Is their a way to get those coordinates relative to the active window?
>   Better yet, is their a way to determine which tab to activate
> without coordinate based mouse clicks?

You could try to send a TCM_SETCURSEL message to the tab control's handle.
TCM_SETCURSEL takes the 0-based index of the desired tab item as WParam
and 0 as LParam and should select the tab item.

Regards
Philip

#824 From: "mustard99122" <dale_bertrand@...>
Date: Thu Apr 21, 2005 12:54 pm
Subject: A SysListView32 control with multiple columns
mustard99122
Send Email Send Email
 
I'm having a problem getting the contents of a SysListView32 with
multiple columns using GetListViewContents.  I noticed that a few
other people are also having problems.  Is this feature on anyone's
todo list?  It would be well worth my time to implement this feature,
but don't have any experience with the Windows API.

Has anyone had any luck getting data from the SysHeader32 control?

Anyone have a work-around?

Thanks for the great tool!

- Dale

#825 From: "keremyaman2004" <keremyaman2004@...>
Date: Thu Apr 21, 2005 2:04 pm
Subject: installation with ActivePerl5.8
keremyaman2004
Send Email Send Email
 
Hi I have Active Perl5.8 on a WinXP professional setup. I am trying to
install the package but when I follow the instructions it tells me
that it cannot find the target to install.
Would this be because of a difference between ActivePerl5.6 and 5.8
possibly?
Thanks very much.

#826 From: "keremyaman2004" <keremyaman2004@...>
Date: Thu Apr 21, 2005 2:24 pm
Subject: installation (revised)
keremyaman2004
Send Email Send Email
 
To be exact the error is:
Error: no suitable installation target found for pacakge Win32-GuiTest

I am not an expert with ppm actually the first time I am using it. Any
suggestions would be greatly appreciated.

#827 From: "pkaluski" <pkaluski@...>
Date: Tue Apr 26, 2005 8:28 am
Subject: First draft of Documentation is available
pkaluski
Send Email Send Email
 
Hi,
Check the link
http://www.piotrkaluski.com/files/winguitest/docs/index.html
It is far from complete. But I believe it offers some ordering and a
framework for further development.
Help would be greatly appreciated. Probably the first thing to do
would be to make sure that each function is documented. Have a look at
what is documented and please send me sections for non-documented
functions or improvements of already documented functions (like
examples).

Any constructive comments are more then welcome.

-Piotr

#828 From: "aaton94546" <aaton.a@...>
Date: Tue Apr 26, 2005 12:43 pm
Subject: Question about isKeyPressed
aaton94546
Send Email Send Email
 
Hello,
I'm having some problems with the isKeyPressed function. I've tried
the example eg/keypress from cpan.

Here's the url:
http://search.cpan.org/dist/Win32-GuiTest/Examples.pm#eg/keypress.pl

Everthing works fine first. It recognizes the keys ESC F5 F11 F12, but
then the key A is just ignored. Nothing happens.
Does anyone know how to use isKeyPressed with normal letters?

Thanks a lot for your help. I appreciate it.

alex a

#829 From: "vishal_kharge" <vishal_kharge@...>
Date: Fri Apr 29, 2005 12:10 pm
Subject: Help Required: On system function
vishal_kharge
Send Email Send Email
 
Hello ,

I am getting the error "Could not find Paint" when I run the
following script:

         use strict;

          use Win32::GuiTest qw(:ALL);

          system("start mspaint");

         sleep 2;
         my @windows = FindWindowLike(0, "Paint", "");
         die "Could not find Paint\n" if not @windows;


I am using the ActivePerl for running the scripts.

I think the statement: system("start mspaint"); is not getting
executed.

What may be the reason and how should I solve this problem.

Regards,
Vishal Kharge

#830 From: "pkaluski" <pkaluski@...>
Date: Fri Apr 29, 2005 12:22 pm
Subject: Re: Help Required: On system function
pkaluski
Send Email Send Email
 
I would try giving it more time. Try to sleep for 10 seconds (instead
of 2) and see if it helps
-Piotr




--- In perlguitest@yahoogroups.com, "vishal_kharge"
<vishal_kharge@y...> wrote:
> Hello ,
>
> I am getting the error "Could not find Paint" when I run the
> following script:
>
>         use strict;
>
>          use Win32::GuiTest qw(:ALL);
>
>          system("start mspaint");
>
>         sleep 2;
>         my @windows = FindWindowLike(0, "Paint", "");
>         die "Could not find Paint\n" if not @windows;
>
>
> I am using the ActivePerl for running the scripts.
>
> I think the statement: system("start mspaint"); is not getting
> executed.
>
> What may be the reason and how should I solve this problem.
>
> Regards,
> Vishal Kharge

#831 From: "Dennis K. Paulsen" <ctrondlpaulsden@...>
Date: Sat Apr 30, 2005 3:05 am
Subject: Re: Help Required: On system function
ctrondlpaulsden
Send Email Send Email
 
Since you doubt system("start mspaint"); is getting executed, make
sure you can go to Start > Run and execute mspaint.  On Windows ?
and above it will be called "pbrush" instead.

As a side note, it is best practice to use WaitWindowLike() and if
you still need to account for any user delays in "testing" you
can "add" the sleep statement following the WaitWindowLike() call.

Also, if problem persists check the return value of the system and
print out the contents of the $! builtin variable to find more
information.


Regards,
Dennis K. Paulsen


--- In perlguitest@yahoogroups.com, "vishal_kharge"
<vishal_kharge@y...> wrote:
> Hello ,
>
> I am getting the error "Could not find Paint" when I run the
> following script:
>
>         use strict;
>
>          use Win32::GuiTest qw(:ALL);
>
>          system("start mspaint");
>
>         sleep 2;
>         my @windows = FindWindowLike(0, "Paint", "");
>         die "Could not find Paint\n" if not @windows;
>
>
> I am using the ActivePerl for running the scripts.
>
> I think the statement: system("start mspaint"); is not getting
> executed.
>
> What may be the reason and how should I solve this problem.
>
> Regards,
> Vishal Kharge

#832 From: "Dennis K. Paulsen" <ctrondlpaulsden@...>
Date: Sat Apr 30, 2005 3:08 am
Subject: Re: Test application
ctrondlpaulsden
Send Email Send Email
 
Hello,

I tried this application a few weeks ago and a Windows message came
up stating I was missing a required DLL....  Therefore, we might
want to think about dynamically loading the various controls
instead.   That way, if a control can not be created we can act
accordingly..

Regards,
Dennis K. Paulsen

--- In perlguitest@yahoogroups.com, "pkaluski" <pkaluski@p...> wrote:
>
> Hi,
> Some time ago I mentioned that it would be good to have a test
> application, which would be created only for being a target for
tested
> WGT functions.
> I have finally managed to create it. You can download a zip file
from
> here www.piotrkaluski.com/tools/winguitest/win32-guitest_1.50.3-
nt.zip
> (nt stands for "new tests"). You will find 2 *.t files there - one
for
> testing windowing and identification functions, and one for testing
> controls. A test suite is by no means complete and finished. It
also
> contains executable, which is an application which hosts controls
used
> for tests (winguitest.exe). This application should be placed in
the
> same directory from which you launch "nmake test".
>
> Why do I think it is worth to switch to testing on such specialy
> crafted application?
> The main reason is ease of maintainance. It is quaranteed that the
> application will always use the same controls and will have the
same
> windows hierarchy. It will change only if we want it. So if we
write
> tests for Win2K, we have big chances our tests will pass for WinXP,
> WinNT, Win98. If we use M$ tools like notepad or calculator, we
never
> know what would be window hierarchy in the next release of the
> system.
> It also gives us better control on what we test since we can design
> the test application in a way that it will help in more
sophisticated
> tests.
>
> I still consider tests of notepad or calculator really important.
But
> they should not be a part of core set of unit tests, because they
will
> require additional maintance and they will be posibly breaking
after
> every release of M$ Windows. I thing these kind of tests should go
to
> example directory.
>
> And what do you think?
>
> -Piotr

#833 From: "Dennis K. Paulsen" <ctrondlpaulsden@...>
Date: Sat Apr 30, 2005 3:10 am
Subject: Re: Working with custom controls
ctrondlpaulsden
Send Email Send Email
 
Without being able to examine this module it is hard to tell.  If it
responds to standard windows messages, existing functions may work.
Several variables to deal with here, so without more details and a
control to work with, we won't have much luck.


Regards,
Dennis

--- In perlguitest@yahoogroups.com, Yoni <yoni_benshlosh@y...> wrote:
>
> Hey,
>
> i want to automate a 3270 Emulator called "IBM Personal
Communications".
> it mainly contains a certain (custom?!) Control that i dont know
how to obtain its contents.
>
> (it contains the 3270 text recieved from the remote host -
> somewhat like a command prompt window).
>
> this is surely can be done, since i know of an automation
application ("Composia")
> that does that exact thing, and is NOT using OCR techniques.
>
> can anybody please direct me on where & how should this be done ?
> what functions of Win32API should i read about ?
> and if there is some documentation on how it's been done on other
places,
> i would really appriciate,  as this can be a nice contribution to
the GuiTest module.
>
> Thanks alot
> Yoni
>
>
>
> ---------------------------------
> Do you Yahoo!?
>  Yahoo! Small Business - Try our new resources site!
>
> [Non-text portions of this message have been removed]

#834 From: "Dennis K. Paulsen" <ctrondlpaulsden@...>
Date: Sat Apr 30, 2005 3:16 am
Subject: Re: How about Press Ctrl key before next operate?
ctrondlpaulsden
Send Email Send Email
 
You can try:

SendRawKey(VK_LCONTROL, KEYEVENTF_EXTENDEDKEY); # press
SendRawKey(VK_LCONTROL, KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP); #
release

Regards,
Dennis

--- In perlguitest@yahoogroups.com, liu xiaolei <guguqiaqia@y...>
wrote:
>
> hi,
>   How about  Press Ctrl key?
>   I write a function ,please look this:
>
> # 1 start x,2 start y,3 end x,4 end y
> sub CtrlClickTwo
> {
>     MouseMoveAbsPix($_[0],$_[1]);
>     SendMouse("{LEFTCLICK}");
>     sleep 1;
>     SendRawKey(VK_CONTROL,0);
>     sleep 1;
>     MouseMoveAbsPix($_[2],$_[3]);
>     SendMouse("{LEFTCLICK}");
>     sleep 1;
>     SendRawKey(VK_CONTROL,KEYEVENTF_KEYUP);
> }
>  But when i use it,Ctrl key cann't press down.
>  Why ?
>
>   Thanks,
>   Liu xiaolei
>
> _________________________________________________________
> Do You Yahoo!?
> 150ÍòÇúMP3·è¿ñËÑ£¬´øÄú´³ÈëÒôÀÖµîÌÃ
> http://music.yisou.com/
> ÃÀÅ®Ã÷ÐÇÓ¦Óо¡ÓУ¬ËѱéÃÀͼ¡¢ÑÞͼºÍ¿áͼ
> http://image.yisou.com
> 1G¾ÍÊÇ1000Õ×£¬ÑÅ»¢µçÓÊ×ÔÖúÀ©ÈÝ£¡
>
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event
/mail_1g/

#835 From: "Dennis K. Paulsen" <ctrondlpaulsden@...>
Date: Sat Apr 30, 2005 3:18 am
Subject: Re: Getting content from ListView32 window
ctrondlpaulsden
Send Email Send Email
 
I/We'll need to look at this issue.  If you have the time to
document the bug at http://sourceforge.net/projects/winguitest
please do so..


Thanks,
Dennis

--- In perlguitest@yahoogroups.com, "alex_73_1" <alex_73_1@y...>
wrote:
>
>
> Hi,
>
> Great module, I started using it and run into slight problem.
> I'm mapping and unmapping drives in WinXP, so when I get to
> disconnect network drive window, it consist of ListView32
> window with list of currently connected drives. After
> executing GetListViewContets on this window, I get back a list
with 5
> items, which is the correct number of drives currently mapped, but
> when I try to print out contents of the items, it just print
blanks.
> So I can't figure out which disk to select with SelListViewItem.
>
> Here is the piece of code I use:
>
> ##...bunch of code to get the window.....
> @disconnect_drive_window = FindWindowLike(0, "Disconnect Network
> Drives");
> @ndrives_list_window = FindWindowLike($disconnect_drive_window
> [0], "Network Drives", "SysListView32", DRIVES_LIST_BOX);
> my @lst = GetListViewContents($ndrives_list_window[0]);
> for (@lst) {
>    print "[$_]\n";
> }
>
> Any help would be appriciated...
>
> Also as a side note, if I want to help with the development or
> contribute to the development who do I ask?:)

#836 From: "Dennis K. Paulsen" <ctrondlpaulsden@...>
Date: Sat Apr 30, 2005 3:19 am
Subject: Re: A SysListView32 control with multiple columns
ctrondlpaulsden
Send Email Send Email
 
This issue will need to be looked at.  If you have a moment to
document it at http://sourceforge.net/projects/winguitest, please do
so.  As far as SysHeader32, it should be a walk-in-the-park, time
permitting; which it hasn't been for me as of late.


Regards,
Dennis

--- In perlguitest@yahoogroups.com, "mustard99122"
<dale_bertrand@y...> wrote:
>
>
>
> I'm having a problem getting the contents of a SysListView32 with
> multiple columns using GetListViewContents.  I noticed that a few
> other people are also having problems.  Is this feature on anyone's
> todo list?  It would be well worth my time to implement this feature,
> but don't have any experience with the Windows API.
>
> Has anyone had any luck getting data from the SysHeader32 control?
>
> Anyone have a work-around?
>
> Thanks for the great tool!
>
> - Dale

#837 From: "Dennis K. Paulsen" <ctrondlpaulsden@...>
Date: Sat Apr 30, 2005 3:21 am
Subject: Re: installation with ActivePerl5.8
ctrondlpaulsden
Send Email Send Email
 
Which version of the module are you trying to install?  Latest
versions are usually built around 5.8.  If your not already, you may
have to download the zip from
http://sourceforge.net/projects/winguitest and install it locally
using ppm.


Regards,
Dennis

--- In perlguitest@yahoogroups.com, "keremyaman2004"
<keremyaman2004@y...> wrote:
>
>
> Hi I have Active Perl5.8 on a WinXP professional setup. I am
trying to
> install the package but when I follow the instructions it tells me
> that it cannot find the target to install.
> Would this be because of a difference between ActivePerl5.6 and
5.8
> possibly?
> Thanks very much.

#838 From: "Dennis K. Paulsen" <ctrondlpaulsden@...>
Date: Sat Apr 30, 2005 3:23 am
Subject: Re: Question about isKeyPressed
ctrondlpaulsden
Send Email Send Email
 
This is probably due to case-sensitivity, try IsKeyPressed("a")
instead.


Regards,
Dennis

--- In perlguitest@yahoogroups.com, "aaton94546" <aaton.a@w...>
wrote:
>
>
> Hello,
> I'm having some problems with the isKeyPressed function. I've tried
> the example eg/keypress from cpan.
>
> Here's the url:
> http://search.cpan.org/dist/Win32-
GuiTest/Examples.pm#eg/keypress.pl
>
> Everthing works fine first. It recognizes the keys ESC F5 F11 F12,
but
> then the key A is just ignored. Nothing happens.
> Does anyone know how to use isKeyPressed with normal letters?
>
> Thanks a lot for your help. I appreciate it.
>
> alex a

#839 From: "pkaluski" <pkaluski@...>
Date: Sun May 1, 2005 6:11 am
Subject: Re: Test application
pkaluski
Send Email Send Email
 
--- In perlguitest@yahoogroups.com, "Dennis K. Paulsen"
<ctrondlpaulsden@y...> wrote:
> Hello,
>
> I tried this application a few weeks ago and a Windows message came
> up stating I was missing a required DLL....  Therefore, we might
> want to think about dynamically loading the various controls
> instead.   That way, if a control can not be created we can act
> accordingly..
>
> Regards,
> Dennis K. Paulsen
>

Which dll is missing? On which version of Windows?

-Piotr

#840 From: "Dennis K. Paulsen" <ctrondlpaulsden@...>
Date: Sun May 1, 2005 4:55 pm
Subject: Re: Test application
ctrondlpaulsden
Send Email Send Email
 
Well for me it was Windows XP and one of the MFC*.DLLs.  I had no
development tools installed on this machine, so it won't have the
numerous DLLs that come with VS...  If you could give me an updated
link to your test application, I can give you the specific details.
I can also try it on a Windows 95 box.

Regards,
Dennis

--- In perlguitest@yahoogroups.com, "pkaluski" <pkaluski@p...> wrote:
> --- In perlguitest@yahoogroups.com, "Dennis K. Paulsen"
> <ctrondlpaulsden@y...> wrote:
> > Hello,
> >
> > I tried this application a few weeks ago and a Windows message
came
> > up stating I was missing a required DLL....  Therefore, we might
> > want to think about dynamically loading the various controls
> > instead.   That way, if a control can not be created we can act
> > accordingly..
> >
> > Regards,
> > Dennis K. Paulsen
> >
>
> Which dll is missing? On which version of Windows?
>
> -Piotr

#841 From: "Michael Rabinovitz" <rabinov@...>
Date: Mon May 2, 2005 3:44 am
Subject: Re: Help Required: On system function
rabinov
Send Email Send Email
 
Vishal,
   Make sure you can launch mspaint from the command prompt.  If you
can't, you'll have to adjust your path.  Alternatively, you could
adjust your scripts 'system' command to:
    system("start C:\\windows\\mspaint");
(you might have to make alterations for your configuration) and see
if your script now runs.

Good luck,
Mike

--- In perlguitest@yahoogroups.com, "vishal_kharge"
<vishal_kharge@y...> wrote:
> Hello ,
>
> I am getting the error "Could not find Paint" when I run the
> following script:
>
>         use strict;
>
>          use Win32::GuiTest qw(:ALL);
>
>          system("start mspaint");
>
>         sleep 2;
>         my @windows = FindWindowLike(0, "Paint", "");
>         die "Could not find Paint\n" if not @windows;
>
>
> I am using the ActivePerl for running the scripts.
>
> I think the statement: system("start mspaint"); is not getting
> executed.
>
> What may be the reason and how should I solve this problem.
>
> Regards,
> Vishal Kharge

#842 From: "alex_73_1" <alex_73_1@...>
Date: Sun May 1, 2005 6:27 pm
Subject: Re: Getting content from ListView32 window
alex_73_1
Send Email Send Email
 
Will do so tonight... Any way I can contribute to this module?

Alex.
--- In perlguitest@yahoogroups.com, "Dennis K. Paulsen"
<ctrondlpaulsden@y...> wrote:
>
> I/We'll need to look at this issue.  If you have the time to
> document the bug at http://sourceforge.net/projects/winguitest
> please do so..
>
>
> Thanks,
> Dennis
>
> --- In perlguitest@yahoogroups.com, "alex_73_1" <alex_73_1@y...>
> wrote:
> >
> >
> > Hi,
> >
> > Great module, I started using it and run into slight problem.
> > I'm mapping and unmapping drives in WinXP, so when I get to
> > disconnect network drive window, it consist of ListView32
> > window with list of currently connected drives. After
> > executing GetListViewContets on this window, I get back a list
> with 5
> > items, which is the correct number of drives currently mapped,
but
> > when I try to print out contents of the items, it just print
> blanks.
> > So I can't figure out which disk to select with SelListViewItem.
> >
> > Here is the piece of code I use:
> >
> > ##...bunch of code to get the window.....
> > @disconnect_drive_window = FindWindowLike(0, "Disconnect Network
> > Drives");
> > @ndrives_list_window = FindWindowLike($disconnect_drive_window
> > [0], "Network Drives", "SysListView32", DRIVES_LIST_BOX);
> > my @lst = GetListViewContents($ndrives_list_window[0]);
> > for (@lst) {
> >    print "[$_]\n";
> > }
> >
> > Any help would be appriciated...
> >
> > Also as a side note, if I want to help with the development or
> > contribute to the development who do I ask?:)

#843 From: Nahum Cohen <nahum.cohen@...>
Date: Sat Apr 30, 2005 12:08 pm
Subject: Re: Re: Working with custom controls
nahum_cohen_...
Send Email Send Email
 
Hi,

What you need is EHLLAPI / WinHLLAPI.

EHLLAPI is a standard programming interface which allows programmatic
access to a host emulator session. Functions are provided for reading
host screen data (such as the characters and attributes), for sending
keystrokes, and performing other emulator-related functions.

Visit the following links for more information:
http://publib.boulder.ibm.com/infocenter/pcomhelp/index.jsp?topic=/com.ibm.pcomm\
.doc/emulator_programming07.htm
http://supportweb.netmanage.com/ts_rumba/downloads/samples/samHllapi.asp
http://www.di3270.com/Products/progHLLAPI.htm




On 4/30/05, Dennis K. Paulsen <ctrondlpaulsden@...> wrote:
>
> Without being able to examine this module it is hard to tell.  If it
> responds to standard windows messages, existing functions may work.
> Several variables to deal with here, so without more details and a
> control to work with, we won't have much luck.
>
> Regards,
> Dennis
>
> --- In perlguitest@yahoogroups.com, Yoni <yoni_benshlosh@y...> wrote:
> >
> > Hey,
> >
> > i want to automate a 3270 Emulator called "IBM Personal
> Communications".
> > it mainly contains a certain (custom?!) Control that i dont know
> how to obtain its contents.
> >
> > (it contains the 3270 text recieved from the remote host -
> > somewhat like a command prompt window).
> >
> > this is surely can be done, since i know of an automation
> application ("Composia")
> > that does that exact thing, and is NOT using OCR techniques.
> >
> > can anybody please direct me on where & how should this be done ?
> > what functions of Win32API should i read about ?
> > and if there is some documentation on how it's been done on other
> places,
> > i would really appriciate,  as this can be a nice contribution to
> the GuiTest module.
> >
> > Thanks alot
> > Yoni
> >
> >
> >
> > ---------------------------------
> > Do you Yahoo!?
> >  Yahoo! Small Business - Try our new resources site!
> >
> > [Non-text portions of this message have been removed]
>
> Yahoo! Groups Links
>
>
>
>
>

#844 From: "aaton94546" <aaton.a@...>
Date: Sat Apr 30, 2005 10:21 am
Subject: Re: Question about isKeyPressed
aaton94546
Send Email Send Email
 
That doesn't either seem to work. I installed the Win32::GuiTest
module with ppm from the ActiveState Repository. Could this be reason
why it's not working? The files for the ppm may be out of date in the
ActiveState Repository.

Regards,
alex


--- In perlguitest@yahoogroups.com, "Dennis K. Paulsen"
<ctrondlpaulsden@y...> wrote:
>
> This is probably due to case-sensitivity, try IsKeyPressed("a")
> instead.
>
>
> Regards,
> Dennis
>
> --- In perlguitest@yahoogroups.com, "aaton94546" <aaton.a@w...>
> wrote:
> >
> >
> > Hello,
> > I'm having some problems with the isKeyPressed function. I've
tried
> > the example eg/keypress from cpan.
> >
> > Here's the url:
> > http://search.cpan.org/dist/Win32-
> GuiTest/Examples.pm#eg/keypress.pl
> >
> > Everthing works fine first. It recognizes the keys ESC F5 F11 F12,
> but
> > then the key A is just ignored. Nothing happens.
> > Does anyone know how to use isKeyPressed with normal letters?
> >
> > Thanks a lot for your help. I appreciate it.
> >
> > alex a

Messages 815 - 844 of 1818   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help