add mich mal in icq bitte nummer hab ich glaub angegeben ...
Ja da brauchst du doch nur etwas nachdanken und solltest drauf kommen.Quote:
Da steht, wie man mit Hotkeys umgeht und wie man normale macht.
ICH will aber wissen, wie man eine Inputbo als Hotkey benutzt.
$read = Guictrlread($input6)
Hotkeyset ($read, "_SendeText" )
Func _SendeText()
$check1 = GuiCtrlRead($Checkbox2)
$check2 = GuiCtrlRead($Checkbox1)
$read1 = Guictrlread($input1)
If $check1 = 1 Then
If $check2 = 1 Then
Send ("{Enter}")
Send ($input1)
Send ("{Enter}")
Send ("{Enter}")
Else
Send ($read1)
EndIf
EndIf
EndFunc
du meinst funzt nur einmal xD oder?Quote:
funzt perfektCode:#include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 164, 40, 662, 535) $Input1 = GUICtrlCreateInput("{F5}", 8, 8, 141, 21) GUISetState(@SW_SHOW) HotKeySet(GUICtrlRead($input1),"Start") While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch Sleep(1000) WEnd func start() MsgBox(0,"test",GUICtrlRead($input1)) EndFunc
global $Hotkey = Inputbox ( "Inputbox" , "Type Hotkey here" ) hotkeyset ( $Hotkey , "_start" ) While (1) Sleep (100) if $Hotkey = "" then exit endif Wend Func _start() msgbox ( 0 , "MSGBox" , "works fine whit hotkey: " & $Hotkey ) endfunc
$out1=GuiCtrlRead($input6)
Hotkeyset("{"&$input6&"}",start)
#include <GUIConstantsEx.au3>
GUICreate("Fuer allesvergeben so macht man das", 500, 300, 300, 300)
GUISetState(@SW_SHOW)
$hotkey = GUICtrlCreateInput ( "{Hotkey}" ,10, 40, 60,20)
while 1
$a=guictrlread ($hotkey)
hotkeyset ($a,"start")
sleep (1000)
wend
func start()
msgbox (0,"","so macht man das")
endfunc