langi890 Posted November 26, 2008 Share Posted November 26, 2008 Hi i have an Question i want to make an macro that push the numbers 1-8 when i press for example f8 f8=start pressing 1-8 second time f8 stop pressing 1-8 i dont know how to do this sry i dont use autoit very long only 2days thanks Link to comment Share on other sites More sharing options...
dbzfanatic Posted November 26, 2008 Share Posted November 26, 2008 Look at the example "Pause" function. What you need is almost identical. Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
Madza91 Posted November 26, 2008 Share Posted November 26, 2008 Maybe something like this: #include <Misc.au3> $dll = DllOpen("user32.dll") $pressed = 0 While 1 Sleep (100) If _IsPressed("77", $dll) And $pressed = 0 Then $pressed = 1 AdlibEnable("Function", 500) ElseIf _IsPressed("77", $dll) And $pressed = 1 Then AdlibDisable() $pressed = 0 EndIf WEnd DllClose($dll) Func Function() For $a = 1 To 8 Send("{1}") Sleep(10) Next EndFunc [quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :) Link to comment Share on other sites More sharing options...
langi890 Posted November 26, 2008 Author Share Posted November 26, 2008 This is know but how do i write the 1-8?? hotkeyset ("f8" , 1-8) ???? or how pls Link to comment Share on other sites More sharing options...
Madza91 Posted November 26, 2008 Share Posted November 26, 2008 Just replace line 20 with this: Send("{" & $a &"}") [quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :) Link to comment Share on other sites More sharing options...
langi890 Posted November 26, 2008 Author Share Posted November 26, 2008 can you please write me this ..... im little nooblike sry hotkey=f8 keys to press 1-8 thanks Link to comment Share on other sites More sharing options...
FireFox Posted November 26, 2008 Share Posted November 26, 2008 can you please write me this .....im little nooblike sryhotkey=f8keys to press 1-8thanksDo what n3ne says we can't explain more just replace the line with what he says. Link to comment Share on other sites More sharing options...
dbzfanatic Posted November 26, 2008 Share Posted November 26, 2008 can you please write me this .....No one is going to write this for you. This is a help forum not a "write this for me" forum. I and others have given you all the information you need. I'm guessing you haven't read the helpfile. Even a person who has only used autoit a few hours could do such a simple script if they read the helpfile and possibly go through a few tutorials. Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
Madza91 Posted November 26, 2008 Share Posted November 26, 2008 This is a help forum not a "write this for me" forum.You are damn right [quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :) 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