| View previous topic :: View next topic |
| Author |
Message |
oreomaster3 Cheater
Reputation: 0
Joined: 15 Aug 2007 Posts: 25
|
Posted: Tue Oct 23, 2007 5:01 pm Post subject: need help plz anwser |
|
|
is there a program or anything that press on the keybord automaticcally when you press like F8 you will type:123456 automatically
it would be usefull in fighting games when you do combos or tehcniqes
ty in advance
(no search spams)
_________________
i like OREOS
i like CASH |
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Tue Oct 23, 2007 5:12 pm Post subject: |
|
|
You can use programs like AutoIt to create macros and such.
_________________
- Retired. |
|
| Back to top |
|
 |
Labyrnth Moderator
Reputation: 10
Joined: 28 Nov 2006 Posts: 6301
|
Posted: Tue Oct 23, 2007 5:32 pm Post subject: |
|
|
It would look something like this in Autoit.
| Code: | #include <Misc.au3>
$dll = DllOpen("user32.dll")
While 1
Sleep(2000)
;~ Press END Key
If _IsPressed("23", $dll) Then
Send("123456")
ExitLoop
EndIf
WEnd
DllClose($dll) |
Right from the Autoit help file you get this much of the code as a sample:
So you can see i didnt do very much to get what you wanted done.
| Code: | #include <Misc.au3>
$dll = DllOpen("user32.dll")
While 1
Sleep ( 250 )
If _IsPressed("23", $dll) Then
MsgBox(0,"_IsPressed", "End Key Pressed")
ExitLoop
EndIf
WEnd
DllClose($dll)
|
|
|
| Back to top |
|
 |
oreomaster3 Cheater
Reputation: 0
Joined: 15 Aug 2007 Posts: 25
|
Posted: Tue Oct 23, 2007 5:40 pm Post subject: |
|
|
ty but how autoit works i never used it
_________________
i like OREOS
i like CASH |
|
| Back to top |
|
 |
Labyrnth Moderator
Reputation: 10
Joined: 28 Nov 2006 Posts: 6301
|
Posted: Tue Oct 23, 2007 5:59 pm Post subject: |
|
|
| Google for autoit and you will find their site. Then you will see what you need.
|
|
| Back to top |
|
 |
oreomaster3 Cheater
Reputation: 0
Joined: 15 Aug 2007 Posts: 25
|
Posted: Tue Oct 23, 2007 6:06 pm Post subject: autoit help |
|
|
ok i got it now but the problem is that autoit close after i press the key 1 time
instead of staying until i close it
it now looks like this
#include <Misc.au3>
$dll = DllOpen("user32.dll")
While 1
Sleep(2000)
;~ Press SHIFT Key
If _IsPressed("10", $dll) Then
Sleep(20)
Send("1")
Sleep(20)
send("2")
Sleep(20)
send("3")
Sleep(20)
send("4")
Sleep(20)
send("5")
Sleep(20)
send("6")
Sleep(20)
send("7")
ExitLoop
EndIf
WEnd
DllClose($dll)
_________________
i like OREOS
i like CASH |
|
| Back to top |
|
 |
Serje Newbie cheater
Reputation: 0
Joined: 12 Oct 2007 Posts: 21
|
Posted: Thu Oct 25, 2007 2:39 pm Post subject: Re: need help plz anwser |
|
|
| oreomaster3 wrote: | is there a program or anything that press on the keybord automaticcally when you press like F8 you will type:123456 automatically
it would be usefull in fighting games when you do combos or tehcniqes
ty in advance
(no search spams) |
Isn't what your looking for a keystroke recorder, or a macro program?
And your OS?
I might be able to track one down for you.
|
|
| Back to top |
|
 |
Labyrnth Moderator
Reputation: 10
Joined: 28 Nov 2006 Posts: 6301
|
Posted: Thu Oct 25, 2007 5:37 pm Post subject: |
|
|
| Code: | #include <Misc.au3>
$dll = DllOpen("user32.dll")
While 1
Sleep(2000)
;~ Press SHIFT Key
If _IsPressed("10", $dll) Then
Sleep(20)
Send("1")
Sleep(20)
send("2")
Sleep(20)
send("3")
Sleep(20)
send("4")
Sleep(20)
send("5")
Sleep(20)
send("6")
Sleep(20)
send("7")
ExitLoop
EndIf
WEnd
DllClose($dll) |
Your code, It is almost what you want to do. Just a little bit off.
------------------------------------------------------------------------
Now i will show whats up.
The reason your code runs once and doesnt loop is because you dont have a variable to = 1.
As long as $bot is = to 1 it will loop for you...
Im glad you actually did it after my brief information. And thats what got my attention to help farther.
As you can see, what Serje suggested is not the way to go. Since now you know how to do it and alter it to fit your needs any way you like. It only gets easier from here, i hope you keep up with it, as it is better then a macro recorder doing it for you and you learn nothing by using one. Plus they are not as reliable as this.
Also since we are on this subject, autoit does have a macro recorder to do some simple tasks, and save time of producing some of the code.
But you will see it is just as easy to write it all anyway.
Added to make it loop:
| Code: |
$bot = 1
While $bot = 1
|
Fixed Loop:
| Code: |
#include <Misc.au3>
$dll = DllOpen("user32.dll")
$bot = 1
While $bot = 1
Sleep(2000)
;~ Press SHIFT Key
If _IsPressed("10", $dll) Then
Sleep(20)
Send("1")
Sleep(20)
send("2")
Sleep(20)
send("3")
Sleep(20)
send("4")
Sleep(20)
send("5")
Sleep(20)
send("6")
Sleep(20)
send("7")
ExitLoop
EndIf
WEnd
DllClose($dll)
|
|
|
| Back to top |
|
 |
oreomaster3 Cheater
Reputation: 0
Joined: 15 Aug 2007 Posts: 25
|
Posted: Fri Oct 26, 2007 6:05 am Post subject: |
|
|
your code didint work so i did:
#include <Misc.au3>
$dll = DllOpen("user32.dll")
$bot = 1
While $bot = 1
Sleep(200)
;~ Press SHIFT Key
If _IsPressed("10", $dll) Then
Sleep(200)
Send("1")
Sleep(60)
send("2")
Sleep(60)
send("3")
Sleep(60)
send("4")
Sleep(60)
send("5")
Sleep(60)
send("6")
Sleep(60)
send("7")
ExitLoop
EndIf
wend
DllClose($dll)
While $BOT=1
SLEEP(20)
$dll = DllOpen("user32.dll")
$bot = 1
While $bot = 1
Sleep(20)
;~ Press SHIFT Key
If _IsPressed("10", $dll) Then
Sleep(20)
Send("1")
Sleep(60)
send("2")
Sleep(60)
send("3")
Sleep(60)
send("4")
Sleep(60)
send("5")
Sleep(60)
send("6")
Sleep(60)
send("7")
ExitLoop
EndIf
wend
WEnd
DllClose($dll)
but i think its not right because its too big but it still works for me xD
do you know how to make it smaller
all i did is make iit resatar again and again and again.....
there must be another way but i cant find it
___________________________________________________________
off topic: how do put an image in your sig i can put only adresses
_________________
i like OREOS
i like CASH |
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Fri Oct 26, 2007 6:30 am Post subject: |
|
|
| oreomaster3 wrote: | | off topic: how do put an image in your sig i can put only adresses |
Use the IMG tag:
| Code: | | [img]http://www.site.com/path/to/image.png[/img] |
_________________
- Retired. |
|
| Back to top |
|
 |
Labyrnth Moderator
Reputation: 10
Joined: 28 Nov 2006 Posts: 6301
|
Posted: Fri Oct 26, 2007 8:52 am Post subject: |
|
|
This should work now, I was in a hurry and didnt see "Exit Loop" Also the dll has to be reopened as well. If you get a crash on this after some useage. Try, taking "$dll = DllOpen("user32.dll")" out of the loop and put it above $bot, and comment out "DllClose($dll)".
But i dont think you will need to do this anyways.. It Should work fine.
| Code: | #include <Misc.au3>
$bot = 1
While $bot = 1
$dll = DllOpen("user32.dll")
Sleep(2000)
;~ Press SHIFT Key
If _IsPressed("10", $dll) Then
Sleep(20)
Send("1")
Sleep(20)
Send("2")
Sleep(20)
Send("3")
Sleep(20)
Send("4")
Sleep(20)
Send("5")
Sleep(20)
Send("6")
Sleep(20)
Send("7")
EndIf
WEnd
DllClose($dll) |
|
|
| Back to top |
|
 |
|