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 


combobox dropdown

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions
View previous topic :: View next topic  
Author Message
saik
Newbie cheater
Reputation: 0

Joined: 06 Apr 2016
Posts: 17

PostPosted: Sat May 07, 2016 2:21 pm    Post subject: combobox dropdown Reply with quote

it's impossible to make dropdown list to change the value from the script like that
Code:

newmem:

code:
  mov ecx,[eax+8]
  mov [ebp-4],008EB // here i need change [008EB] from the dropdown it's possible ?
  jmp return

address:
  jmp code
  nop
return:
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4702

PostPosted: Sat May 07, 2016 3:18 pm    Post subject: Reply with quote

Sure, that's possible. Assuming you're using a Lua script:
Code:
local value = 0x8EB

function CEComboBox1Change(sender)
  local i = sender.ItemIndex

  if i == 0 then
    value = 0x8EB
  elseif i == 1 then
    value = 0x1234
--elseif...
  end
end

--AA script:
autoAssemble(string.format([[newmem:

code:
  mov ecx,[eax+8]
  mov [ebp-4],%X
  jmp return

address:
  jmp code
  nop
return:]], value))

If that won't work well, you might find this useful.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
saik
Newbie cheater
Reputation: 0

Joined: 06 Apr 2016
Posts: 17

PostPosted: Sat May 07, 2016 3:28 pm    Post subject: Reply with quote

Thanks <3
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sat May 07, 2016 8:26 pm    Post subject: Reply with quote

If you activate the script outside of the dropdown first:
Code:
registersymbol(myvar)

newmem:

code:
  mov ecx,[eax+8]
  db C7 45 FC // starts the instruction: mov [ebp-4]
myvar:
  dd 8EB      // adds the value
  jmp return

address:
  jmp code
  nop
return:

In the dropdown, simply use:
Code:
writeInteger("myvar",#####)
Back to top
View user's profile Send private message
pox911
Grandmaster Cheater
Reputation: 28

Joined: 29 Nov 2008
Posts: 918

PostPosted: Sun May 08, 2016 10:26 pm    Post subject: Reply with quote

Wouldnt it be easier to just make it a normal variable? This way the drop down would just be a code in ce using the symbol.

Code:
label(DropDown)
registersymbol(DropDown)
newmem:

code:
  mov ecx,[eax+8]
  push eax
  mov eax,[DropDown]
  mov [ebp-4],eax
  pop eax
  jmp return

DropDown:
dd 8EB


address:
  jmp code
  nop
return:



Edit: Is this just being done via a normal CE window or a custom form?

_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions 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