Jump to content
Sign in to follow this  
donkeybusiness

Ctrl, Shift & Alt Problem

Recommended Posts

donkeybusiness

Everytime I start my AutoIt script, and when I pressed either the Ctrl, Shift or Alt keys, the 3 keys will automatically 'repeats' itself until I off my script, which is a rather

frustrating problem.

Can anyone solve my problem here?

Thanks in advance.

:D

Share this post


Link to post
Share on other sites
donkeybusiness

HotKeySet("{F9}","start")

HotKeySet("{F10}","stop")

Global $on=False

While 1

Sleep(30)

While $on=True

Sleep(1)

send("a")

WEnd

WEnd

Func start()

$on=True

EndFunc

Func stop()

$on=False

EndFunc

My script is to repeatedly press the 'a' button when i press F9 and F10 to stop

Edited by donkeybusiness

Share this post


Link to post
Share on other sites
bogQ

My script is to repeatedly press the 'a' button when i press F9 and F10 to stop

y can try to pause while y send that key and specific button is pressed

#Include <Misc.au3>
HotKeySet("{F9}","start")
HotKeySet("{F10}","stop")
Global $on=False

While 1
    Sleep(30)
    While $on=True
        If Not _IsPressed("10") And Not _IsPressed("11") And Not _IsPressed("12") Then
            Sleep(10)
            send("a")
        EndIf
    WEnd
WEnd

Func start()
    $on=True
EndFunc

Func stop()
    $on=False
EndFunc

why do y need alt ctrl and shift to press while he is sending 'a'?

Edited by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.