View Full Version : AutoHotKey
I downloaded a script from sW and in the .ahk-file, the text is following:
#IfWinActive ahk_class Worms2D
~PgDn::Suspend, On
~PgUp::Suspend, Off
s::F8
c::Space
v::Space
It doesn't work of course... Someone who knows a solution?
The script's execution may have been suspended by an accidental press of PgDn. Make sure you press PgUp to resume execution.
Also, if you're trying to test the script outside WA, it won't work. It only works if the currently-active window is called "Worms2D", which is the WA engine.
The script's execution may have been suspended by an accidental press of PgDn. Make sure you press PgUp to resume execution.
Also, if you're trying to test the script outside WA, it won't work. It only works if the currently-active window is called "Worms2D", which is the WA engine.
So if I run WA with WormKit, it wont work?
I used this script before, on XP, and I still used WormKit then. I got it from sW, but does anyone know something about AutoHotKey? How to fix it so I can use the hot keys? Thanks.
WormKit just loads WA.exe with some extra .dll files. It wouldn't change the window name unless some WormKit module changed it. You extrapolated wrong information from my post. That AHK script should be fine even if you ran WormKit.exe to launch WA.
My main point was to get you to check if the script was suspended. Think of my post's information in the most basic way you can and that's what I meant.
WormKit just loads WA.exe with some extra .dll files. It wouldn't change the window name unless some WormKit module changed it. You extrapolated wrong information from my post. That AHK script should be fine even if you ran WormKit.exe to launch WA.
My main point was to get you to check if the script was suspended. Think of my post's information in the most basic way you can and that's what I meant.
Well I don't think it's suspended, but it doesn't pause when I press PgUp/Dn even here in windows, so I think the script isn't activated.
"isn't activated"? Do you mean you didn't run the script? If so, that'd be the problem. Run the script.
But know that the moment you do that, you risk a lot of people looking at you funny for using macros to play the game. Even years down the road, when you become a true expert at the game, someone will remember the transgression that you committed on that fateful January 2011 afternoon!
It'll taint your reputation for life, man. Yours and that of all the Swedes to have ever graced WormNet with their presence. :eek:
Have you even installed AHK? If you didn't do that.
If/when you did, just activate script by double clicking on it or loading it by program.
When activated it will appear as a tray icon.
In game you activate/deactivate it by pressing pgUp or pgDown.
edit:
and ye ofc if you use that script for roping you will be called "noob" and "lame" by many players... but don't worry... mostly by ones that can't get how to finger roll, or some hardcore old school ropers that puts 2 spaces in same box as wheelchair(only for disabled persons).
I tried this script and it doesn't even work as expected. With this script, you can't use both keys simultaneously since WA waits for a keyup event before accepting another keydown event.
Have you even installed AHK? If you didn't do that.
If/when you did, just activate script by double clicking on it or loading it by program.
When activated it will appear as a tray icon.
In game you activate/deactivate it by pressing pgUp or pgDown.
edit:
and ye ofc if you use that script for roping you will be called "noob" and "lame" by many players... but don't worry... mostly by ones that can't get how to finger roll, or some hardcore old school ropers that puts 2 spaces in same box as wheelchair(only for disabled persons).
I'm an old school player from WWP, as my provider was always blocking Port 6667, so I was forced to play WWP instead W:A and my actual keyboeard makes me unable to use 2 fingers for roping. My keys are the high ones, so it makes fast roping even harder, but I never used any cheats or scripts to make things esier.
I play on drums and my one finger is fast enaugh to rope good, but maybe I'll change my cheap keyboard one day, for better one with low keys, to make things easier, what may stop that keylock thing, which sometmes happens, as I like to be default and I don't and won't use any key-changer, binder or any stuff for lame players.
Any player with roping scripts or binds, or other cheating stuff is lame for me, but it's his problem and his limited brain, as I play for fun.
GrO, let's not start this annoying thread again. We've seen it on these forums too many times.
Well, is it so hard to help me? My life isn't Worms, it's just a hobby. So someone who can make it work?
Of course I installed AHK before AND I runned it, i'm not an idiot. Didn't I say I used it before on my XP? Think so...
Hmm?
Cerium, please don't misinterpret me. I was warning GrO against starting a debate between those who consider augmenting the game's interface cheap and those who don't. I definitely want to help you. Something as simple as this shouldn't be difficult.
Cerium, ensure you're using the latest version of AutoHotKey. It's possible that you're using an old version which may have worked on XP but doesn't interface properly with your current OS.
I think I had a problem using IfWinActive. I ended up using IfWinExist since I don't generally multi-task when playing or use windowed mode.
#IfWinExist, Worms Armageddon
Edit: Oh, and in response to this...Any player with roping scripts or binds, or other cheating stuff is lame for me, but it's his problem and his limited brain, as I play for fun.There are other reasons to use scripting. None of mine affect gameplay. I just made more intuitive (for me anyway) shortcuts for HostingBuddy.
I think I had a problem using IfWinActive. I ended up using IfWinExist since I don't generally multi-task when playing or use windowed mode.
#IfWinExist, Worms Armageddon
Edit: Oh, and in response to this...There are other reasons to use scripting. None of mine affect gameplay. I just made more intuitive (for me anyway) shortcuts for HostingBuddy.
That's nice, I said: "...roping scripts...etc.". That, what you're doing is great and may effect with making hosting even easier, than it is now, for newcomers in the future.
Jesus christ guys ;)
I downloaded the latest AHK i guess, and i couldn't even start up Worms now. I run with Windows 7 like i said, and nothing works. I use WormKit (wkColorFix) so, someone who can tell me how to get everything working again, do it!
Does this (http://www.mediafire.com/?9lvb8cb73dvrqir) thing I made work?
I made it for that pizza guy from this thread:
http://forum.team17.co.uk/showthread.php?t=42951
It remaps tab key to q. And it uses that suspend thing for chat. Plus it runs only in Worms2D engine. I think it works with newest version because of those extra commands that were made automatically with script, I don't know yet what they mean.
Doesn't work. Tried it out and still the same. Now i got the game running good, so just that script left. I don't get it, why won't it work? Bah...
I got a new .ahk-script. So don't whine about it. I still got a problem. When i start Worms without .ahk running, it works without any problem. When i start .ahk, Worms wont start? I get black-screened for like 1 second and it's minimized and i can't turn it of. I got some problems with the Task Manager, maybe it's some Spywares / Trojans who are fooling me. Any ideas? :)
/Cerium
Just curious what version of AHK did you install? The new one with Lexikos' modifications isn't 100% backwards compatible. There's also separate unicode and ansi versions, and a script using wrong character encoding won't run.
I tried this script and it doesn't even work as expected. With this script, you can't use both keys simultaneously since WA waits for a keyup event before accepting another keydown event.
I think it works as intended - changes key configuration without affecting playing mechanism.
To make both keys work without releasing the other (i.e. "cheating"), the down hotkeys should send {Space up} before {Space down}, and the up hotkeys {Space up}, but only if both keys are released, which can be checked with e.g. a counter variable.
Edit:
Actually, typematic would screw up the counter, so better stick with physical keydown status checks
vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.