gainstaa Posted August 24, 2007 Share Posted August 24, 2007 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 More sharing options...
James Posted August 24, 2007 Share Posted August 24, 2007 Look at: Hotkeyset Functions For Next loops Hope it helps Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
gainstaa Posted August 24, 2007 Author Share Posted August 24, 2007 (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 August 24, 2007 by gainstaa Link to comment Share on other sites More sharing options...
qazwsx Posted August 24, 2007 Share Posted August 24, 2007 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 More sharing options...
gainstaa Posted August 24, 2007 Author Share Posted August 24, 2007 can some1 write this code for me? i dont know how to use this program......... would it take along time? Link to comment Share on other sites More sharing options...
qazwsx Posted August 24, 2007 Share Posted August 24, 2007 If you would look at the help file and try to learn you would be done by now. Link to comment Share on other sites More sharing options...
gainstaa Posted August 24, 2007 Author Share Posted August 24, 2007 i did look at it and it doesnt make sense to me...... i suck at this Link to comment Share on other sites More sharing options...
bigworm Posted August 24, 2007 Share Posted August 24, 2007 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. Link to comment Share on other sites More sharing options...
Paulie Posted August 24, 2007 Share Posted August 24, 2007 Let me get you started HotKeySet("W", "MyFunction") While 1 Sleep(100) WEnd Func MyFunction() ;Use Send() EndFunc Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now