AutoHotkey Community

It is currently May 24th, 2012, 3:37 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 27 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: AHK ScriptWriter
PostPosted: February 1st, 2007, 4:14 pm 
Offline

Joined: July 3rd, 2004, 1:03 pm
Posts: 121
AHK ScriptWriter v.023 Alpha

Updated- 2/6/07

Slight GUI changes (including ToolTip option), replays mouseclick on Start Menu better, etc... Tested only on Win XP and Win 2000.

AHK_ScriptWriter Goals:

1. Make an useful scriptwriter tool that will one day replace and surpass AutoScriptWriter and its “legacy” derived code.

2. Use the AutoHotkey language and push the script to its limit and find innovative ways to overcome any limitations that are found.

3. Replace or provide options to replace mouseclicks and sleep commands with ControlSend, ControlClick, and Control commands whenever possible.

Written by Thalon with parts from Skrommel. Experimented on and additional features written by AHKnow.

Note 1- The GUI is launched from the Traymenu. When you press Record, there will be a little "Stop" button on the upper left corner. Play = PlayBack.

Note 2- Only links will be given. AutoHotkey.net provides free space, so its easy.

Note 3- Code will not be cleaned up until nears Beta.

Note 4- GUI for test purposes and may go through numerous changes.


Last edited by AHKnow on February 6th, 2007, 4:56 pm, edited 4 times in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 1st, 2007, 8:26 pm 
Offline

Joined: October 30th, 2006, 10:17 pm
Posts: 43
very nice

can't wait to see the next update

_________________
Tex© Click here to mail me


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 4th, 2007, 12:03 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
I'm surprised you haven't gotten more feedback on this. Maybe it's because most frequenters of the forum tend to be veteran users who find it easier to write macros by hand.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 4th, 2007, 1:49 am 
Quote:
Maybe it's because most frequenters of the forum tend to be veteran users who find it easier to write macros by hand
Confirmed (IMHO). But, I think there's a need for it, even it's "only" about to attract novice users. Thx for the effort. Much appeciated. 8)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 4th, 2007, 7:42 am 
I think AutoHotkey is an easier language to type and think in, so many people don’t mind typing out what they want to do.

But, there are many users that are more into automation for automating tasks, installs, etc…This is why the quality of the ScriptWriter becomes important.

The way AHK ScriptWriter is now, you can record, then easily edit the script, and then play it back.

Later on, combine this with AutoHotkey tools like Isense, AHK Window Info, etc… and it just makes life easier for automation.

Also, AutoHotkey is a “shortcut” language by nature. Many people use it, because it’s quick and easy. Something you “grab off the shelf and get the task done”. People that are into hard core programming will often go a different path. Funny thing though, this pursuit of “proper” programming languages and all that “typing” may be causing people to go down the wrong path.

There are different ways you can “instruct” a computer. You can type it, tell it (if you got voice recognition hooked up), or SHOW it. Of all the ways, probably the most effectivhee for a regular user is to have the computer COPY your actions. AutoHotkey is an excellent language to modify those actions. In fact, the best language that I’ve seen, so far. This includes visual programming languages that I've played with. Because how powerful AutoHotkey is now, I think there is almost no limit to the level of automation you can take your computer to.

One of my goals is to have the AHK ScriptWriter become better and better at recording whatever actions the users does and then make it very easy to make changes to the script.

It occurred to me that having AutoHotkey users able to easily modify their recorder, will allow the ScriptWriter to constantly evolve. Even if only a few users are “officially” modifying it, constant change is taking place, so the ScriptWriter will only get better.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 4th, 2007, 9:19 am 
Offline

Joined: January 19th, 2007, 9:09 pm
Posts: 147
AHKnow* wrote:
I think AutoHotkey is an easier language to type and think in, so many people don’t mind typing out what they want to do.

But, there are many users that are more into automation for automating tasks, installs, etc…This is why the quality of the ScriptWriter becomes important.

The way AHK ScriptWriter is now, you can record, then easily edit the script, and then play it back.

Later on, combine this with AutoHotkey tools like Isense, AHK Window Info, etc… and it just makes life easier for automation.
Also, AutoHotkey is a “shortcut” language by nature. Many people use it, because it’s quick and easy. Something you “grab off the shelf and get the task done”. People that are into hard core programming will often go a different path. Funny thing though, this pursuit of “proper” programming languages and all that “typing” may be causing people to go down the wrong path.

There are different ways you can “instruct” a computer. You can type it, tell it (if you got voice recognition hooked up), or SHOW it. Of all the ways, probably the most effectivhee for a regular user is to have the computer COPY your actions. AutoHotkey is an excellent language to modify those actions. In fact, the best language that I’ve seen, so far. This includes visual programming languages that I've played with. Because how powerful AutoHotkey is now, I think there is almost no limit to the level of automation you can take your computer to.

One of my goals is to have the AHK ScriptWriter become better and better at recording whatever actions the users does and then make it very easy to make changes to the script.

It occurred to me that having AutoHotkey users able to easily modify their recorder, will allow the ScriptWriter to constantly evolve. Even if only a few users are “officially” modifying it, constant change is taking place, so the ScriptWriter will only get better.


i'm making a program like that, so i have a question: can i you ahk scriptwriter in it??


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 4th, 2007, 11:08 am 
Of course you can. Any improvements that you make and share with everybody will be greatly appreciated.


Report this post
Top
  
Reply with quote  
 Post subject: Re: AHK ScriptWriter
PostPosted: February 4th, 2007, 2:29 pm 
It doesn't do much for me.

It records mouse clicks only in a tiny area in the top left
(around the stop button).

All keypresses are ignored. The program seems useless :-(


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 4th, 2007, 3:12 pm 
The main focus is on mouse clicks at the moment. If you can only record mouse clicks in one area than something might be wrong with your computer or you are using Windows 98 or older. The program works fine on Windows 2000 and Windows XP computers, so far.

The program is a Alpha, if you feel its useless than you can always use the present AutoScriptWriter or make corrections to the script yourself.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 5th, 2007, 4:58 am 
Offline

Joined: July 3rd, 2004, 1:03 pm
Posts: 121
Tim Tyler, and others, you may want to look out for updated versions, as it addresses some of your comments.

I will take note of any comments made and try to improve the program. BUT remember, as this program is an Alpha, different things are being tried and there is a lot of playing around with the code. Not all changes will work out, but overall and as time goes by, there will be improvement.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 5th, 2007, 7:10 am 
Offline

Joined: July 12th, 2005, 1:21 pm
Posts: 633
@AHKnow
It seems that the programm "loses" parts of the code after some clicking around... Only the code fitting into the tooltip is overtaken into the code-window afterwards!
So it works for very short recordings, but not for more than some clicks... ;)

Thalon

_________________
AHK-Icon-Changer
AHK-IRC
deutsches Forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 5th, 2007, 10:15 am 
Thalon wrote:
@AHKnow
It seems that the programm "loses" parts of the code after some clicking around... Only the code fitting into the tooltip is overtaken into the code-window afterwards!
So it works for very short recordings, but not for more than some clicks... ;)

Thalon


This is an easy fix.

1. Increase the number of characters being displayed by ToolTip to 5000, for example.
Code:
 StringRight, ScriptHold, keys, 1000
then change to-
Code:
 StringRight, ScriptHold, keys, 5000


Of course the ToolTip can get huge and go all over the screen, depending on what you select and get in the way of the control you want to click.

2. The next release will have a GUI option to remove the ToolTip.

The AHK ScriptWriter works fine without the ToolTip and this is the way that AutoScriptWriter works.

The ToolTip is a "Plus and Minus type of thing". It can be good when you want to see exactly what code is showing up as you click and press, but it can get in the way and not help if you are doing lots clicks and key presses.

By the way, I found a way for clicks on the "Start Menu" Button to work properly. Even AutoScriptWriter was messing this up and failing on this, so that will be another "1 up" for the AHK ScriptWriter.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 5th, 2007, 11:19 am 
Offline

Joined: July 12th, 2005, 1:21 pm
Posts: 633
@AHKnow
In the version I gave you it was different!
The tooltip was only used to show the last snippet of code, but the internal code was always complete!

Maybe you can check my version again for this handling.
I don't think it's good to restrict the catched code to that amount the ToolTip can handle! This should be completely independend in my eyes...

Thalon

_________________
AHK-Icon-Changer
AHK-IRC
deutsches Forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 5th, 2007, 1:25 pm 
Offline

Joined: July 3rd, 2004, 1:03 pm
Posts: 121
Thalon, I will look into it.

EDIT- Looked into it. Problem corrected, will post update soon. The contents of the variable ScriptHold was being sent to the ShowGUI1's Edit field (variable ScriptEdit). Just changed variables, so the one for the ToolTip is not the same one that the ShowGUI1's Edit field uses.

I think the issue was not noticed because only ToolTip was shown and there was not any transferring data to a GUI. I changed the variable from "tooltip" to "scripthold" because it was causing other problems. Which anybody can feel free to confront through experimenting.

If you simply transfer the data to the GUI’s edit field, in way that AutoScriptWriter does, than you do NOT see the problem.

If you turn off the ToolTip or comment out the ToolTip than you will NOT see any data loss. If you increase
Code:
StringRight, ScriptHold, keys, 5000
to a large amount then it takes longer to see the problem.

The ToolTip is nice, but like I stated, it is a “Plus and Minus” situation. Even with a small ToolTip, it will only show so much data and there will be times that it gets in the way.

So, I think it’s better to make ToolTip an option that you can turn on or off and of course fixing the ToolTip issue would be nice (done).


Last edited by AHKnow on February 6th, 2007, 5:34 pm, edited 3 times in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 5th, 2007, 2:20 pm 
Offline

Joined: July 12th, 2005, 1:21 pm
Posts: 633
I can maybe have a look into the problem today...

_________________
AHK-Icon-Changer
AHK-IRC
deutsches Forum


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 27 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 16 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group