Jump to content

Recommended Posts

  • Moderators
Posted

During or after you are playing the .wav does it block it?

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Posted (edited)

Hi

i want to know possible send shift key only like

HotKeySet ( "+" , "_shift")

While 1
sleep(1000)
WEnd


Func _shift()
HotKeySet ( "+")
send("+")
HotKeySet ( "+" , "_shift" )
EndFunc
Edited by autoitxp
Posted

Hi

Thank for explaining

im bit working on code but still have problem this code working quite good for me but got little problem when i try to put send('{SHIFTUP}') then it stop working fine for me damn break tempo of wav file otherwise only using send('{SHIFTDOWN}') will always push shit key its harmfull :lmao: :"> any solution will be really appreciated ;)

HotKeySet ( "+-" , "_under")
While 1
sleep(1000)
WEnd

Func _under()
HotKeySet ( "+-")
Do
send("-")
SoundPlay(@WindowsDir & "\media\tada.wav")
Until send('{shiftdown}')
HotKeySet ( "+-" , "_under" )
EndFunc
  • 3 weeks later...
Posted (edited)

Hi

i try to experiment with above code and its finally work correctly hehehe wow dont know how it works but it works for me any one like to explain this code or any better code then this

HotKeySet ( "+2" , "_under")

While 1
sleep(1000)
WEnd

Func _under()
HotKeySet ( "+2")
Do
send("2")
SoundPlay(@WindowsDir & "\media\tada.wav")
Until send('{shiftdown}')
HotKeySet ( "+2" , "_under" )
sleep(1000)
send('{shiftup}')

EndFunc
Edited by autoitxp

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