Jump to content

Recommended Posts

Posted

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

Posted

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) :)

Posted

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) :)

Posted

can you please write me

this .....

im little nooblike

sry

hotkey=f8

keys to press 1-8

thanks

Do what n3ne says we can't explain more just replace the line with what he says.

Posted

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.
Posted

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) :)

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...