Sign in to follow this  
Followers 0
neo van matix

Call functions on programstart ?

6 posts in this topic

heyho,

i use the OnEvent-Mode...

how i can call functions at program start? / how i can permanantly call functions ?

i tried following:

While 1

Sleep(1000)

XYZ()

BLA()

WEnd

but nothing happens... ?


Attention! English noob ^^

Share this post


Link to post
Share on other sites



is there more code then just that???

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

is there more code then just that???

8)

:lmao:

#include <GUIConstants.au3>
#include <file.au3>
#include <Array.au3>

Opt("GUIOnEventMode", 1)

#Region
$Form1 = GUICreate("Auto-Scanner", 461, 288, 245, 165)
$Group1 = GUICtrlCreateGroup("Offene Scans", 5, 0, 141, 231)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$List1 = GUICtrlCreateList("", 10, 15, 130, 218)
$Group2 = GUICtrlCreateGroup("Viren-Definitionen", 150, 0, 306, 146)
$Label1 = GUICtrlCreateLabel("", 155, 15, 300, 120)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Button1 = GUICtrlCreateButton("Update", 155, 165, 61, 21, 0)
$Button2 = GUICtrlCreateButton("Copy2Clipboard", 230, 165, 86, 21, 0)
$Group3 = GUICtrlCreateGroup("", 150, 150, 176, 46)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Button3 = GUICtrlCreateButton("Refresh", 10, 235, 50, 20, 0)
$Button4 = GUICtrlCreateButton("Scan", 60, 235, 50, 20, 0)
$MenuItem1 = GUICtrlCreateMenu("Datei")
$MenuItem4 = GUICtrlCreateMenu("Scannen")
$MenuItem3 = GUICtrlCreateMenu("Viren-Update")
$MenuItem2 = GUICtrlCreateMenu("Info")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

GUISetOnEvent($GUI_EVENT_CLOSE, "CLOSE")
GUICtrlSetOnEvent($Button1, "GETDEF")
GUICtrlSetOnEvent($Button2, "COPY2CLIPBOARD")
GUICtrlSetOnEvent($Button3, "GETDIRS")


While 1
    Sleep(100)
WEnd

Func ABOUT()
    msgbox(0, "Info...", "This script is written by Bastian Müller")
EndFunc

so, i would like to run the function ABOUT() every 2 Minutes... but how ?


Attention! English noob ^^

Share this post


Link to post
Share on other sites

check AdlibEnable in help

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

Hehe nice, thank u :lmao:


Attention! English noob ^^

Share this post


Link to post
Share on other sites

welcome

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0