Jump to content

Recommended Posts

Posted

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

Posted (edited)

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
Posted

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.

Posted

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.

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
×
×
  • Create New...