Jump to content
Sign in to follow this  
gainstaa

help me! key seq im noob!

Recommended Posts

gainstaa

i have very limited knowledge on this program. i learn by example. could some1 help me make a program that when i press W it does Space, W, W, left mouse click (or ctrl), shift (or J)? if some1 could post code on how to do this i would greatly appreciate it! thanks

Share this post


Link to post
Share on other sites
gainstaa

well i did look at those topics on the help but i cant figure it out. would it take along time for u write the program out?

i did this

#include <Misc.au3>

$dll = DllOpen("user32.dll")

While 1

Sleep(100)

If _IsPressed("50", $dll) then

MsgBox(4096,"_IsPressed", "P Key Pressed")

Terminate ()

ExitLoop

EndIf

If _IsPressed("57", $dll) then

MsgBox(4096,"_IsPressed", "W Key Pressed")

W_Key_Pressed ()

ExitLoop

EndIf

WEnd

DllClose($dll)

Func W_Key_Pressed ()

Send("{SPACE}")

sleep(100)

send("w")

sleep(50)

send("w")

mouseclick("left")

sleep(100)

Send("{LSHIFT}")

EndFunc

Func Terminate ()

MsgBox(4096,"","Exiting")

Exit

EndFunc

but it doesnt work on full screen program. is there nething i can do?

Edited by gainstaa

Share this post


Link to post
Share on other sites
qazwsx

use hotkeys rather than ispressed. Hotkeys will call the function assigned to them, also you do not need to open user32.dll.

well i did look at those topics on the help but i cant figure it out. would it take along time for u write the program out?

Most people on this forum could probably do it but they dont want to write others code.

Share this post


Link to post
Share on other sites
gainstaa

can some1 write this code for me? i dont know how to use this program......... would it take along time?

Share this post


Link to post
Share on other sites
qazwsx

If you would look at the help file and try to learn you would be done by now.

Share this post


Link to post
Share on other sites
gainstaa

i did look at it and it doesnt make sense to me...... i suck at this

Share this post


Link to post
Share on other sites
bigworm

no one is gunna write the code for you, trust me take the time to learn it, it is worth the effort and you will be shocked how much easier it is then you think.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×