AutoHotkey Community

It is currently May 27th, 2012, 6:12 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: December 1st, 2005, 11:44 pm 
Offline

Joined: December 1st, 2005, 11:07 pm
Posts: 17
Location: Ohio
I'm trying to use this script for a game that I have (Real War) and for some reason, I can't seem to get it right, no matter what I do.... Here's a copy of the scipt:

^s::
WinWait, Real War:,
IfWinNotActive, Real War:, , WinActivate, Real War:,
WinWaitActive, Real War:,
Send, {CTRLDOWN}{LEFT}{F9}s{CTRLUP}

Now what I am trying to do is basically create a function here that will hold down CTRL, (the left arrow key, not numpad one), F9, and press 9.... So in other codes it would look like this: Ctrl+Left+F9+s... If you still don't know what I mean... just look at the cheat code i'm trying to generate from the following webpage: http://www.gamewinners.com/DOSWIN/blrealwar.htm

I'm still not sure why this isn't working, I have tried all of the following, and none have worked:

^s::
WinWait, Real War:,
IfWinNotActive, Real War:, , WinActivate, Real War:,
WinWaitActive, Real War:,
Send, {CTRLDOWN}&{LEFT}&{F9}s{CTRLUP}
_____________________________________________________
^s::
WinWait, Real War:,
IfWinNotActive, Real War:, , WinActivate, Real War:,
WinWaitActive, Real War:,
Send, {CTRLDOWN}{&}{LEFT}{&}{F9}{&}s{CTRLUP}
_____________________________________________________
^s::
WinWait, Real War:,
IfWinNotActive, Real War:, , WinActivate, Real War:,
WinWaitActive, Real War:,
Send, {CTRLDOWN}{&}{LEFT}{&}{F9}{&}s{&}{CTRLUP}
_____________________________________________________
^s::
WinWait, Real War:,
IfWinNotActive, Real War:, , WinActivate, Real War:,
WinWaitActive, Real War:,
Send, {CTRLDOWN}{LEFTDOWN}{F9DOWN}s{CTRLUP}{LEFTUP}{F9UP}
_____________________________________________________
And many more..... following something of that pattern....

If anybody can figure out how to get this kind of script working, please let me know. Thank you.

-Kevin Arbogast


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 1st, 2005, 11:48 pm 
Offline

Joined: December 1st, 2005, 7:04 pm
Posts: 37
Location: Los Angeles, CA
try this
Code:
^s::
WinWait, Real War:,
IfWinNotActive, Real War:, , WinActivate, Real War:,
WinWaitActive, Real War:,
Send, {CTRLDOWN}{LEFT down}{F9 down}{s down}{s up}{f9 up}{left up}{CTRLUP}

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 2nd, 2005, 8:33 am 
Offline

Joined: December 1st, 2005, 11:07 pm
Posts: 17
Location: Ohio
I tried that, and it didn't work, all that script did was made a repeating code that repeated the keys Ctrl and Left over again... I really appriciate you trying, but do you have any other suggestions?

This is basically what it would do...
Example of error:
{CTRL}{LEFT}{CTRL}{LEFT}{CTRL}{LEFT}{CTRL}{LEFT}{CTRL}{LEFT}{CTRL}{LEFT}{CTRL}{LEFT}{CTRL}{LEFT}{CTRL}{LEFT}{CTRL}{LEFT}{CTRL}{LEFT}{CTRL}{LEFT}{CTRL}{LEFT}{CTRL}{LEFT}{CTRL}{LEFT}{CTRL}{LEFT}{CTRL}{LEFT}{CTRL}{LEFT}{CTRL}{LEFT}{CTRL}{LEFT}{CTRL}{LEFT}{CTRL}{LEFT}{CTRL}{LEFT}{CTRL}{LEFT}{CTRL}{LEFT}

If you were to use that kind of script, it would be the same... Let's try something else.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 2nd, 2005, 6:57 pm 
Offline

Joined: December 1st, 2005, 7:04 pm
Posts: 37
Location: Los Angeles, CA
Try changing your hotkey to !+z:: - reason being that you have the control key and the s in the sent parameters as well as the hotkey combination. using alt and another letter (for instance z) may yield better results.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 2nd, 2005, 9:28 pm 
Offline

Joined: December 1st, 2005, 7:04 pm
Posts: 37
Location: Los Angeles, CA
Code:
!+z::
keywait, alt, u
keywait, z, u
keywait, shift, u
Send, {CTRLDOWN}{LEFT down}{F9 down}{s down}{s up}{f9 up}{left up}{CTRLUP}
return

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 2nd, 2005, 9:44 pm 
Offline

Joined: December 1st, 2005, 11:07 pm
Posts: 17
Location: Ohio
Code:
!z::
keywait, alt, u
keywait, z, u
keywait, shift, u
Send, {CTRLDOWN}{LEFT down}{F9 down}{s down}{s up}{f9 up}{left up}{CTRLUP}
return


That seemed to work, however, when I take out the
Code:
keywait, shift, u
it doesn't work anymore...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 2nd, 2005, 9:46 pm 
Offline

Joined: December 1st, 2005, 7:04 pm
Posts: 37
Location: Los Angeles, CA
i guess just keep it in then, its not hurting anything, weird though

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 3rd, 2005, 2:11 am 
Offline

Joined: December 1st, 2005, 11:07 pm
Posts: 17
Location: Ohio
Man, this thing is impossible... the code is now...

Code:
!z::
keywait, alt, u
keywait, z, u
keywait, shift, u
Blockinput, on
Send, {CTRLDOWN}{LEFT down}{F9 down}{s down}{s up}{f9 up}{left up}{CTRLUP}
Blockinput, off
return


However, for some reason, it still only works about 1/20 of time..... I don't know what the problem is, it's very odd... If anybody has any ideas, please let me know.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Google Feedfetcher, HotkeyStick, Wicked and 55 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