| View previous topic :: View next topic |
| Author |
Message |
ansu832001
Joined: 05 May 2008 Posts: 18
|
Posted: Fri May 09, 2008 9:36 am Post subject: Can i Write a Script that generates another script?? |
|
|
Hi All,
I have an Application which has many controls,so when i run this application for the first time and do various actions on controls i should be able to write all the user events(like, user might have clicked a combo and selected some item,he can type something in textbox etc..) to a script which can be rerun(kind of automation).I hope iam clear.
Best Regards. |
|
| Back to top |
|
 |
BoBo² Guest
|
Posted: Fri May 09, 2008 9:44 am Post subject: |
|
|
Well, start a script recorder and you're done (best case scenario ). |
|
| Back to top |
|
 |
ansu832001
Joined: 05 May 2008 Posts: 18
|
Posted: Fri May 09, 2008 9:59 am Post subject: |
|
|
Hi Bobo,
Firstly Thanks for your reply,
But i have to integrate this feature in my application,so user whenever uses my application,a script is recorded so that user can rerun the scripts generated to automate the process.So in this case i can't make user to run script recorder ,then save the script and rerun. I hope iam clear.
Best Regards. |
|
| Back to top |
|
 |
Razlin
Joined: 05 Nov 2007 Posts: 434 Location: canada
|
Posted: Fri May 09, 2008 12:34 pm Post subject: |
|
|
Heres what you need..
look up help for how to its not to hard.
create a textbox or editbox what ever in a gui
then
-gui, submit
-fileappend %editboxnameHere% c:\temp file name
-run, "C:\Program Files\AutoHotkey\AutoHotkey.exe" c:\temp_filename_here
return _________________ -=Raz=- |
|
| Back to top |
|
 |
HugoV
Joined: 27 May 2007 Posts: 650
|
|
| Back to top |
|
 |
ansu832001
Joined: 05 May 2008 Posts: 18
|
Posted: Mon May 12, 2008 8:52 am Post subject: |
|
|
Hi All,
Firstly thank you all for replying,i was out for weekend,so could not respond to you all.
We'll HugoV you understood what i need,i have gone through the links also,but these links record script based on mousepositions,not based on controls,if any control's posiiton changes this will not work.so i want to generate script which runs irrespective of mousepositions and depend only on controls.
I hope iam clear .
Best Regards. |
|
| Back to top |
|
 |
Z Gecko Guest
|
Posted: Tue May 13, 2008 1:38 am Post subject: |
|
|
I am pretty shure, there is no such script yet.
But to answer your question:
| Quote: | | Can i Write a Script that generates another script?? |
Yes, you can.
All the commands necessary are present in AHK (like the WinGet... commands, MouseGetPos and the ControlGet... commands),
but it will be no short script, for shure  |
|
| Back to top |
|
 |
|