Sign in to follow this  
Followers 0
Mark100

Enter names from a txt.file into a mask on a homepage

17 posts in this topic

#1 ·  Posted (edited)

Hi there,

i know you support but don't like to do all work alone for someone, and i really tried alone but did not work.

I have to send mails to certain people once a month and since this are 100+, a script would help me very much. I have one, a long time ago someone helped me, but i do not reach this person anymore. What i have is entering the topic and the text into the email mask:

HotKeySet("{ESC}", "_Exit") ; Make a hotkey to exit the script ; Very important when u are using MouseMove, MouseClick etc. in a loop
HotKeySet("{^}", "_work") ; Look at the Send command in the help file for keys
Global $work = False ; Here we say $work = false, so the bot has stopped as default
While 1     
    Sleep(1000) ; Use a sleep in the main loop for not getting a high CPU
WEnd
Func _work()     
    $work = Not $work   ; It's basicly something like: If $work = False Then $work = True                 
    ; Also visa versa     

    While $work
        MouseMove(630, 485, 10);moving mouse to position
        MouseClick("left")
        Send("PI")
        MouseMove(630, 625, 10);moving mouse to position
        MouseClick("left")
        Send("^v")
       MouseMove(630, 700, 10)
        Mouseclick("left")
        Mousemove(540, 420, 10)
        Mouseclick("left")
        mousemove(630, 455, 10)
        Mouseclick("left")
        Sleep(100000000000000)
        
     WEnd

EndFunc

Func _Exit()     
    Exit
    
EndFunc

 

Most parts of this macro i do not understand myself, i played around and googled and what it does now is entering a topic(the "PI" thing, i can edit myself then) and a text from the clipboard(the "^v"-thing) into the email-formular and it even presses the SEND-button.

Only the names i have to enter myself.

All i miss now is a part in this macro, that reads the names of the people from a txt.file and enters it in the first mask, above the topic-mask.

The name of this file would be:  C:UsersMarkusDesktoptestwi.txt

Can you complete my script please  ? I found another macro in your forums from a guy that had the same problem but it was the autoit-version, not autoit3..did not work, i just fetched it at the macro above.

Ah well ;)

Edited by Mark100

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Welcome to AutoIt and the forum!

Which program (which mail client) do you try to automate? Outlook by any chance?

Edited by water

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

BTW: Could you please enclose your code in
[ autoit][ /autoit]
(please remove the space after [) tags? This enhances readability of your code.

Edited by water

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Thanks for the quick answer. Code is enclosed and to answer your question: Unfortunately it's not outlook, it is only a email mask in a browsergame. It has 3 fields, the first is for the name, the second is topic and then a bigger field for the text.

Share this post


Link to post
Share on other sites

Can you please elaborate on what you mean by "browsergame"?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Wurzelimperium is it called, you know it ?

Share this post


Link to post
Share on other sites

Looks like you have missed to read the forum rules. A link can be found in the lower right corner of every page.

We do not support "Launching, automation or script interaction with games or game servers, regardless of the game."


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

But its for the email, not for the game, the problem is just i need a script-part, that reads out names from a text file and inserts into a mask, i mean this mask could be anywhere. i just mentioned "game" and now all help is gone and dead ? i dont want to damage someone, just make it easier to send those mails i have to send from my guild.

Share this post


Link to post
Share on other sites

Lets see what the Mods say.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

I'm to openly, ever been. the other guy just said he needs the names read from a file, finish. when will i learn it

Share this post


Link to post
Share on other sites

Or if someone else reads this, we can communicate via PM, i'm not a scammer or betrayer or something. I play this game (bad word) since years and want to make this emailing easier, nothing else.

Imagine i write hundreds of emails to old, lonely ladies if that helps :bike:

Share this post


Link to post
Share on other sites

Mark100,

What are these emails that you want to send? Are they part of the game itself? Do they have an effect on how you and your "guild" play the game in real-time? :huh:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______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

 

Share this post


Link to post
Share on other sites

#13 ·  Posted (edited)

No effect on the gameplay. The emails are just communication and information, they do not help in the game or making it easier.

If you got more questions to this, please ask.

I just need a part added to my macro, that reads names from a .txt-file and enters them into a mask on a homepage, would be great if someone could help me in this.

Edited by Mark100

Share this post


Link to post
Share on other sites

Mark100,

The emails are just communication and information

While the game is ongoing? If they do not help your "guild" in the game, why are you sending them? :huh:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______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

 

Share this post


Link to post
Share on other sites

#15 ·  Posted (edited)

Because they are communication and information. The macro does not take part in this game, it just makes communication easier, M23. Would someone mind to help me with this macro ?

Edited by Mark100

Share this post


Link to post
Share on other sites

mark100,

Given your evasive, unhelpful replies it seems obvious to me that the emails are indeed intended to facilitate gameplay by your "guild" while the game is active. As a result, I have decided that the script falls under the "game interaction" prohibiton in the Forum rules (there is also a link at bottom right of each page) and so I am locking the thread. :naughty:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______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

 

Share this post


Link to post
Share on other sites

Mark100,

Telling me now that the emails are not to help your "guild" within the game is too late - your reluctance to do so earlier has resulted in the thread being locked. And your lame excuse of:

I just had no interest to answer your pompous and unimportant questions

is not going to help - the next time a Mod asks you some questions I suggest you explain fully at once. ;)

However, as you also saw fit to insult me after explaining the above in a PM I am not reopening the thread. If and when you return after your short posting holiday, you can open a new thread. But if you are asked more questions about exactly what you are doing you had best not adopt the same attitude a second time. :naughty:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______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

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0