Isma Posted March 27, 2007 Posted March 27, 2007 hello I want make that my desktop video out conexion was activated with a script, but i have a problem becouse it is activated with Funcion key +F4 and I don't know how I send this combination. With the au3recorder this key is not read and I don't know how detect. Thank you NOTE: Sorry if my english is bad
EndFunc Posted March 27, 2007 Posted March 27, 2007 helloI want make that my desktop video out conexion was activated with a script, but i have a problem becouse it is activated with Funcion key +F4 and I don't know how I send this combination.With the au3recorder this key is not read and I don't know how detect.Thank youNOTE: Sorry if my english is badMaybe try using _IsPressed() look at that. That might help you. EndFuncAutoIt is the shiznit. I love it.
Isma Posted March 27, 2007 Author Posted March 27, 2007 I have use this script and I don“t detect the all functions only the sound function AD, AE & AF, the video out nothing $dll = DllOpen("user32.dll") While _IsPressedMod($dll); clear buffer WEnd While 1 Sleep(250) $typed = _IsPressedMod($dll) If $typed Then ExitLoop WEnd DllClose($dll) MsgBox(0,'',$typed & @LF) ; http://msdn.microsoft.com/library/default....ualKeyCodes.asp Func _IsPressedMod($dll = "user32.dll") Local $aR, $bRv, $hexKey, $i For $i = 1 To 256 $hexKey = '0x' & Hex($i, 2) $aR = DllCall($dll, "int", "GetAsyncKeyState", "int", $hexKey) If $aR[0] <> 0 Then Return Hex($i,2) Next Return 0 EndFunc ;==>_IsPressedMod Other solution??
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now