Jump to content

Pick text from a txt. file


 Share

Recommended Posts

Hello Community,

 

I'm sorry if this is the wrong section but I'm new here so please bear with me. 

I already have a text file with random words (with random I mean words that exist but make no sense; e.g. delicious phone yellow zitella...) and I want to paste it to a specific site. And I already have organized the text file (15 words per row). So the bot (pretty sure a while function) should choose the first line -> paste it to the site and then close the site (no need a code for that cuz I've one) and then choose the second line-> paste it to the site and then close the site and so on. Could anyone help me out?

 

Thanks in advance!

Link to comment
Share on other sites

9 minutes ago, FrancescoDiMuro said:

Hi @deleyara, and welcome to the AutoIt forums :welcome:
Post the code so we can help you :)

While 1
ShellExecute("firefox.exe")
AutoItSetOption("MouseCoordMode", 0)

WinWait("Google - Mozilla Firefox")
WinActivate("Google - Mozilla Firefox")
MouseClick("primary", 501, 60, 1, 0)
Send("{DELETE}")
Send("http://REMOVED DUE PRIVACY")
Send("{ENTER}")

WinWait("REMOVED DUE PRIVACY")
WinActivate("REMOVED DUE PRIVACY")
MouseClick("primary", 602, 487, 1, 0)
Send("REMOVED DUE PRIVACY")
Sleep(3750)
MouseClick("primary", 1092, 587, 1, 0)
Sleep(3000)
Send ( "!{F4}")
WEnd

So this would only send one text endless time but my problem is above.

Link to comment
Share on other sites

  • Moderators

deleyara,

And just why do you want to send these "words" to this "REMOVED DUE PRIVACY" site one at a time?

M23

P.S. And just to be absolutely clear - this is the Mod team determining the legality of the thread, so everyone else please keep out.

 

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

  • Moderators

FrancescoDiMuro,

No probs - I guessed that was what had happened.

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

7 minutes ago, Melba23 said:

deleyara,

And just why do you want to send these "words" to this "REMOVED DUE PRIVACY" site one at a time?

M23

P.S. And just to be absolutely clear - this is the Mod team determining the legality of the thread, so everyone else please keep out.

 

I'm testing a site. So if you post words within a specific time period then you'll be asked to complete a captcha. I tested it with posting the same word endless time but now I want to test it with random words from a text file like I've already said above.

Link to comment
Share on other sites

  • Moderators

deleyara,

So this is to get around a CAPTCHA?

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

6 minutes ago, Melba23 said:

deleyara,

So this is to get around a CAPTCHA?

M23

Yes. The first attempt has failed and now I'm trying it with random words (the way like I've said above). It would be nice if you could stop asking your nosy questions.

Link to comment
Share on other sites

  • Moderators

deleyara,

Quote

It would be nice if you could stop asking your nosy questions

But if you look at the icon under my avatar you will see that is my job here! And with that remark you have used up all of the flex I was prepared to show you.

Please read the Forum rules before posting again - you will see that we do not support bypassing security measures such as CAPTCHAs - thread locked.

M23

 

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...