AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Can i Write a Script that generates another script??

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
ansu832001



Joined: 05 May 2008
Posts: 18

PostPosted: Fri May 09, 2008 9:36 am    Post subject: Can i Write a Script that generates another script?? Reply with quote

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
View user's profile Send private message
BoBo²
Guest





PostPosted: Fri May 09, 2008 9:44 am    Post subject: Reply with quote

Well, start a script recorder and you're done (best case scenario Laughing).
Back to top
ansu832001



Joined: 05 May 2008
Posts: 18

PostPosted: Fri May 09, 2008 9:59 am    Post subject: Reply with quote

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
View user's profile Send private message
Razlin



Joined: 05 Nov 2007
Posts: 434
Location: canada

PostPosted: Fri May 09, 2008 12:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
HugoV



Joined: 27 May 2007
Posts: 650

PostPosted: Fri May 09, 2008 1:04 pm    Post subject: Reply with quote

I think he wants to record what happens and play that back. There are various scripts available:

QuickMacro
http://www.autohotkey.com/forum/viewtopic.php?t=30689
(see also DoOver & Automate repetitive tasks in Windows links there)

InstantDoOver
http://www.autohotkey.com/forum/viewtopic.php?t=31257
Back to top
View user's profile Send private message
ansu832001



Joined: 05 May 2008
Posts: 18

PostPosted: Mon May 12, 2008 8:52 am    Post subject: Reply with quote

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
View user's profile Send private message
Z Gecko
Guest





PostPosted: Tue May 13, 2008 1:38 am    Post subject: Reply with quote

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 Wink
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group