PHP Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region
$Form1 = GUICreate("Form1", 201, 138, 410, 508)
$Button1 = GUICtrlCreateButton("Button 1", 32, 24, 137, 25, 0)
$Button2 = GUICtrlCreateButton("Button 2", 32, 56, 137, 25, 0)
$Button3 = GUICtrlCreateButton("Button 3", 32, 88, 137, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion
While
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
guidelete ( $Form1 )
#Region
$Form2 = GUICreate("Form1", 395, 282, 381, 328)
$Pic1 = GUICtrlCreatePic("", 0, 0, 393, 281, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Button4 = GUICtrlCreateButton("Button1", 16, 240, 113, 25, 0)
$Button5 = GUICtrlCreateButton("Button2", 136, 240, 113, 25, 0)
$Button6 = GUICtrlCreateButton("Button3", 256, 240, 113, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion
While
$nMsg1 = GUIGetMsg()
Switch $nMsg1
Case $GUI_EVENT_CLOSE
Exit
Case $Button4
While
If winexist ("notepad") then
Sleep("500")
MouseClick("left", 300, 600)
MouseClick("left", 300, 600)
Sleep("500")
WEnd
Case $Button5
Exit
Case $Button6
MsgBox("Anleitung","hallo")
EndSwitch
WEnd
Endswitch
WEnd
PHP Code:
While
If winexist ("notepad") then
Sleep("500")
MouseClick("left", 300, 600)
MouseClick("left", 300, 600)
Sleep("500")
WEnd
hoffe auf hilfe