Jump to content

FileWriteLine problem


 Share

Recommended Posts

I am using Case _IsPressed and FileWriteLine, it works but it puts it in like 10 times if you hold it down for about 4 milliseconds. How can i make it ony put one line?

i have:

Select
        Case _IsPressed("01", $dll)
            FileWriteLine($file, "Left Mouse Clicked")
        Case _IsPressed("02", $dll)
            FileWriteLine($file, "Right Mouse Clicked")
        Case _IsPressed("04", $dll)
            FileWriteLine($file, "Middle Mouse(Scroll) Clicked")
        Case _IsPressed("08", $dll)
            FileWriteLine($file, "Backspace")
        Case _IsPressed("09", $dll)
            FileWriteLine($file, "Tab")
        Case _IsPressed("0C", $dll)
            FileWriteLine($file, "Delete")
        Case _IsPressed("0D", $dll)
            FileWriteLine($file, "Enter")
        Case _IsPressed("10", $dll)
            FileWriteLine($file, "Shift")
        Case _IsPressed("11", $dll)
            FileWriteLine($file, "CTRL")
    EndSelect

-Joscpe

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