Jump to content
Sign in to follow this  
sathish

Send RIGHT arrow Key n number of times

Recommended Posts

sathish

Hi Forum,

Here is my code,

$linenum="101"
$columnnum="10"
 
mouseclick("left",481,660,1)
sleep(1000)
Send("^{F3}")
WinWaitActive("Go To Line")
ControlSend("Go To Line", "", "", $linenum)
sleep(1000)
ControlSend("Go To Line", "", "", "{ENTER}")
sleep(1000)
Send("{RIGHT && "$columnnum" &&}")

 

The problem I am facing here is i dont know how to send my Variable $columnnum in Send("{RIGHT && "$columnnum" &&}")

Simply to say i need send right arrow button n number of times, $columnnum is an Argument,

 

Please guide,

Thanks in Advance

Sathish V.

Share this post


Link to post
Share on other sites
sathish

Sorry Forum for posting this Dumb Question, I got the Answer

Send("{RIGHT " & $columnnum & "}")
 

Share this post


Link to post
Share on other sites
Edano

helpfile is your friend:

If you wish to use a variable for the count, try
    $n = 4
    Send("+{TAB " & $n & "}")

E. :)


[color=rgb(255,0,0);][font="'comic sans ms', cursive;"]FukuLeaks[/color][/font]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Similar Content

    • TrippingSync
      By TrippingSync
      Hello guys, I'm trieng to get my script to send arrow left 134 times rapidly to set the type position to a set point, I can't get this to work as {25 134} will send 25 134 times, instead of arrow left.
      here is a snippet of my code:
      Send("[url=https://google.com][color=lime][b][/b][/color][/url][right][acronym='TrippingSync is awesome!'][color=grey][sup]Hover over me[/sup][/color][/acronym][/right]") Send(25, 134) I tried several methods, but none seem to work :S
       
      Thanks in advance,
       
       
      TrippingSync
×