Search the web
Sign In
New User? Sign Up
perlguitest · Win32::GuiTest (Perl)
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Hold shift down while i do mouse actions   Message List  
Reply | Forward Message #1798 of 1815 |
Re: Hold shift down while i do mouse actions

--- In perlguitest@yahoogroups.com, "Brandon" <truth_addict0@...>
wrote:
>
> Anyone know how I can hold shift down while I click and drag the
> mouse? I can do the click and drag part no problem, but i'm not
sure
> how to hold shift down while i'm doing this.
>

I'm fairly new to GuiTest but I think SendRawKey will do what you
want.
The following script holds down shift while typing in Notepad:

use Win32::GuiTest qw/:ALL :VK/;

system("start notepad.exe");
sleep 1;

SendRawKey(VK_SHIFT, 0);
SendKeys "thing";
SendRawKey(VK_SHIFT, KEYEVENTF_KEYUP);

I'm sure someone else will come along and give you a better answer,
but this seems to work for me.

Cheers

Chris




Fri May 18, 2007 11:46 am

wilkinc2000
Offline Offline
Send Email Send Email

Forward
Message #1798 of 1815 |
Expand Messages Author Sort by Date

Anyone know how I can hold shift down while I click and drag the mouse? I can do the click and drag part no problem, but i'm not sure how to hold shift down...
Brandon
truth_addict0
Offline Send Email
May 18, 2007
10:16 am

Hi, Read: http://search.cpan.org/~ctrondlp/Win32-GuiTest/GuiTest.pm SendRawKey($virtualkey,$flags) Br, Pala ________________________________ From:...
Gergo Palatinszky
palatinszky
Offline Send Email
May 18, 2007
11:57 am

... sure ... I'm fairly new to GuiTest but I think SendRawKey will do what you want. The following script holds down shift while typing in Notepad: use...
Chris
wilkinc2000
Offline Send Email
May 18, 2007
12:22 pm
Advanced

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