I think first i should know the window program's id or somthing . Is it right? Or is there other way? I will input the text file using python or something... Let me know about it Have a nice day Thanks
You could easily do this with AHK
I believe with some tabs and text input you will be able to do this easily and export the result into an exe file without the need of AHK being installed on your computer.
Personally, I always use AutoIt to automate any Windows tasks
AutoIt v3 is a freeware BASIC-like scripting language designed for automating the Windows GUI and general scripting. It uses a combination of simulated keystrokes, mouse movement and window/control manipulation in order to automate tasks in a way not possible or reliable with other languages.
I am not sure about AutoHotKey, but one big feature of AutoIt is that it will locate a window, or wait for it to become active. It doesn’t rely on X/Y coordinates, you can resize, move, or even minimize or hide a program and your script will still run.
Here’s a simple script which opens Notepad, writes to its input and saves the file:
Run("notepad.exe") WinWaitActive("Untitled - Notepad") Send("This is some text.") WinClose("Untitled - Notepad") WinWaitActive("Notepad", "Save") ;WinWaitActive("Notepad", "Do you want to save") ; When running under Windows XP Send("!n")