Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Send keys and cursor move

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,35284
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Send keys and cursor move
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Send keys and cursor move - 6/9/2006 12:50:53 AM   
  Zecandyman

 

Posts: 6
Score: 0
Joined: 5/29/2006
Status: offline
what i need is a script that does the following:

Click at 188:439
type string
click 188:495
type string
click 188:534
Sleep 2000
click 638:603
Type "Control+v"
click 624:625
Sleep 2000
click 452:96
Sleep 2000

and repeat.

i tried it using macros with a program called "SCAR" aswell. it can be done with that but there was just a few minor things that stopped me. but i have no idea how to move the cursor with vbscript so if anyone could gimme a hand thanks.
 
 
Post #: 1
 
 RE: Send keys and cursor move - 6/9/2006 1:10:21 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
You cannot move the cursor with VBScript. I know that you can do it with WinBatch and you may be able to do it with AutoIt I just can't remember.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to Zecandyman)
 
 
Post #: 2
 
 RE: Send keys and cursor move - 6/9/2006 1:21:54 AM   
  ginolard


Posts: 1043
Score: 21
Joined: 8/10/2005
Status: offline
And once again the utterly brilliant NIRCMD comes to the rescue.

http://www.nirsoft.net/utils/nircmd.html

_____________________________

Author of ManagePC - http://managepc.net
AD Query Template - http://www.visualbasicscript.com/m_40609/tm.htm
Consolidated Scripting Framework - http://www.visualbasicscript.com/m_59109/tm.htm

(in reply to ebgreen)
 
 
Post #: 3
 
 RE: Send keys and cursor move - 6/9/2006 1:35:12 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
I may just be missing it, but I don't see a command in NirCmd to click the cursor. I see the move, but how would you click on a specific location?

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to ginolard)
 
 
Post #: 4
 
 RE: Send keys and cursor move - 6/9/2006 2:49:51 AM   
  kirrilian


Posts: 628
Score: 3
Joined: 3/15/2005
From:
Status: offline
is it possible to just tab between the fields you are trying to enter data into?
if so just use sendkeys to tab to where you need the data and then enter it.

_____________________________

Have you searched here ?
VBScript Fundamentals
My Site

(in reply to ebgreen)
 
 
Post #: 5
 
 RE: Send keys and cursor move - 6/9/2006 3:14:19 AM   
  Zecandyman

 

Posts: 6
Score: 0
Joined: 5/29/2006
Status: offline
i'll see if nircmd can help if not i'll try using tabs, thanks.

(in reply to kirrilian)
 
 
Post #: 6
 
 RE: Send keys and cursor move - 6/9/2006 5:36:34 AM   
  mbouchard


Posts: 1903
Score: 14
Joined: 5/15/2003
From: USA
Status: offline
AutoIT can do this, www.hiddensoft.com

_____________________________

Mike

For useful Scripting links see the Read Me First stickey!

Always remember Search is your friend.

(in reply to Zecandyman)
 
 
Post #: 7
 
 RE: Send keys and cursor move - 6/11/2006 8:03:10 PM   
  ginolard


Posts: 1043
Score: 21
Joined: 8/10/2005
Status: offline
Yeah, AutoIt is probably a better solution actually.

_____________________________

Author of ManagePC - http://managepc.net
AD Query Template - http://www.visualbasicscript.com/m_40609/tm.htm
Consolidated Scripting Framework - http://www.visualbasicscript.com/m_59109/tm.htm

(in reply to mbouchard)
 
 
Post #: 8
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Send keys and cursor move Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts