schauts euch selber an:
HotKeySet("{F7}" , "Login")
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=c:\users\marc\documents\form1.kxf
$Form1_1 = GUICreate("Form1", 625, 445, 192, 124)
$Benutzername = GUICtrlCreateInput("Benutzername", 24, 16, 249, 21)
$Passwort = GUICtrlCreateInput("Passwort", 24, 56, 249, 21)
$Server = GUICtrlCreateInput("Server", 24, 96, 65, 21)
$Channel = GUICtrlCreateInput("Channel", 24, 136, 65, 21)
$Charakter = GUICtrlCreateInput("Charakter", 24, 176, 65, 21)
$OK = GUICtrlCreateButton("OK", 136, 248, 353, 153, $WS_GROUP)
GUISetState(@SW_SHOW)
Dim $Form1_1_AccelTable[1][2] = [["{F7}", $OK]]
GUISetAccelerators($Form1_1_AccelTable)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Func Login ()
While 1
If $Server = 1 Then
MouseMove(23, 345)
EndIf
WEnd
EndFunc
While 1
sleep (1)
WEnd
HotKeySet("{F7}" , "Login")
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=c:\users\marc\documents\form1.kxf
$Form1_1 = GUICreate("Form1", 625, 445, 192, 124)
$Benutzername = GUICtrlCreateInput("Benutzername", 24, 16, 249, 21)
$Passwort = GUICtrlCreateInput("Passwort", 24, 56, 249, 21)
$Server = GUICtrlCreateInput("Server", 24, 96, 65, 21)
$Channel = GUICtrlCreateInput("Channel", 24, 136, 65, 21)
$Charakter = GUICtrlCreateInput("Charakter", 24, 176, 65, 21)
$OK = GUICtrlCreateButton("OK", 136, 248, 353, 153, $WS_GROUP)
GUISetState(@SW_SHOW)
Dim $Form1_1_AccelTable[1][2] = [["{F7}", $OK]]
GUISetAccelerators($Form1_1_AccelTable)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Func Login ()
While 1
If $Server = 1 Then
MouseMove(23, 345)
EndIf
WEnd
EndFunc
While 1
sleep (1)
WEnd