Jump to content

How do i use this? Hotkey problem!


langi890
 Share

Recommended Posts

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

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