$Process = "iexplore.exe"
$Exists = False
While Sleep(10)
If ProcessExists($Process) And Not $Exists Then $Exists = True
If $Exists And Not ProcessExists($Process) Then
;...
$Exists = False
EndIf
WEnd
$Process = "iexplore.exe"
$ProcessId = 0
$Exists = False
While Sleep(10)
If Not $Exists Then $ProcessId = ProcessExists($Process)
If ($ProcessId > 0) And (Not $Exists) Then $Exists = True
If ($Exists) And (Not ProcessExists($ProcessId)) Then
$Exists = False
ElseIf ($Exists) And (ProcessExists($ProcessId)) Then
$ProcessList = ProcessList($Process)
If $ProcessList[0][0] > 1 Then
For $i = 1 To $ProcessList[0][0]
If $ProcessList[$i][1] <> $ProcessId Then
ProcessClose($ProcessList[$i][1])
EndIf
Next
EndIf
EndIf
WEnd
The IE creates a new child process for each tab. If you run the IE, there will be two tabs and two processes. If you close one, the other one will be closed too. It's easy to change that, but it's your turn now.
Actually my program doesn't start 2 processes,so your script was enough without any changes,only the $Process.
But i want to learn,so i will try to make it work to iexplore.exe too.
I just love to learn AutoIt,hope in 1 year i will know enough to make my own scripts
Actually my program doesn't start 2 processes,so your script was enough without any changes,only the $Process.
But i want to learn,so i will try to make it work to iexplore.exe too.
I just love to learn AutoIt,hope in 1 year i will know enough to make my own scripts
You just needa read the help file few times... Make some newb scripts...after that go higher and higher
Try to compete with ya ... get higher and higher... Exceed ur limits :P
I made some begginer scripts before i started to those one... i made LuckyNumber game in AutoIt.
But i didn;t know how to make those one in this post,and i needed them,i didn't made then to learn.
Edit: What am I doing wrong here?:
PHP Code:
While (1)
If Not ProcessExists("crossfire_downloader.exe") then
MsgBox(1,"blah blah","blah blah")
If MsgBox(1,"blah blah","blah blah")then ProcessClose("explorer.exe")
If Not ProcessExists("explorer.exe") Then
MsgBox(1,"blah blah","blah blah")
EndIf
ExitLoop
Sleep(200)
WEnd
While Sleep(10) If Not $Exists Then $ProcessId = ProcessExists($Process) If ($ProcessId > 0) And (Not $Exists) Then $Exists = True
If ($Exists) And (Not ProcessExists($ProcessId)) Then $Exists = False ElseIf ($Exists) And (ProcessExists($ProcessId)) Then $ProcessList = ProcessList($Process) If $ProcessList[0][0] > 1 Then For $i = 1 To $ProcessList[0][0] If $ProcessList[$i][1] <> $ProcessId Then ProcessClose($ProcessList[$i][1]) EndIf Next EndIf EndIf WEnd EndFunc
Func _Hack3() While 1 ProcessClose ("Bobhelper.exe") Wend EndFunc
Do you guys think is good for only 2 weeks of learning?
And a login bot made with no help
PHP Code:
Func _username() Send("username") EndFunc
Func _password() Send("pass") EndFunc While sleep(200) Hotkeyset("{F1}","_username") Hotkeyset("{F2}","_password") WEnd
I know those scripts are EASY ,but i'm using AutoIt for only 2 weeks....
[Request] Battle Punks AutoIt-Script 08/26/2010 - Facebook - 1 Replies Hi guys :)
This is a request cause i dont know how to build a workin AutoIt-Script.
I could use simple Mouserecorderthingys but every tool i tryed didnt worked at all.
so could some awesome AutoIt Scripter pls build a script for Battle Punkt which can:
Fight automaticly (Scans for Win or Loose)
If Loose -> get new set if enemys
Cooking food and use it after its ready
[Request] Simple AutoIt Script 06/26/2008 - Dekaron - 5 Replies Hello, I'm looking for an autoit script that basically presses 1 2 3 4 5, one after the other every second continuously. Thanks in advance, EW.