MarkusM Posted August 13, 2013 Posted August 13, 2013 Dear All, I’d like to use AutoIT for writing a text on that position, where I am with editing right now. The program should be started by a shortcut with Win7. The text should be like a signature for commenting something or for writing notes (in SAP, Outlook, Excel etc.). The text should be “actual date + my name”. Please could someone give me a hint for that? THANX in advance! Markus
MarkusM Posted August 13, 2013 Author Posted August 13, 2013 Right now I work with the following prog, but here I have to click on the position the text should be, after I started the prog by shortcut. But the prog should "know" where I am with the editor and then write the text like date and name. Could someone help me please? Opt("WinWaitDelay", 500) WinWaitActive("[ACTIVE]") send(@MDAY) send(".") send(@MON) send(".") send(@YEAR) send(" NAME:")
Edano Posted August 13, 2013 Posted August 13, 2013 (edited) try "ControlSend" => helpfile . ControlSend ("[CLASS:Notepad]","","Edit1",$signature) . in fact, you will need a window with a button. the code has to get the window title and control you are working on, and the button makes the signature. if you only use a shortcut, how can the program know what window you were just working on before you clicked the shortcut ? E. Edited August 13, 2013 by Edano [color=rgb(255,0,0);][font="'comic sans ms', cursive;"]FukuLeaks[/color][/font]
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