exohaxor Expert Cheater
Reputation: 1
Joined: 02 Sep 2018 Posts: 101
|
Posted: Mon Dec 23, 2019 8:57 am Post subject: |
|
|
for some reason it doesnt work on CE 7.0
and very inefficient code
| Code: |
windowname="Discord"
local a={}local b=getWindow(getForegroundWindow(),GW_HWNDFIRST)local c=0;local d=getOpenedProcessID()while b~=0 and c<10000 do if getWindowProcessID(b)==d then a[#a+1]=b end;b=getWindow(b,GW_HWNDNEXT)c=c+1 end;local c;local e=allocateMemory(16)local f=getAddress("GetWindowRect")getWindowCaption(a[c])for c=1,#a do local h=executeCodeEx(0,nil,f,{type=0,value=a[c]},{type=0,value=e})if h~=nil and h~=0 and string.find(getWindowCaption(a[c]),windowname)then wleft=readInteger(e)wtop=readInteger(e+4)end end;deAlloc(e)
print(wtop,wleft) |
_________________
hi |
|