#cs ----------------------------------------------------------------------------
[/autoit][autoit][/autoit][autoit]AutoIt Version: 3.3.1.1 (beta)
Author: myName
Script Function:
Template AutoIt script.
#ce ----------------------------------------------------------------------------
[/autoit][autoit][/autoit][autoit][/autoit][autoit]#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
Dim $dummy = "-----"
Dim $default_size = "53|333|22,4"
Dim $pos_main = MouseGetPos()
Dim $pos_shape = MouseGetPos()
MsgBox(0, "Mouse x,y:", $pos_main[0] & "," & $pos_main[1])
[/autoit][autoit][/autoit][autoit]#Region ### START Koda GUI section ### Form=
$frm_core_resize = GUICreate("Corel Resize Tool", 352, 116, 350, 234)
$label_main_size = GUICtrlCreateLabel("1. Bildgrösse: ", 24, 20, 80,20)
$input_main_size = GUICtrlCreateInput($dummy,110, 20, 100,20)
GUICtrlSetState($input_main_size,$GUI_DISABLE)
$label_shape_size = GUICtrlCreateLabel("2. Shapegrösse: ", 24, 50, 80, 20)
$input_shape_size = GUICtrlCreateInput($dummy,110, 50, 100,20)
GUICtrlSetState($input_shape_size,$GUI_DISABLE)
$label_resize = GUICtrlCreateLabel("3. Skaliere auf: ", 24, 80, 80, 20)
$combo_resize = GUICtrlCreateCombo("", 110, 75, 100, 25)
GUICtrlSetData($combo_resize,$default_size,"53")
$reset_size = GUICtrlCreateButton("Reset", 256, 26, 65, 33, $WS_GROUP)
$start_resize = GUICtrlCreateButton("Resize", 256, 66, 65, 33, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $reset_size
GUICtrlSetData($input_main_size,$dummy)
GUICtrlSetData($input_shape_size,$dummy)
Case $start_resize
If GUICtrlRead($input_main_size) = $dummy Or GUICtrlRead($input_shape_size) = $dummy Then
MsgBox(0,"Achtung","Die Bilder mittels Mausklick auswählen")
Else
;~ MouseClick(
[/autoit][autoit][/autoit][autoit][/autoit][autoit][/autoit][autoit]EndIf
EndSwitch
WEnd
Ich möchte Kordinaten des ersten Klicks in die 1. Inputbox schreiben danach den 2. Klick in die 2. Inputbox
so wie wenn Klick auf CorelFenster merke Position das in 2 Variablen, wie bekomme ich das hin das er merkt das ich woanders hinklicke also nicht auf die Buttons der Gui