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 


Simple Windows Title Changer

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Extensions
View previous topic :: View next topic  
Author Message
Corroder
Grandmaster Cheater Supreme
Reputation: 33

Joined: 10 Apr 2015
Posts: 1313

PostPosted: Sun Mar 22, 2020 1:22 am    Post subject: Simple Windows Title Changer Reply with quote

A simple app made using Cheat Engine 7.1 Custom.
Use for changing any window app with modern flat GUI.

Note :
The icons/images used on this project are not included.
You can set the icon/image event handlers using your own images or
normal CE buttons.


Download link:
https://mega.nz/#!extTzRJJ!xfoHTm0Aiekt22_IbF5wcw6zBWrheamFR47Ioqd2c98

Demo video:
https://youtu.be/ziWAFRWSwjk


Full code:

Code:
---------------------------------
-- Windows Title Changer
-- CE 7.1 / 7.0
-- By Corroder
-- 22-03-2020
---------------------------------

if main_form then main_form.destroy() end
main_form = createForm()
main_form.setSize(400,200)
main_form.Position = 'poScreenCenter'
main_form.BorderStyle = 'bsNone'
main_form.Color = 1184274
main_form.Caption = "CRDRDashboard"
main_form.OnMouseDown = function() main_form.DragNow() end

menu_panel = createPanel(main_form)
menu_panel.setSize(400,50)
menu_panel.setPosition(0,0)
menu_panel.Color = 2368548
menu_panel.BorderStyle = 'bsNone'
menu_panel.BevelOuter = 'bvNove'
menu_panel.BevelInner = 'bvNove'
menu_panel.OnMouseDown = function() main_form.DragNow() end

title_label = createLabel(menu_panel)
title_label.setPosition(10,15)
title_label.Font.Size = 10
title_label.Font.Name = 'Verdana'
title_label.Font.Color = 0xffffff
title_label.Caption = 'CRDR-Windows Title Changer'

exit_icon = createImage(menu_panel)
exit_icon.setSize(40,40)
exit_icon.setPosition(355,5)
exit_icon.Stretch = true
exit_icon.Cursor = -21
exit_icon.Picture.loadFromStream(findTableFile('exit_icon.png').Stream)

src_label = createLabel(main_form)
src_label.setPosition(10,60)
src_label.Font.Size = 10
src_label.Font.Name = 'Verdana'
src_label.Font.Color = 15570276
src_label.Caption = 'Window Title To Search :'

src_edit = createEdit(main_form)
src_edit.setPosition(10,src_label.Top + src_label.Height + 5)
src_edit.setSize(380,30)
src_edit.BorderStyle = 'bsNone'
src_edit.Color = 5066061
src_edit.Font.Size = 11
src_edit.Font.Name = 'Verdana'
src_edit.Font.Color = 0xffffff
src_edit.Text = ''

chg_label = createLabel(main_form)
chg_label.setPosition(10,src_edit.Top + src_edit.Height + 15)
chg_label.Font.Size = 10
chg_label.Font.Name = 'Verdana'
chg_label.Font.Color = 15570276
chg_label.Caption = 'Change To :'

chg_edit = createEdit(main_form)
chg_edit.setPosition(10,chg_label.Top + chg_label.Height + 5)
chg_edit.setSize(380,30)
chg_edit.BorderStyle = 'bsNone'
chg_edit.Color = 5066061
chg_edit.Font.Size = 11
chg_edit.Font.Name = 'Verdana'
chg_edit.Font.Color = 0xffffff
chg_edit.Text = ''

go_icon = createImage(main_form)
go_icon.setSize(40,40)
go_icon.setPosition(355,155)
go_icon.Stretch = true
go_icon.Cursor = -21
go_icon.Picture.loadFromStream(findTableFile('go_icon.png').Stream)

--- Handlers
function SetWindowText(hWnd, lpString)
 return executeCodeLocalEx('user32.SetWindowTextA',hWnd, lpString)
end

function changeWText(w, wname, stxt, ctxt)
 stxt = src_edit.Text
 ctxt = chg_edit.Text
 if stxt == '' or stxt == nil or ctxt == '' or ctxt == nil then
  showMessage('Text can not be empty. Please input the proper text')
  return
 end
 wname = stxt
 w=findWindow(nil,wname)
 if w ~= 0 then
  SetWindowText(w, ctxt)
 else
  showMessage('Failed to get window with caption ' .. wname..'.'..' Make sure the app is running')
  src_edit.Text = ''
  chg_edit.Text = ''
  return
 end
end


function clearance()
 closeCE()
 return caFree
end

main_form.Show()
go_icon.OnClick = changeWText
exit_icon.OnClick = clearance



Capture.JPG
 Description:
Windows Title Changer App.
 Filesize:  16.45 KB
 Viewed:  1713 Time(s)

Capture.JPG



_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Extensions 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