Goodday,
We have been using Autohotkey for our company to automate certain events when uploading new items into our webshop to increase work efficiency. Autohotkey's features for using InputBoxes for Text Input are somewhat limited so right now I am struggling with C# Forms to replace our existing Autohotkey Program.
Virtual Mouse and Keyboard events are simulated very simply. Here's an example:
Mouseclick, l, 325, 60 //mouseclick at coordinate from top left corner of active window
Sleep, 50 //delay 50ms
Mouseclick, l, 950, 420
Sleep, 50
Send, %itemtitle% //writes text from variable
Sleep, 50
Mouseclick, l, 950, 445
Send, %itemdescription%
and so forth...
I need a simple function in C# that can be used as in the above example.
writeText(string text)
and
mouseclick (int button, int x_coordinate, int y_coordinate)
The coordinates in Autohokey are calculated inside the active window, but coordinates that are calculated for the entire screen will also work.
Thank you very much