 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
omoe Grandmaster Cheater
Reputation: 8
Joined: 11 Jun 2013 Posts: 547
|
Posted: Tue Aug 13, 2013 4:54 pm Post subject: Trainers stopped the beep sound again , What is wrong? |
|
|
So it was working fine but now i tried to make a new trainer and when i was done i tested it and no beep when cheat is activated , im sure i checked the box , here is the script
| Code: |
function AboutClick(sender)
end
function ABOUTBUTTONChangeBounds(sender)
end
--TRAINERGENERATORSTART--
--This is autogenerated code. Changing code in this block will
--get erased and rewritten if you regenerate the trainer code
--Uncomment the following line if this is a Cheat Table format trainer and you don't want CE to show (Tip, save as .CETRAINER alternatively)
--hideAllCEWindows()
RequiredCEVersion=6.3
if (getCEVersion==nil) or (getCEVersion()<RequiredCEVersion) then
messageDialog('Please install Cheat Engine '..RequiredCEVersion, mtError, mbOK)
closeCE()
end
addresslist=getAddressList()
memrec3=addresslist_getMemoryRecordByID(addresslist,3)
memrec7=addresslist_getMemoryRecordByID(addresslist,7)
memrec3_hotkey0=memoryrecord_getHotkeyByID(memrec3,0)
memrec7_hotkey0=memoryrecord_getHotkeyByID(memrec7,0)
function onPostHotkey0(Hotkey)
--Executed after the "toggle*" cheat got executed
local memrec=memoryrecordhotkey_getOwner(Hotkey)
local isActive=memoryrecord_isActive(memrec) --get the state after the hotkey got triggered
cheatcomponent_setActive(CETrainer_CHEAT0, isActive)
if gBeepOnAction then
beep()
end
end
memoryrecordhotkey_onPostHotkey(memrec3_hotkey0,onPostHotkey0)
function onPostHotkey1(Hotkey)
--Executed after the "toggle*" cheat got executed
local memrec=memoryrecordhotkey_getOwner(Hotkey)
local isActive=memoryrecord_isActive(memrec) --get the state after the hotkey got triggered
cheatcomponent_setActive(CETrainer_CHEAT1, isActive)
if gBeepOnAction then
beep()
end
end
memoryrecordhotkey_onPostHotkey(memrec7_hotkey0,onPostHotkey1)
strings_add(getAutoAttachList(), "DuckTales.exe")
gBeepOnAction=false
form_show(CETrainer)
function AboutClick()
showMessage(gAboutText)
end
gAboutText=[[This trainer was made by Cheat Engine
www.cheatengine.org]]
function CloseClick()
closeCE()
return caFree --onClick doesn't care, but onClose would like a result
end
--TRAINERGENERATORSTOP--
|
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25806 Location: The netherlands
|
Posted: Tue Aug 13, 2013 4:56 pm Post subject: |
|
|
change gBeepOnAction=false to gBeepOnAction=true
_________________
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 |
|
 |
omoe Grandmaster Cheater
Reputation: 8
Joined: 11 Jun 2013 Posts: 547
|
Posted: Tue Aug 13, 2013 5:09 pm Post subject: |
|
|
| Dark Byte wrote: | | change gBeepOnAction=false to gBeepOnAction=true |
I did change it and still no beep sound :s
| Code: | function AboutClick(sender)
end
function ABOUTBUTTONChangeBounds(sender)
end
--TRAINERGENERATORSTART--
--This is autogenerated code. Changing code in this block will
--get erased and rewritten if you regenerate the trainer code
--Uncomment the following line if this is a Cheat Table format trainer and you don't want CE to show (Tip, save as .CETRAINER alternatively)
--hideAllCEWindows()
RequiredCEVersion=6.3
if (getCEVersion==nil) or (getCEVersion()<RequiredCEVersion) then
messageDialog('Please install Cheat Engine '..RequiredCEVersion, mtError, mbOK)
closeCE()
end
addresslist=getAddressList()
memrec3=addresslist_getMemoryRecordByID(addresslist,3)
memrec7=addresslist_getMemoryRecordByID(addresslist,7)
memrec3_hotkey0=memoryrecord_getHotkeyByID(memrec3,0)
memrec7_hotkey0=memoryrecord_getHotkeyByID(memrec7,0)
function onPostHotkey0(Hotkey)
--Executed after the "toggle*" cheat got executed
local memrec=memoryrecordhotkey_getOwner(Hotkey)
local isActive=memoryrecord_isActive(memrec) --get the state after the hotkey got triggered
cheatcomponent_setActive(CETrainer_CHEAT0, isActive)
if gBeepOnAction then
beep()
end
end
memoryrecordhotkey_onPostHotkey(memrec3_hotkey0,onPostHotkey0)
function onPostHotkey1(Hotkey)
--Executed after the "toggle*" cheat got executed
local memrec=memoryrecordhotkey_getOwner(Hotkey)
local isActive=memoryrecord_isActive(memrec) --get the state after the hotkey got triggered
cheatcomponent_setActive(CETrainer_CHEAT1, isActive)
if gBeepOnAction then
beep()
end
end
memoryrecordhotkey_onPostHotkey(memrec7_hotkey0,onPostHotkey1)
strings_add(getAutoAttachList(), "DuckTales.exe")
gBeepOnAction=true
form_show(CETrainer)
function AboutClick()
showMessage(gAboutText)
end
gAboutText=[[This trainer was made by Cheat Engine
www.cheatengine.org]]
function CloseClick()
closeCE()
return caFree --onClick doesn't care, but onClose would like a result
end
XMFILE=findTableFile('TRAINERXM')
xmplayer_playXM(XMFILE)
function onOpenProcess(processid)
xmplayer_stop()
end
--TRAINERGENERATORSTOP-- |
|
|
| Back to top |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Tue Aug 13, 2013 5:12 pm Post subject: |
|
|
What happens if you just launch CE and paste this and click Execute button few times:
beep() function depends on currently used Window sound scheme.
_________________
|
|
| Back to top |
|
 |
|
|
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
|
|