Sign in to follow this  
Followers 0
anyways

help, dont understand my error here?

4 posts in this topic

#1 ·  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

Share this post


Link to post
Share on other sites



Try this:

;Clipget()
Send(Clipget())

Share this post


Link to post
Share on other sites

perfect, thanks

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  
Followers 0