|
Page 1 of 1
|
[ 9 posts ] |
|
AutoScriptWriter: Script Writing Made Easy
| Author |
Message |
|
Jayme
Joined: Fri Jul 25, 2008 9:46 pm Posts: 216 Location: SJO
|
 AutoScriptWriter: Script Writing Made Easy
PokerSoftware.com recently authored an article on using a great free tool called AutoScriptWriter II. Experimenting with this tool will give you a feel for working with and writing AHK scripts. Any questions you have about the article or AutoScriptWriter can be posted here. We're here to help! The article can be found here... http://www.pokersoftware.com/articles/2 ... -easy.html[url][/url]
|
| Thu Dec 11, 2008 12:41 am |
|
 |
|
nadewar
Joined: Sat Jan 09, 2010 1:52 pm Posts: 4
|
 Re: AutoScriptWriter: Script Writing Made Easy
Hi, I'm trying to use AutoScriptWriter for the first time and I followed the instructions to open PokerStars and search for a buddy. The script writer captured the commands to open PokerStars but didn't record any actions inside the poker room window when I searched for a friend.
The following is what was captured. Any ideas what I did wrong?
WinWait, Program Manager, FolderView IfWinNotActive, Program Manager, FolderView, WinActivate, Program Manager, FolderView WinWaitActive, Program Manager, FolderView MouseClick, left, 495, 51 MouseClick, left, 495, 51 Sleep, 100
|
| Sat Jan 09, 2010 3:01 pm |
|
 |
|
Jayme
Joined: Fri Jul 25, 2008 9:46 pm Posts: 216 Location: SJO
|
 Re: AutoScriptWriter: Script Writing Made Easy
Open auto script writer and click record...then go through the steps to search for a buddy, then stop the recording. Copy and paste the code into a new .ahk file, then make sure your pokerstars lobby is always in the same place when you use the script, as it relies on mouse click to work. Let me know if you still have problems...
your script should look something like this:
WinWait, PokerStars Lobby - Logged in as (screen name), IfWinNotActive, PokerStars Lobby - Logged in as (screen name), , WinActivate, PokerStars Lobby - Logged in as (screen name), WinWaitActive, PokerStars Lobby - Logged in as (screen name), MouseClick, left, 238, 37 Sleep, 100 MouseClick, left, 287, 284 Sleep, 100 WinWait, Find a Player, IfWinNotActive, Find a Player, , WinActivate, Find a Player, WinWaitActive, Find a Player, MouseClick, left, 239, 54 Sleep, 100 MouseClick, left, 175, 80 Sleep, 100 MouseClick, left, 118, 82 Sleep, 100
|
| Sat Jan 09, 2010 9:26 pm |
|
 |
|
nadewar
Joined: Sat Jan 09, 2010 1:52 pm Posts: 4
|
 Re: AutoScriptWriter: Script Writing Made Easy
No luck, I still can't get AutoScriptWriter to record anything inside the poker room.
It records the script in my original post which I saved to an AKH file. When I double click that file, it opens up Pokerstars so that part works fine. Since that's all the script writer recorded, it stops there.
I tried adding your code at the end of mine to see if it would generate the keystrokes for me but nothing happens. Since the first window inside Pokerstars is Pokerstars Lobby, I added the code...
WinWait, PokerStars Lobby, IfWinNotActive, PokerStars Lobby, , WinActivate, PokerStars Lobby, WinWaitActive, PokerStars Lobby, MouseClick, left, 705, 567 Sleep, 100
... after mine to see if it would click the Login button when the lobby opens up but it doesn't work (the MouseClick coordinates are set to the correct position of the Login button).
Finally, I thought maybe the 100 msec delay wasn't enough so i changed it to 10000 and left it for several minutes to see if it would click the Login button.
I use Vista so don't know if that could be the cause of my problem. When I double-click on the AKH file, the User Account Control window pops up and I click on it manually to continue. The script writer didn't record that one either.
Nothing has worked! Is there anything else I can try ?
|
| Mon Jan 11, 2010 9:39 am |
|
 |
|
Jayme
Joined: Fri Jul 25, 2008 9:46 pm Posts: 216 Location: SJO
|
 Re: AutoScriptWriter: Script Writing Made Easy
thats really weird...i use vista as well. I have no idea why the recorder doesnt capture everything. Do you have Window Text, Record Mouse, and Record and Shrink toggled down in ASW?
|
| Mon Jan 11, 2010 1:15 pm |
|
 |
|
nadewar
Joined: Sat Jan 09, 2010 1:52 pm Posts: 4
|
 Re: AutoScriptWriter: Script Writing Made Easy
Yes, all of them are toggled on. The good news is that I did manage to create a working script finally. Instead of double-clicking on the Pokerstars icon on my desktop to run the program, I used the browse button in AutoScriptWriter to point to the pokerstars.exe file instead. When I clicked on Record, it opened up the poker room and captured all my clicks after that. I saved the script and it runs correctly.
Not sure why it works this way and not from my desktop icon. No matter, thanks for being there to assist.
|
| Mon Jan 11, 2010 4:57 pm |
|
 |
|
nadewar
Joined: Sat Jan 09, 2010 1:52 pm Posts: 4
|
 Re: AutoScriptWriter: Script Writing Made Easy
One more tidbit. It appears that the problem only happens when I have the Pokerstars program's Properties set to Run As Administrator. I tried it with a few other programs with the same results. AutoScriptWriter doesn't seem to capture the User Account Control Window that requests your permission to proceed, and doesn't capture any other windows after that. If I remove the Run As Administrator property, it doesn't open up a UAC window and does capture all subsequent windows.
|
| Mon Jan 11, 2010 7:44 pm |
|
 |
|
Jayme
Joined: Fri Jul 25, 2008 9:46 pm Posts: 216 Location: SJO
|
 Re: AutoScriptWriter: Script Writing Made Easy
interesting...glad you got a script to work...Let me know if anything else comes up...
|
| Tue Jan 12, 2010 12:03 pm |
|
 |
|
claprade
Joined: Sun Apr 25, 2010 10:14 pm Posts: 1
|
 Re: AutoScriptWriter (recorder): Script Writing Made Easy
I seem to be having the same problem (although this post dates back to 2008!) Run, C:\Program Files\IObit\Advanced SystemCare 3\AWC.exe WinWait, Advanced SystemCare V3, Repair IfWinNotActive, Advanced SystemCare V3, Repair, WinActivate, Advanced SystemCare V3, Repair WinWaitActive, Advanced SystemCare V3, Repair MouseClick, left, 197, 239 Sleep, 100 This is supposed to run the program. It opens it but stop there? It appears to be clicking the word "Care" as it should but then nothing happens? I am a REAL BEGINNER at this so please be easy on me..! Regards,
|
| Sun Apr 25, 2010 10:29 pm |
|
 |
|
|
Page 1 of 1
|
[ 9 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 1 guest |
|