Jump to content
Sign in to follow this  
MarkusM

writing a text on that position, where I am with editing

Recommended Posts

MarkusM

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

Share this post


Link to post
Share on other sites
MarkusM

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:")

Share this post


Link to post
Share on other sites
Edano

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 by Edano

[color=rgb(255,0,0);][font="'comic sans ms', cursive;"]FukuLeaks[/color][/font]

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×