Sign in to follow this  
Followers 0
sandman

ProcSafe :: Check for dangerous processes

12 posts in this topic

#1 ·  Posted (edited)

I just whipped this up; It downloads a database of files from my website and checks them. Then it shows all the results to you; their danger rating, importance, other comments, stuff like that. If there is not an entry in the database for a process then for Danger, Importance, and Comments it returns Unknown. So, yeah. Enjoy!

; ProcessChecker :: Check for any dangerous processes on your computer

#cs
process.dat format:
:begin:
Process Name|Dangerous|Comments
#ce

#region Loading
InetGet("http://sandman.789mb.com/data.txt", "process.dat", 1, 0)
Global $processes = ProcessList()
#endregion Loading

#region GUI
#include <GUIConstants.au3>
#include <GUIListView.au3>

$win = GUICreate("ProcSafe Process Checker", 633, 453, -1, -1)
$proc = GUICtrlCreateListView("Process Name|Process ID|Dangerous|Comments", 10, 50, 610, 370, $LVS_SINGLESEL)
For $i = 0 To 4 Step 1
    _GUICtrlListViewSetColumnWidth($proc, $i, 150)
Next
_GenerateProcesses($processes, $proc)
$kill = GUICtrlCreateButton("Kill Selected", 200, 10, 205, 25, 0)
$menufile = GUICtrlCreateMenu("File")
$menufilesortname = GUICtrlCreateMenuItem("Sort by Process Name", $menufile)
$menufilesortdanger = GUICtrlCreateMenuItem("Sort by Danger", $menufile)
$menufilesep = GUICtrlCreateMenuItem("", $menufile)
$menufileexit = GUICtrlCreateMenuItem("Exit", $menufile)
$menuprocess = GUICtrlCreateMenu("Process")
$menuprocessgen = GUICtrlCreateMenuItem("Re/Generate Process List", $menuprocess)
$menuprocesskill = GUICtrlCreateMenuItem("Kill Selected", $menuprocess)
$menuhelp = GUICtrlCreateMenu("Help")
$menuhelpabout = GUICtrlCreateMenuItem("About", $menuhelp)
Dim $B_DESCENDING[_GUICtrlListViewGetSubItemsCount($proc)]
GUISetState(@SW_SHOW)
#endregion GUI

#region Events
While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $kill
            _KillProcess(ProcessExists(_GUICtrlListViewGetItemText($proc, -1, 0)), $proc)
        Case $menufilesortname
            _GUICtrlListViewSort($proc, $B_DESCENDING, 0)
        Case $menufilesortdanger
            _GUICtrlListViewSort($proc, $B_DESCENDING, 3)
        Case $menufileexit
            Exit
        Case $menuprocessgen
            _GenerateProcesses(ProcessList(), $proc)
        Case $menuprocesskill
            _KillProcess(ProcessExists(_GUICtrlListViewGetItemText($proc, -1, 0)), $proc)
    EndSwitch
WEnd
#endregion Events

#region Functions
Func _GenerateProcesses($aProcesses, ByRef $vListView)
    InetGet("http://sandman.789mb.com/data.txt", "process.dat", 1, 0)
    Local $file = FileRead("process.dat")
    _GUICtrlListViewDeleteAllItems($vListView)
    For $i = 1 To UBound($aProcesses, 1) - 1 Step 1
        $stringinstr = StringInStr($file, StringLower($aProcesses[$i][0]))
        If $stringinstr = 0 Then
            GUICtrlCreateListViewItem($aProcesses[$i][0] & "|" & ProcessExists($aProcesses[$i][0]) & "|No|", $proc)
        Else
            $line = FileReadLine("process.dat", $stringinstr)
            $split = StringSplit($line, "|")
            GUICtrlCreateListViewItem($split[1] & "|" & ProcessExists($split[1]) & "Yes|" & $split[2], $vListView)
            GUICtrlSetBkColor(-1, 0xff0000)
        EndIf
    Next
EndFunc

Func _KillProcess($sPID, ByRef $vListView)
    If Not ProcessExists($sPID) Then Return 0
    ProcessClose($sPID)
    Sleep(100)
    _GUICtrlListViewDeleteItemsSelected($proc)
EndFunc
#endregion Functions
Note: Run Koda and look for fd.exe, I left a little message :)

And for those who don't trust me with downloading the database: The link is: http://sandman.789mb.com/data.txt . Also you can see how the DB works there. Very simple. :P

Edited by sandman

[center]"Yes, [our app] runs on Windows as well as Linux, but if you had a Picasso painting, would you put it in the bathroom?" -BitchX.com (IRC client)"I would change the world, but they won't give me the source code." -Unknownsite . blog . portfolio . claimidcode.is.poetry();[/center]

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

I just whipped this up; It downloads a database of files from my website and checks them. Then it shows all the results to you; their danger rating, importance, other comments, stuff like that. If there is not an entry in the database for a process then for Danger, Importance, and Comments it returns Unknown. So, yeah. Enjoy!

; ProcessChecker :: Check for any dangerous processes on your computer

#cs
process.dat format:
:begin:
Process Name|Importance %|Danger %|Comments
#ce

#region Loading
InetGet("http://sandman.789mb.com/data.txt", "process.dat", 1, 0)
Global $processes = ProcessList()
#endregion Loading

#region GUI
#include <GUIConstants.au3>
#include <GUIListView.au3>

$win = GUICreate("ProcSafe Process Checker", 633, 453, -1, -1)
$proc = GUICtrlCreateListView("Process Name|Process ID|Importance|Danger|Comments", 10, 50, 610, 370, $LVS_SINGLESEL)
For $i = 0 To 4 Step 1
    _GUICtrlListViewSetColumnWidth($proc, $i, 122)
Next
_GenerateProcesses($processes, $proc)
$kill = GUICtrlCreateButton("Kill Selected", 200, 10, 205, 25, 0)
$menufile = GUICtrlCreateMenu("File")
$menufilesortname = GUICtrlCreateMenuItem("Sort by Process Name", $menufile)
$menufilesortdanger = GUICtrlCreateMenuItem("Sort by Danger", $menufile)
$menufilesep = GUICtrlCreateMenuItem("", $menufile)
$menufileexit = GUICtrlCreateMenuItem("Exit", $menufile)
$menuprocess = GUICtrlCreateMenu("Process")
$menuprocessgen = GUICtrlCreateMenuItem("Re/Generate Process List", $menuprocess)
$menuprocesskill = GUICtrlCreateMenuItem("Kill Selected", $menuprocess)
$menuhelp = GUICtrlCreateMenu("Help")
$menuhelpabout = GUICtrlCreateMenuItem("About", $menuhelp)
Dim $B_DESCENDING[_GUICtrlListViewGetSubItemsCount($proc)]
GUISetState(@SW_SHOW)
#endregion GUI

#region Events
While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $kill
            _KillProcess(ProcessExists(_GUICtrlListViewGetItemText($proc, -1, 0)), $proc)
        Case $menufilesortname
            _GUICtrlListViewSort($proc, $B_DESCENDING, 0)
        Case $menufilesortdanger
            _GUICtrlListViewSort($proc, $B_DESCENDING, 3)
        Case $menufileexit
            Exit
        Case $menuprocessgen
            _GenerateProcesses(ProcessList(), $proc)
        Case $menuprocesskill
            _KillProcess(ProcessExists(_GUICtrlListViewGetItemText($proc, -1, 0)), $proc)
    EndSwitch
WEnd
#endregion Events

#region Functions
Func _GenerateProcesses($aProcesses, ByRef $vListView)
    InetGet("http://sandman.789mb.com/data.txt", "process.dat", 1, 0)
    Local $file = FileRead("process.dat")
    _GUICtrlListViewDeleteAllItems($vListView)
    For $i = 1 To UBound($aProcesses, 1) - 1 Step 1
        $stringinstr = StringInStr($file, StringLower($aProcesses[$i][0]))
        If $stringinstr = 0 Then
            GUICtrlCreateListViewItem($aProcesses[$i][0] & "|" & ProcessExists($aProcesses[$i][0]) & "|Unknown|Unknown|Unknown", $proc)
        Else
            $line = FileReadLine("process.dat", $stringinstr)
            $split = StringSplit($line, "|")
            GUICtrlCreateListViewItem($split[1] & "|" & ProcessExists($split[1]) & "|" & $split[2] & "|" & $split[3] & "|" & $split[4], $vListView)
        EndIf
    Next
EndFunc

Func _KillProcess($sPID, ByRef $vListView)
    If Not ProcessExists($sPID) Then Return 0
    ProcessClose($sPID)
    Sleep(100)
    _GUICtrlListViewDeleteItemsSelected($proc)
EndFunc
#endregion Functions
Note: Run Koda and look for fd.exe, I left a little message :)

And for those who don't trust me with downloading the database: The link is: http://sandman.789mb.com/data.txt . Also you can see how the DB works there. Very simple. :P

Thats great! but you should make it work (i mean real bad proceses) Edited by Gif

Share this post


Link to post
Share on other sites

Yeah, like detecting what they're doing and what they're tracking. :) That'll be hard but worth it in the end!

For now I'm just going to add in malicious processes that I find from Google :P


[center]"Yes, [our app] runs on Windows as well as Linux, but if you had a Picasso painting, would you put it in the bathroom?" -BitchX.com (IRC client)"I would change the world, but they won't give me the source code." -Unknownsite . blog . portfolio . claimidcode.is.poetry();[/center]

Share this post


Link to post
Share on other sites

v1.01 released. Now uses different database structure.


[center]"Yes, [our app] runs on Windows as well as Linux, but if you had a Picasso painting, would you put it in the bathroom?" -BitchX.com (IRC client)"I would change the world, but they won't give me the source code." -Unknownsite . blog . portfolio . claimidcode.is.poetry();[/center]

Share this post


Link to post
Share on other sites

v1.02 released. Uses yet another structure.


[center]"Yes, [our app] runs on Windows as well as Linux, but if you had a Picasso painting, would you put it in the bathroom?" -BitchX.com (IRC client)"I would change the world, but they won't give me the source code." -Unknownsite . blog . portfolio . claimidcode.is.poetry();[/center]

Share this post


Link to post
Share on other sites

I looked at the database and desided to test to see if it accually can find dangerous processes so i created a file named 1 .exe and put it into a loop.

When it found it I got this error...

Line 73 (File "C:\Users\draygoes\Desktop\processcheack.au3
GUICtrlCreatListViewItem($splt[1]&"|"Processxists($slt[1]0&
"Yes|" & Split[3], $vListView)
GUICtrlCreatListViewItem($splt[1]&"|"Processxists($slt[1]0&
"Yes|" & ^ERROR)
Error: Array variable hs incorrect number o subscript or subscrit
demensionrange exceeded.

I tried to help fix but sence im a noob, I only made madders worse lol

So I returned it back to the way you had it and posted this.

Hope all goes well :)


Spoiler

 

"If a vegetarian eats vegetables,What the heck does a humanitarian eat?"

"I hear voices in my head, but I ignore them and continue on killing."

"You have forced me to raise the indifference warning to beige, it's a beige alert people. As with all beige alerts please prepare to think about the possibility of caring."

An optimist says that giving someone power DOESN'T immediately turn them into a sadist. A pessimist says that giving someone power doesn't IMMEDIATELY turn them into a sadist.

 

 

Share this post


Link to post
Share on other sites

I looked at the database and desided to test to see if it accually can find dangerous processes so i created a file named 1 .exe and put it into a loop.

When it found it I got this error...

Line 73 (File "C:\Users\draygoes\Desktop\processcheack.au3
GUICtrlCreatListViewItem($splt[1]&"|"Processxists($slt[1]0&
"Yes|" & Split[3], $vListView)
GUICtrlCreatListViewItem($splt[1]&"|"Processxists($slt[1]0&
"Yes|" & ^ERROR)
Error: Array variable hs incorrect number o subscript or subscrit
demensionrange exceeded.

I tried to help fix but sence im a noob, I only made madders worse lol

So I returned it back to the way you had it and posted this.

Hope all goes well :)

Sorry that was in the middle of updating the structure. It's fixed now.

[center]"Yes, [our app] runs on Windows as well as Linux, but if you had a Picasso painting, would you put it in the bathroom?" -BitchX.com (IRC client)"I would change the world, but they won't give me the source code." -Unknownsite . blog . portfolio . claimidcode.is.poetry();[/center]

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

I still get the error.

Just to make sure that we are on the same page, is this still the code?

; ProcessChecker :: Check for any dangerous processes on your computer

#cs
process.dat format:
:begin:
Process Name|Dangerous|Comments
#ce

#region Loading
InetGet("http://sandman.789mb.com/data.txt", "process.dat", 1, 0)
Global $processes = ProcessList()
#endregion Loading

#region GUI
#include <GUIConstants.au3>
#include <GUIListView.au3>

$win = GUICreate("ProcSafe Process Checker", 633, 453, -1, -1)
$proc = GUICtrlCreateListView("Process Name|Process ID|Dangerous|Comments", 10, 50, 610, 370, $LVS_SINGLESEL)
For $i = 0 To 4 Step 1
    _GUICtrlListViewSetColumnWidth($proc, $i, 150)
Next
_GenerateProcesses($processes, $proc)
$kill = GUICtrlCreateButton("Kill Selected", 200, 10, 205, 25, 0)
$menufile = GUICtrlCreateMenu("File")
$menufilesortname = GUICtrlCreateMenuItem("Sort by Process Name", $menufile)
$menufilesortdanger = GUICtrlCreateMenuItem("Sort by Danger", $menufile)
$menufilesep = GUICtrlCreateMenuItem("", $menufile)
$menufileexit = GUICtrlCreateMenuItem("Exit", $menufile)
$menuprocess = GUICtrlCreateMenu("Process")
$menuprocessgen = GUICtrlCreateMenuItem("Re/Generate Process List", $menuprocess)
$menuprocesskill = GUICtrlCreateMenuItem("Kill Selected", $menuprocess)
$menuhelp = GUICtrlCreateMenu("Help")
$menuhelpabout = GUICtrlCreateMenuItem("About", $menuhelp)
Dim $B_DESCENDING[_GUICtrlListViewGetSubItemsCount($proc)]
GUISetState(@SW_SHOW)
#endregion GUI

#region Events
While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $kill
            _KillProcess(ProcessExists(_GUICtrlListViewGetItemText($proc, -1, 0)), $proc)
        Case $menufilesortname
            _GUICtrlListViewSort($proc, $B_DESCENDING, 0)
        Case $menufilesortdanger
            _GUICtrlListViewSort($proc, $B_DESCENDING, 3)
        Case $menufileexit
            Exit
        Case $menuprocessgen
            _GenerateProcesses(ProcessList(), $proc)
        Case $menuprocesskill
            _KillProcess(ProcessExists(_GUICtrlListViewGetItemText($proc, -1, 0)), $proc)
    EndSwitch
WEnd
#endregion Events

#region Functions
Func _GenerateProcesses($aProcesses, ByRef $vListView)
    InetGet("http://sandman.789mb.com/data.txt", "process.dat", 1, 0)
    Local $file = FileRead("process.dat")
    _GUICtrlListViewDeleteAllItems($vListView)
    For $i = 1 To UBound($aProcesses, 1) - 1 Step 1
        $stringinstr = StringInStr($file, StringLower($aProcesses[$i][0]))
        If $stringinstr = 0 Then
            GUICtrlCreateListViewItem($aProcesses[$i][0] & "|" & ProcessExists($aProcesses[$i][0]) & "|No|", $proc)
        Else
            $line = FileReadLine("process.dat", $stringinstr)
            $split = StringSplit($line, "|")
            GUICtrlCreateListViewItem($split[1] & "|" & ProcessExists($split[1]) & "Yes|" & $split[2], $vListView)
            GUICtrlSetBkColor(-1, 0xff0000)
        EndIf
    Next
EndFunc

Func _KillProcess($sPID, ByRef $vListView)
    If Not ProcessExists($sPID) Then Return 0
    ProcessClose($sPID)
    Sleep(100)
    _GUICtrlListViewDeleteItemsSelected($proc)
EndFunc
#endregion Functions

edit: This is the code in the file it downloaded. Im posting that so that you can see if its downloading the right file.

1.exe|Trojan.W32.Tooso
a.exe|W32.Ahlem.A@mm
actalert.exe|Spyware.W32.DyFuCA
aq3hel~1.exe|Adware.GAIN/Aquatica.Process
arupld32.exe|Arupld32
asm.exe|Spyware
asmonitor.exe|Spware.w32.ActualSpy
backweb.exe|Backweb
bargains.exe|Adware.W32.BargainBuddy
basfipm.exe|Broadcom ASF IP monitoring service
belt.exe|searchv.com Spyware
bmupdate.exe|BookmarkExpress Spyware
bpk.exe|Blazing Tools Perfect Keylogger
cdaengine0500.dll|WildTangent Spyware
cds.exe|Backdoor.Spymon
cfmon.exe|w32.Randex Variant
check.exe|Adware.W32.GoGoTools
cmesys.exe|Adware.W32.Claria
cmrss.exe|Downloader.W32.Delf
crss.exe|W32.AGOBOT.GH Worm
crsss.exe|W32.Rbot.mx Worm
csrrs.exe|W32.Gaobot.AO Worm
ctfmon32.exe|CoolWebSearch Spyware
dcomcfg.exe|Virus / Trojan
ddcman.exe|WildTangent Broadcast Games Manager
desktop.exe|Backdoor.SdBot.md Trojan
dfrgsrv.exe|Trojan.W32.Zlob
dinst.exe|Downloader.W32.Intexp
dlhost.exe|lambigbrother Spyware
dssagent.exe|DSSAgent Spyware
dw.exe|Adware.W32.DelFin
exec.exe|W32/Spybot-Z Trojan
exp.exe|Trojan
explore.exe|GRAYBIRD.G virus
explorere.exe|W32.Yaha.x@MM Virus
fc.exe|CAMPURF Virus
fservice.exe|Backdoor.Prorat Trojan
gmt.exe|Adware.W32.Claria
gui.exe|Adware.W32.Shorty.Gopher
ibm00001.exe|Trojan.W32.Torpig
iexplorer.exe|AdClicker parasite
inst.exe|Trojan.W32.RealSearch
install.exe|Adware.W32.EasySearch
isamini.exe|Trojan.Zlob.Media-Codec
isamonitor.exe|Trojan.Zlob.Media-Codec
isass.exe|Optix.Pro virus
istsvc.exe|IST Service Spyware
kernel32.exe|Floodnet virus
keygen.exe|Backdoor.W32.Agent
lass.exe|Troj.Bdoor.AKM
license_manager.exe|Adware.MovieLand/MediaPipe.Process
lockx.exe|W32/Sdbot-ADD worm
logon.exe|adware.abox Hijacker
lsas.exe|W32.Agobot.AA
lsass32.exe|w32/Randex.AR Virus
lssas.exe|W32.AGOBOT.RL
ma.exe|lambigbrother Spyware
matcli.exe|Verizon Online Support Center
mediagateway.exe|Adware.W32.MediaAcess
mfc71.dll|Spyware.w32.fixer
microsoft.exe|GAOBOT Virus
mm.exe|Trojan.Spamforo
mrtstub.exe|Unclassified malware
msbb.exe|Adware.W32.BargainBuddy
msblast.exe|MSBlast Worm
mspmspv.exe|Chum-A Trojan
msmsg.exe|Backdoor.Prorat.10b3 Trojan
msmgs.exe|W32.Alcarys.B/G@mm Worm
mssearchnet.exe|Trojan.Zlob.D Trojan
mtask.exe|Troj/Banker-GQ Worm
mwsoemon.exe|MyWebSearch Toolbar
nail.exe|Trojan.Win32.Stervis.b
navapp.exe|NavExcel Adware
netmon.exe|Trojan.W32.MIMAIL
netsurf.exe|Optimum Online
netsvc.exe|Trojan.W32.Mytob
nls.exe|Navisearch / TopRebates Spyware
nsvsvc.exe|Adware.W32.DelFin
ntosa32.exe|W32.HLLW.Anig Trojan
nvcpl.exe|W32.SpyBot.S Worm
nvsc32.exe|Backdoor.IRC.Bot Trojan
optimize.exe|Spyware.W32.DyFuCA
p2pnetworking.exe|P2P Network AdWare
picsvr.exe|Adware.W32.DelFin
pmmon.exe|Trojan.Media-Codec.Process
pmsngr.exe|Trojan.Media-Codec.Process
poker.exe|Downloader.W32.Agent
powerreg|PowerReg Scheduler MalWare
pro.exe|Downloader.W32
resetservice.exe|Windows XP Activation Hack
rk.exe|Marketscore Internet Accelerator
rlvknlg.exe|RelevantKnowledge Adware
rundl32.exe|W32/Agobot-TO Worm
sacc.exe|Adware.W32.SurfAccuracy
sais.exe|180Solutions Spyware
sass.exe|Troj/Funsta-A
scchost.exe|DONK Virus
schedulingagent|Backdoor.Msic Trojan
scrss.exe|Troj/HacDef-R Trojan
scvhost.exe|W32/Agobot-S virus
senslogn.exe|Abetterinternet Spyware
servic.exe|Rbot worm variant
shmgrate.exe|Trojan.W32.GASTER
sms.exe|Win32.Deathat.A
smsss.exe|AGOBOT Worm
soproc.exe|SoftwareOnline Intelligent Downloader
spollsv.exe|Trojan.W32.LovGate
spool.exe|RapidBlaster SpyWare
spooler.exe|WIN32.RBOT Worm Module
spools.exe|W32/Kassbot-C Trojan
spoolsrv.exe|spoolsrv.exe Virus
spoolsvc.exe|W32.SXTB.A Trojan
sqlserver.exe|Trojan.W32.SAMX
sr.exe|Adware.W32.WinFixer
sservice.exe|Backdoor.Prorat Trojan
ssk.exe|Adware.W32.SurfSideKick
start.exe|Secret-Crush SpyWare
susp.exe|abetterinternet spyware
svch0st.exe|Trojan.Gamqowi
svchosts.exe|Trojan.W32.MyTob
svchot.exe|Trojan.W32.Amirecivel
svhost.exe|W32.Mydoom.l@mm
svshost.exe|Worm.P2P.Spybot.gen virus
sychost.exe|LEOX.B VIRUS
system32.exe|MARI Virus
sysupd.exe|Virus
taskbar.exe|Redline RegTweak
tbon.exe|Adware.W32.BestOffers
tbps.exe|Neo Toolbar Spyware
tool.exe|Trojan.W32.Mirchack
updater.exe|Trojan.W32.AGOBOT
updmgr.exe|eUniverse.com Spyware
wauclt.exe|w32.gaobot.ajd Worm
wdfmrg.exe|W32/Sdbot-ZN Worm
wfdmgr.exe|W32/Mytob-C Worm
whagent.exe|Whagent
whsurvey.exe|WebHancer Spyware
win.exe|Downloader.W32.Gen
win32.exe|RATEGA virus
winctlad.exe|WindUpdates Adware
winlogin.exe|RANDEX.E virus
winmain.exe|Trojan.Kondeli
winnt.exe|Downloader.W32.Haxdoor
winotify.dll|Spyware.W32.Abetterinternet
winshost.exe|TROJ_BAGLE.BE Trojan
winstall.exe|Adware.W32.SpySheriff
winsys.exe|bc-technologies spyware
winsys2.exe|Trojan
winupdate.exe|WORM_FALSU.A Trojan
winupdates.exe|Rbot Worm
wsys.exe|STARR keylogger
wtoolsa.exe|Adware.W32.WinTools
wupdt.exe|IMISERV virus
xhrmy.exe|Xhrmy.exe Adware
zango.exe|180Solutions Zango Spyware
Edited by draygoes

Spoiler

 

"If a vegetarian eats vegetables,What the heck does a humanitarian eat?"

"I hear voices in my head, but I ignore them and continue on killing."

"You have forced me to raise the indifference warning to beige, it's a beige alert people. As with all beige alerts please prepare to think about the possibility of caring."

An optimist says that giving someone power DOESN'T immediately turn them into a sadist. A pessimist says that giving someone power doesn't IMMEDIATELY turn them into a sadist.

 

 

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

Hm, that's weird. I don't understand why that's happening, $split[2] should be defined..

Edit: This happened after I actually added dangerous processes in, and there's still the same database structure, and the code is updated for that structure. I did some debugging and it seems that the error actually begins at line 74 (FileReadLine()). I'm not sure why, because it reads the file earlier with FileRead() with no problems. And this started happening because I changed the process.dat from just one line to what you have posted above. Hmm..

And yes, that's the correct file.

Edited by sandman

[center]"Yes, [our app] runs on Windows as well as Linux, but if you had a Picasso painting, would you put it in the bathroom?" -BitchX.com (IRC client)"I would change the world, but they won't give me the source code." -Unknownsite . blog . portfolio . claimidcode.is.poetry();[/center]

Share this post


Link to post
Share on other sites

I have edited this part of the code and it now works. The comments still doesnt work but I dont get the error anymore.

One problem still remains. The name of the bad process doesnt show.

$line = FileReadLine("process.dat", $stringinstr)
            $split = StringSplit($line, "|")
            GUICtrlCreateListViewItem($split[1] & "|" & ProcessExists($split[1]) & "|Yes|", $proc)
            GUICtrlSetBkColor(-1, 0xff0000)

Spoiler

 

"If a vegetarian eats vegetables,What the heck does a humanitarian eat?"

"I hear voices in my head, but I ignore them and continue on killing."

"You have forced me to raise the indifference warning to beige, it's a beige alert people. As with all beige alerts please prepare to think about the possibility of caring."

An optimist says that giving someone power DOESN'T immediately turn them into a sadist. A pessimist says that giving someone power doesn't IMMEDIATELY turn them into a sadist.

 

 

Share this post


Link to post
Share on other sites

Yes, because FileReadLine is returning "". I got that from my debug session. :)


[center]"Yes, [our app] runs on Windows as well as Linux, but if you had a Picasso painting, would you put it in the bathroom?" -BitchX.com (IRC client)"I would change the world, but they won't give me the source code." -Unknownsite . blog . portfolio . claimidcode.is.poetry();[/center]

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