Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function checkProcessMajor()
- reinitializeSymbolhandler()
- if getAddress("pepflashplayer.dll")~=0 or
- getAddress("AdobeCPGetAPI") ~=0 then
- return true
- end
- return false
- end
- alreadycheckedPIDS={}
- openNextProcTimer = createTimer(nil,false)
- timer_setInterval(openNextProcTimer, 1000)
- timer_onTimer(openNextProcTimer,
- function (sender)
- local tempPIDtable = getPids()
- if #tempPIDtable == 0 then return end
- timer_setEnabled(sender,false)
- openProcess(tempPIDtable[1])
- end
- )
- function getPids()
- local SL=createStringlist()
- getProcesslist(SL)
- local tempPIDtable={}
- for i=0,strings_getCount(SL)-1 do
- local entry = strings_getString(SL,i)
- local processname = entry:sub(10,255)
- local PID = tonumber('0x'..entry:sub(1,8))
- if processname == process then
- if alreadycheckedPIDS[PID]~=true then
- table.insert(tempPIDtable,PID)
- end
- end
- end
- object_destroy(SL)
- return tempPIDtable
- end
- function checkProcess(sender)
- timer_setEnabled(sender,false)
- alreadycheckedPIDS[getOpenedProcessID()]=true
- if checkProcessMajor() then
- timer_setEnabled(openNextProcTimer,false)
- alreadycheckedPIDS={}
- enableCheatsGuiWhatEver()
- else
- timer_setEnabled(openNextProcTimer,true)
- end
- end
- function AttachList()
- AttachItems = combobox_getItems(AttachFirst[10])
- AttachIndex = combobox_getItemIndex(AttachFirst[10])
- if AttachIndex == -1 then return end
- if AttachIndex == 0 then return showMessage("Selecione um processo:") end
- if strings_getString(AttachItems,AttachIndex)=='chrome.exe' then return AttachToChrome() end
- openProcess(strings_getString(AttachItems,AttachIndex))
- errorOnLookupFailure(false)
- reinitializeSymbolhandler()
- err=getAddress("kernel32.dll")==0
- if err==true then
- showMessage("Processo não encontrado.")
- else
- local PID=getOpenedProcessID()
- control_setCaption(AttachFirst[9], "Aplicado ao PID nº: " .. PID)
- control_setEnabled(AttachFirst[3], true)
- showMessage("Sucesso")
- end
- end
- function AttachClose()
- closeCE()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement