| View previous topic :: View next topic |
| Author |
Message |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25828 Location: The netherlands
|
Posted: Sun Apr 29, 2012 9:40 am Post subject: |
|
|
Yes, you can use readFloat or readInteger to set the text of the editfield.
You could update it constantly with a timer, but if you do that I recommend not updating the editbox the user is editing in. (use wincontrol_focused for that)
as for closing: in the form go to the onClose function. In there add the code:
_________________
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 |
|
 |
mordax Expert Cheater
Reputation: 1
Joined: 16 Apr 2010 Posts: 138
|
Posted: Sun May 20, 2012 10:54 pm Post subject: |
|
|
nice. thanks.
however another small question regarding editbox, well bit offtopic tho.
now that i have working buttons and editboxes. how can i assing hotkey to that button. otherwise user have to pop out of game and click the button. i would like to have hotkeys assigned to buttons.
i assume its under events and OnKeyPress?
i guess my problem is lack of lua knowledge, but can you give me example of hotkey?
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25828 Location: The netherlands
|
Posted: Mon May 21, 2012 7:07 am Post subject: |
|
|
createHotkey(function, virtualkeycode)
Check defines.lua for the VK_* codes
_________________
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 |
|
 |
mordax Expert Cheater
Reputation: 1
Joined: 16 Apr 2010 Posts: 138
|
Posted: Wed May 23, 2012 2:26 am Post subject: |
|
|
ummm not working. i must be doing something wrong.
i used this for whole thing.
| Code: | function CEButton14Click(sender)
writeInteger("[[[[[game.exe+00246FF]+2C]+4]+8]+20]+100", getProperty(UDF1_CEEdit14,"Text"))
createHotkey(CEButton14Click, 46)
end |
it says 45 is INSERT and 46 is DELETE. tried with both, but nothing happens.
i also tried VK_45 just in case (im quite sure tht one is wrong)
also what if i want to leave editbox out and make it change value instead. should i replace UDF1_CEEdit14 with value then?
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25828 Location: The netherlands
|
Posted: Wed May 23, 2012 2:32 am Post subject: |
|
|
createHotkey must be executed once, so putting it in the function it is going to call won't work
and if you still use 6.1 put CEButton14Click between quotes
| Code: |
function CEButton14Click(sender)
writeInteger("[[[[[game.exe+00246FF]+2C]+4]+8]+20]+100", getProperty(UDF1_CEEdit14,"Text"))
end
createHotkey(CEButton14Click, VK_INSERT)
|
and if you wish to just set a value use writeInteger("[[[[[game.exe+00246FF]+2C]+4]+8]+20]+100", value)
_________________
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 |
|
 |
mordax Expert Cheater
Reputation: 1
Joined: 16 Apr 2010 Posts: 138
|
Posted: Fri May 25, 2012 3:02 pm Post subject: |
|
|
works great now. thx.
however i still didn't get the readinteger to work. what should i do in order to show the value on float? just when i float over editbox then it would read the value and show it?!
small offtopic question about hotkey. wht should i do if i wanna leave editbox out of it and just use hotkey to write specified integer?
can i somehow make hotkey like
createhotkey(writeinteger) ? and then make it write to certain address.
|
|
| Back to top |
|
 |
mordax Expert Cheater
Reputation: 1
Joined: 16 Apr 2010 Posts: 138
|
Posted: Sun Aug 05, 2012 4:49 pm Post subject: |
|
|
help with read function plz.
i have tested, but did not get it to work.
here's what i have to edit the values.
| Code: | function CEButton1Click(sender)
writeInteger("[[[[[game.exe+B1234C]+1]+2]+3]+4]+5", getProperty(UDF1_CEEdit1,"Text"))
end |
can someone plz edit this example and add the read function to it?
i would like it to show the value when you hover mouse over the editbox.
it would be better to always show it, but i think it would conflict with editing ? that if i write value into editbox, then readinteger would overwrite the manual input?!
on mousehover would do just fine.
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25828 Location: The netherlands
|
Posted: Sun Aug 05, 2012 5:31 pm Post subject: |
|
|
use wincontrol_focused(object) to find out if the user has keyboard focus in the edit field (it returns true if it is)
And to set the text:
setProperty(UDF1_CEEdit1,"Text", readInteger("[[[[[game.exe+B1234C]+1]+2]+3]+4]+5"))
_________________
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 |
|
 |
Tuga How do I cheat?
Reputation: 0
Joined: 18 Jun 2013 Posts: 1
|
Posted: Tue Jun 18, 2013 1:00 pm Post subject: Sorry I dont understand |
|
|
Hello sorry for bring again this post but i dont understand your reply
writeInteger("[[game.exe]+00E2563]+2CC+41+38+42+C8", getProperty(FORMNAME_CEEdit1,"Text"))
1 - In "game.exe" - Put the name of the game i want cheat?
2 - "+00E2563" - Well i have pointers i put the Pointer or the first address?
EX: I have in cheat engine P ->100AD700 or I click with doble click in the address and copy the address pointer 01f565e8 offset 228
3 - Well the +2CC is my offset right? - In my case is only 228
|
|
| Back to top |
|
 |
|