Jump to content

Recommended Posts

Posted (edited)

ok, so i am trying to copy a random line text from a notepad into firefox, but i just dont get why its not wroking, like whats my error?

Opt("WinTitleMatchMode", 2)
$notepad = WinGetText("noms.txt - Notepad")
$lines = StringSplit($notepad,@crlf,1)
$randomline = Random(1, $lines[0], 1)
Clipput($lines[$randomline])
winactivate("Google Accounts - Mozilla Firefox")
MouseClick("left", 232 , 408)
Clipget()

can anyone test this? and tell me if it works or not

Edited by anyways

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
×
×
  • Create New...