Jump to content

help me! key seq im noob!


Recommended Posts

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...