AllExperts > VB Script 
Search      
VB Script
Volunteer
Answers to thousands of questions
 Home · More VB Script Questions · Answer Library  · Encyclopedia ·
More VB Script Answers
Question Library

Ask a question about VB Script
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Subbu
Expertise
I can answer VB Script questions which are related to Visual Basic / VBA / QTP Scripts.

Experience
8 Years

Education/Credentials
Master of Computer Applications

Awards and Honors
Established Member from QA Forums and Brainbench certification

 
   

You are here:  Experts > Computing/Technology > Basic > VB Script > Set Cursor Position

VB Script - Set Cursor Position


Expert: Subbu - 5/5/2009

Question
Hello. I am operating ISeries Access for Windows and I need
some vbscript to set the cursor to specific coordinates on
my screen when the script is ran. In this case, the
coordinates are 04/052. Thank you in advance.

Answer
Jesse,

Sorry for late reply, here is your code:

Copy this single line code and Paste to your General declarations:

Private Declare Sub SetCursorPos Lib "User32" (ByVal X As Long, ByVal Y As Long)

After that use this line where ever you want

SetCursorPos 4, 52

Subbu.

Add to this Answer   Ask a Question


 
User Agreement | Privacy Policy | Kids' Privacy Policy | Help
Copyright  © 2008 About, Inc. AllExperts, AllExperts.com, and About.com are registered trademarks of About, Inc. All rights reserved.