Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <ButtonConstants.au3>
- #include <EditConstants.au3>
- #include <GUIConstantsEx.au3>
- #include <ListViewConstants.au3>
- #include <StaticConstants.au3>
- #include <WindowsConstants.au3>
- #include <GuiListView.au3>
- #include <File.au3>
- #Include <Misc.au3>
- #include <Sound.au3>
- #include <ImageSearch.au3>
- $x = 0
- $y = 0
- $gui = 0
- $active = 0
- $button = 0
- while 1
- $bild = _ImageSearch("FreeMail Login.bmp", 1, $x, $y, 1)
- If $bild = 1 Then
- if $active = 0 then
- $gui=guicreate("Button", 41, 20, $x + 140, $y - 6, $WS_POPUP, $WS_EX_TOPMOST)
- $button=GUICtrlCreatePic("button.bmp", 0, 0, 41, 20)
- guisetstate(@SW_show)
- $active = 1
- endif
- Else
- GUIDelete($gui)
- $active = 0
- EndIf
- sleep (200)
- GUICtrlSetOnEvent($button, aktion())
- wend
- func aktion()
- MsgBox(1, "teset", "test")
- EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement