Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Programming/using CE and copying values from other ce window

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
mordax
Expert Cheater
Reputation: 1

Joined: 16 Apr 2010
Posts: 138

PostPosted: Tue May 29, 2012 12:43 pm    Post subject: Programming/using CE and copying values from other ce window Reply with quote

title is bit confusing. but what this is about. is that there is a "bug" in ce that is very annoying.
for example when you have certain window open you cant open other windows in ce and thats annoying the shit out of me.

for example im writing a trainer using form editor. i want to "copy paste" something out of a cheat list, but problem is that when i open the address in cheat list (that is a pointer scan result) then i cant edit the form anymore while window is open. meaning i have to make a screenshot of it or copy paste each value out of it manually and then close the window and then copy paste them into form editor.

it would be a lot easier if it wouldnt restrict the usage of other windows while im having one window open. i have a level 5 pointer scan so it would so much easier if i can keep the pointer scan address open and just write the values from there into form editor. or is there any easier way of doing tht? like copying the pointer scan result address straight into form editor somehow?

this is here to make CE better in future :) not to say how crap it is.
thanks.
Back to top
View user's profile Send private message
Obitio
Advanced Cheater
Reputation: 0

Joined: 09 Apr 2012
Posts: 68
Location: null

PostPosted: Tue May 29, 2012 1:24 pm    Post subject: Re: Programming/using CE and copying values from other ce wi Reply with quote

mordax wrote:
bla bla bla

lol you mean that to put the pointer into your own program you need to $#@%# copy each address and offset because when you try to copy it into your programming language it turns out to be something like this:
<?xml version="1.0" encoding="utf-8"?>
<CheatTable>
<CheatEntries>
<CheatEntry>
<ID>0</ID>
<Description>"No description"</Description>
<Color>80000008</Color>
<VariableType>4 Bytes</VariableType>
<Address>343FE000</Address>
<Offsets>
<Offset>4321</Offset>
</Offsets>
</CheatEntry>
</CheatEntries>
</CheatTable>
Back to top
View user's profile Send private message
mordax
Expert Cheater
Reputation: 1

Joined: 16 Apr 2010
Posts: 138

PostPosted: Wed May 30, 2012 6:42 am    Post subject: Reply with quote

sasue do not reply if you have nothing to say. its called trolling. this post was meant for Dark Byte so he can fix that in future.

and NO. i was talking about some active window disabling other windows..DUH noob.
you're just a little smart-ass wannabe. i did not talk about my own program. i was talking about CHEAT ENGINE. whenever i open some specific window in CHEAT ENGINE, then im unable to use ANOTHER window in CHEAT ENGINE, because it won't allow to click on any other window but the one i opened. duh noob.

specific example is when i have something in cheat list, i double-click the address to check the pointer offsets and then i want to write it into lua, but i can't before i close the window, because it won't allow to click on any other window than the one opened.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25837
Location: The netherlands

PostPosted: Wed May 30, 2012 6:58 am    Post subject: Reply with quote

I'm not sure if allowing multiple edit windows open is the best solution for the userinterface

I could add a rightclick option to the addresslist that copies the address to clipboard in a [[[xxxx]+xxx]+xxx]+xxx format

Same for pointerscan result

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Cryoma
Member of the Year
Reputation: 198

Joined: 14 Jan 2009
Posts: 1819

PostPosted: Wed May 30, 2012 10:25 am    Post subject: Reply with quote

Dark Byte wrote:
I'm not sure if allowing multiple edit windows open is the best solution for the userinterface

I could add a rightclick option to the addresslist that copies the address to clipboard in a [[[xxxx]+xxx]+xxx]+xxx format

Same for pointerscan result

If you could do it so you can highlight all and rclick>copy that would be great.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25837
Location: The netherlands

PostPosted: Wed May 30, 2012 1:13 pm    Post subject: This post has 1 review(s) Reply with quote

Save this as a .lua file in the autorun folder of cheat engine, restart it and you'll have this feature

Code:

function copySelectedAddressesFromAddresslistToClipboard()
  result=''
  sr=addresslist_getSelectedRecords(getAddressList())
  for i=1, #sr do
    local mr=sr[i]
    local addressstring=''
    address, fulladdress=memoryrecord_getAddress(mr)

    if fulladdress~=nil then
      --first build up the [ characters
      for j=1,#fulladdress-1 do
        addressstring=addressstring..'['
      end

      addressstring=addressstring..getNameFromAddress(fulladdress[1])..']+'

      for j=2,#fulladdress do
        addressstring=addressstring..string.format('%x', fulladdress[j])
        if j~=#fulladdress then
          addressstring=addressstring..']+'
        end
      end


    else
      addressstring=getNameFromAddress(address)
    end

    result=result..addressstring.."\n\r\n\r"
  end


  if #result>0 then
    writeToClipboard(result)
  end
end

mf=getMainForm()
pm=component_findComponentByName(mf,"PopupMenu2") --I should have made PopupMenu of addresslist a published property...
pmi=menu_getItems(pm)
miCopySelection=createMenuItem(pm)
menuItem_setCaption(miCopySelection, "Copy selected addresses to clipboard")
menuItem_setShortcut(miCopySelection, "Ctrl+Alt+C")
menuItem_onClick(miCopySelection, copySelectedAddressesFromAddresslistToClipboard)
menuItem_add(pmi, miCopySelection)

oldPopupmenu2_onPopup=getMethodProperty(pm,"OnPopup")


function newPopupmenu2_onPopup(sender)
  sr=addresslist_getSelectedRecords(getAddressList())
  if #sr==0 then
    setProperty(miCopySelection, "Visible", "false")
  else
    setProperty(miCopySelection, "Visible", "true")
  end

  oldPopupmenu2_onPopup(sender)
end

setMethodProperty(pm,"OnPopup", newPopupmenu2_onPopup)

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites