mervin Posted June 5, 2020 Posted June 5, 2020 I am using a tool called whatsender. Basically it allows me to customize my messages to be sent to all my clients. However, the free version have some limitations. I am unable to paste my text into the box. I have to type line by line each names and numbers of my clients. I was wondering if I can make use of Autoit to type into the box so everytime i want to send customize messages, i can just activate AutoIT to do it. Is something like this possible?
careca Posted June 5, 2020 Posted June 5, 2020 Yes. It's the function "Send" You can make a small script that does a clipget() which takes whatever is in the clipboard, and then send, to write all that down. If needed, you can even limit the ammout of chars per line. Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe
mervin Posted June 5, 2020 Author Posted June 5, 2020 So, i did a bit of learning and found this code. HotKeySet("+!h", "SendHi") While(1) Sleep(100) WEnd Func SendHi() Send("Abdul Latiff,12345678{ENTER}Joseph,12345678{ENTER}Ahmad,12345678") EndFunc So whenever i press alt shift H. it will paste it in. But, i have all the names and numbers in a text file in this format name1,124 name2,1234 name3,1234 And i have about 300 names. Is there a way to let it extract from the .txt files?
mervin Posted June 5, 2020 Author Posted June 5, 2020 Oh. Clipget is much better idea! How do i modify the above to do it from Clipget?
mervin Posted June 5, 2020 Author Posted June 5, 2020 3 minutes ago, careca said: Yes. It's the function "Send" You can make a small script that does a clipget() which takes whatever is in the clipboard, and then send, to write all that down. If needed, you can even limit the ammout of chars per line. Oh. Clipget is much better idea!How do i modify the above to do it from Clipget?
careca Posted June 5, 2020 Posted June 5, 2020 You can go either way, grabbing from the txt file is also easy. What you do to use clipget is you set a variable to it, and then use the variable in the send. $Var = clipget() send($var) Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe
mervin Posted June 5, 2020 Author Posted June 5, 2020 9 minutes ago, careca said: You can go either way, grabbing from the txt file is also easy. What you do to use clipget is you set a variable to it, and then use the variable in the send. $Var = clipget() send($var) I did this, HotKeySet("+!h", "SendHi") While(1) Sleep(100) WEnd $var = ClipGet Func SendHi() Send($var) EndFunc It says variable being sent without being declared, am i doing anything wrong?
careca Posted June 5, 2020 Posted June 5, 2020 Just put on top of script Local $var Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe
mervin Posted June 5, 2020 Author Posted June 5, 2020 5 minutes ago, careca said: Just put on top of script Local $var Sorry for asking constantly, i am very new to this. HotKeySet("+!h", "SendHi") Local $var = ClipGet While(1) Sleep(100) WEnd Func SendHi() Send($var) EndFunc This time no error was sent. But nothing happened
careca Posted June 5, 2020 Posted June 5, 2020 It seems like all that was left was the brackets after the clipget() This works for me, Changed key to F2, not a fan of using alt, ctrl shift.. HotKeySet("{F2}", "SendHi") Local $var = ClipGet() While 1 Sleep(100) WEnd Func SendHi() ConsoleWrite('Sending'&@CRLF) Send($var) EndFunc Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe
mervin Posted June 5, 2020 Author Posted June 5, 2020 It worked! Thanks! Just had to wait a few minutes before it finished pasting everything! Haha! Thank you so much!
careca Posted June 5, 2020 Posted June 5, 2020 In order to make it faster you can tweak this: Opt("SendKeyDelay", 5) ;5 milliseconds is the default, lower to make it faster, 0 is the fastest possible. That line goes to the top, usualy. Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now