Copy 1st lane then paste, copy 2nd lane and paste ?

Get help with using AutoHotkey and its commands and hotkeys
MarquezPL
Posts: 2
Joined: 13 May 2017, 07:57

Copy 1st lane then paste, copy 2nd lane and paste ?

13 May 2017, 08:05

Hi, i've got stuck trying to make script copy next lane from txt file, i can copy the 1st one but idk how copy next one

so far i got this:

Code: Select all

FileReadLine, Clipboard, C:\logins\test.txt, %LineNum%
sleep 500
LineNum += 1

mousemove, 836,477
sleep 500
mouseclick, left
sleep,1000
send ^v
sleep,500
send {Tab}
sleep,500

FileReadLine, Clipboard, C:\logins\test.txt, %LineNum%
sleep 500
LineNum += 1

sleep,500
send ^v
sleep 500
send {enter}
return
But it wont take the correct lanes.
example

lane 1 = login
lane 2 = password
lane 3 = login
lane 4 = password

etc.
BoBo
Posts: 2517
Joined: 13 May 2014, 17:15

Re: Copy 1st lane then paste, copy 2nd lane and paste ?

13 May 2017, 10:21

Where do you drop the clipboards content?
And yes, you should use a Loop to extract these lines.
MarquezPL
Posts: 2
Joined: 13 May 2017, 07:57

Re: Copy 1st lane then paste, copy 2nd lane and paste ?

13 May 2017, 10:53

But where do i put Loop it?

I drop it where ever my mouse click on it (x,y)
BoBo
Posts: 2517
Joined: 13 May 2014, 17:15

Re: Copy 1st lane then paste, copy 2nd lane and paste ?

13 May 2017, 13:34

Code: Select all


#SingleInstance, Force

!c::							; each press of Alt+c will copy line after line from the inputfile to the clipboard
    Clipboard =
    counter++    
    if (counter = 1){
    Loop, read, Filename.txt	; read inputfile to detect the number of lines
      lineMax++  
      }
    FileReadLine, ClipBoard, %A_ScriptDir%\Filename.txt, %counter%      ; reading  next line
    If (counter = lineMax){												; check for last line
      counter = 0
      lineMax = 0      
      SoundBeep, 400								; make some noize!
      Return
      }    
    ToolTip % "Line " . counter . " of " lineMax	; show progress
    Sleep, 600
    Send, ^v										; paste clipboard content
    ToolTip
    Return
    
Boa sorte! :)

Return to “Ask For Help”

Who is online

Users browsing this forum: BunsenH, gecko, Google [Bot], Lloyd and 28 guests