|
You last visited: Today at 10:01
Advertisement
autoit function alle x minuten ausführen
Discussion on autoit function alle x minuten ausführen within the AutoIt forum part of the Coders Den category.
05/01/2010, 16:10
|
#1
|
elite*gold: 0
Join Date: Mar 2009
Posts: 20
Received Thanks: 0
|
autoit function alle x minuten ausführen
Hallo, ist es möchlich eine funktion alle x minuten auszuführen und gleichzeitig das programm weiter laufen zu lassen
also sowas in der art
PHP Code:
blabla() ;funktion soll alle 2 sekunden ausgeführt werden blub() ; funktion soll alle 4 sekunden ausgeführt werden
MfG Lukas
|
|
|
05/01/2010, 17:23
|
#2
|
elite*gold: 1
Join Date: Feb 2009
Posts: 1,726
Received Thanks: 729
|
Schau dir mal AdlibEnabled an
PHP Code:
AdlibEnabled("Deine Function", 2000) ;Führt die Funktion einmal aller 2sek aus
|
|
|
05/02/2010, 12:49
|
#3
|
elite*gold: 4
Join Date: Aug 2008
Posts: 6,786
Received Thanks: 4,992
|
#moved
|
|
|
05/02/2010, 13:52
|
#4
|
elite*gold: 0
Join Date: Mar 2009
Posts: 20
Received Thanks: 0
|
du meinst warscheinlich "AdlibRegister ( "function" [, time] )" oder? das was du gesagt hast find ich in der hilfe nicht
...
ich weis nicht warum aber adlibregister geht bei mir nicht so wies sollte
PHP Code:
#include <String.au3> #include <Array.au3>
Func Test() MsgBox(0,"Test","klappt das so?")
EndFunc
Func Test1() MsgBox(0,"bla","ich glaube eher nicht") EndFunc while 1 AdlibRegister ( test() ,2000000 ) ;Führt die Funktion einmal aller 2sek aus AdlibRegister ( test1() ,3000000 ) WEnd
egal was ich fürne zeit eingebe .. die funktion wird alle paar ms ausgeführt
MfG Lukas
|
|
|
05/02/2010, 13:58
|
#5
|
elite*gold: 1
Join Date: Feb 2009
Posts: 1,726
Received Thanks: 729
|
ich nehm immer AdlibEnabled, aber wenn AdlibRegister auch zum Ziel führt...
|
|
|
05/02/2010, 14:18
|
#6
|
elite*gold: 0
Join Date: Mar 2009
Posts: 20
Received Thanks: 0
|
wie gesagt in autoit gibt es die funktion AdlibEnabled nicht!?
also in der hilfe kan ich sie nicht finden ...
und bei adlibregister funktoniert das mit der zeit nicht ->
MfG lukas
|
|
|
05/02/2010, 15:04
|
#7
|
elite*gold: 77
Join Date: May 2008
Posts: 5,430
Received Thanks: 5,876
|
Quote:
Originally Posted by luckylukas92
wie gesagt in autoit gibt es die funktion AdlibEnabled nicht!?
also in der hilfe kan ich sie nicht finden ...
und bei adlibregister funktoniert das mit der zeit nicht ->
MfG lukas
|
Adlibenable gibt es , nur in der Beta (und ind er neuen glaub ich) nicht mehr .
Aber früher gabs AdlibEnable noch .
Zu deinem Problem , machs doch so :
PHP Code:
Dim $timer[4]
For $i = 0 To UBound($timer) - 1 $timer[$i] = TimerInit() Next
;AdlibEnable("Start", 100) bzw AdlibRegister("Start", 100)
While 1 Send("hallo") Sleep(222) WEnd
Func Start() If TimerDiff($timer[0]) > 4000 Then $timer[0] = TimerInit() Blub() EndIf
If TimerDiff($timer[1]) > 8000 Then $timer[1] = TimerInit() Bla() EndIf
If TimerDiff($timer[2]) > 5000 Then $timer[2] = TimerInit() Blob() EndIf
If TimerDiff($timer[3]) > 1000 Then $timer[3] = TimerInit() Bling() EndIf EndFunc ;==>Start
Func Blub() Send("blub") EndFunc ;==>Blub
Func Bla() Send("bla") EndFunc ;==>Bla
Func Blob() Send("blob") EndFunc ;==>Blob
Func Bling() Send("bling") EndFunc ;==>Bling
|
|
|
|
Similar Threads
|
Alle 5 Minuten Kick
02/18/2010 - Metin2 Private Server - 5 Replies
naja hab das mit dem einlogg problem gelöst kommt schon das neue:
ich bekomm alle 5 minuten nen kick und weiss nich warum..
wisst ihr vielleciht woran das liegen könnte?
|
Need help to add 2 Function in bot build on Autoit
09/13/2009 - AutoIt - 6 Replies
Hey All,
How are you..?! Hope be good
I wanna help to add 2 Function in bot build on Autoit
The bot which i need to add on it at attachment
This bot maked Bywildspirit n this topic of bot here
So i ask if any one can help me to add function that stop this Bot after 3h ..? (i mean like Timer)(It's like Howl interval in this bot)
Coz i hate to take spwen to myself only By using Auto Howl Although my bag Full.
-Press ctrl+a (always) coz auto grab is very slow..
PLz Bro if Any one...
|
GUI Button function w/ autoit
01/02/2009 - Conquer Online 2 - 12 Replies
kk im a newbie at makin bots but heres the code i have now...
okay im a TOTAL newb at making stuff with autoit, so far i can only make simple things with clicking and what not...but i ran into a problem today. my bot creates a gui that instructs you on how to use the bot, what i need help with is how to create a hotkey that "Starts" the bot(the opposite of the exiting hotkey)
HotKeySet("^!x", "QuitProg")
Func QuitProg()
Exit
EndFunc
thats the exit hotkey that i got, but i was wondering...
|
Autoit function
03/17/2008 - Silkroad Online - 0 Replies
I'm just looking to write a quick autoit script so I can auto-ress if I need to delvl someone. It's my first time using autoit ^^
I found the Sleep (#) code to wait, but what is the code to select a skill?
I also would like to know how I can make the program loop until I press a button to end it.
I've looked around and used the search button, but I don't see any codes posted here, only the programs. Thx for anyone who can help me :D
|
Programme via AutoIt ausführen
08/08/2007 - General Coding - 6 Replies
Hallo.
Kurz und knapp: Gibt es eine Moeglichkeit, ein AU3 Script oder aehnliches (CFG/INI/EXE Dateien) ueber einen Befehl in einem "Hauptscript" auszufuehren?
Hab so ne Idee, bin mir jedoch nicht sicher, ob das so funktioniert
HotKeySet("{F1}", "Execute")
Func Execute
Exec("*/script.exe" 1;
|
All times are GMT +2. The time now is 10:01.
|
|