View previous topic :: View next topic |
Author |
Message |
podstanar Advanced Cheater Reputation: 4
Joined: 02 May 2012 Posts: 82 Location: Flatland
|
|
Back to top |
|
|
LeFiXER Grandmaster Cheater Supreme Reputation: 20
Joined: 02 Sep 2011 Posts: 1055 Location: 0x90
|
Posted: Thu Sep 23, 2021 6:25 am Post subject: |
|
|
In the Cheat Table Lua Script place this code:
Code: |
local mv = getMemoryViewForm()
local scrHeight = getScreenHeight()
local scrWidth = getScreenWidth()
function fsMode()
if not mv.visible then mv.visible = true end
mv.BorderStyle = "bsNone"
mv.Width = scrWidth
mv.Height = scrHeight - 40
mv.Left = 0
mv.Top = 0
end
function nMode()
if not mv.visible then mv.visible = true end
mv.BorderStyle = "bsSizeable"
mv.Width = 1024
mv.Height = 786
mv.Left = scrWidth / 4
mv.Top = scrHeight / 4
end
|
Add an auto assembler script to Cheat Engine and set the hotkey to F11 (since it's the most commonly used one for this feature).
Set the script to this code:
Code: |
[ENABLE]
{$LUA}
fsMode()
{$ASM}
[DISABLE]
{$LUA}
nMode()
|
Now you can use F11 to Enable/Disable full-fullscreen mode.
|
|
Back to top |
|
|
Birdi Expert Cheater Reputation: 0
Joined: 08 Jun 2020 Posts: 122 Location: Migrating
|
Posted: Thu Sep 23, 2021 9:03 am Post subject: |
|
|
I just wanted to add onto what LeFixer offered:
Mainform hotkey and menuitem to toggle it, if that's easier somehow.
Code: |
state = false
function addMenuItems(caption,clickFunction)
local caption = caption or 'NewMenuItem1'
local parent = getMainForm().Menu.Items
for i=0,parent.Count-1 do
if parent[i].Caption == caption then return end
end
FSmenuitem = createMenuItem(parent)
parent.add(FSmenuitem)
FSmenuitem.Caption = caption
FSmenuitem.OnClick = clickFunction
end
function toggleFullscreen()
if state then
fsMode()
else
nMode()
end
state = not state
end
function fsMode()
local mv = getMemoryViewForm()
local scrHeight = getScreenHeight()
local scrWidth = getScreenWidth()
if not mv.visible then mv.visible = true end
mv.BorderStyle = "bsNone"
mv.Width = scrWidth
mv.Height = scrHeight - 40
mv.Left = 0
mv.Top = 0
end
function nMode()
local mv = getMemoryViewForm()
local scrHeight = getScreenHeight()
local scrWidth = getScreenWidth()
if not mv.visible then mv.visible = true end
mv.BorderStyle = "bsSizeable"
mv.Width = 1024
mv.Height = 786
mv.Left = scrWidth / 4
mv.Top = scrHeight / 4
end
createHotkey(toggleFullscreen,VK_F11)
setGlobalDelayBetweenHotkeyActivation(1000)
addMenuItems('Toggle Fullscreen',toggleFullscreen)
|
This only solves the OP's desire to make one given window (Memory Viewer) fullscreen, rather than any given one, though, so it may be worth looking into making it apply to the "active window" if possible; I'm not sure.
I'll also note that this currently forces the Memory Viewer to pivot to your Main monitor (1) if you use multiple, then change to Fullscreen.
I'll look into it if I find time/remember, but key functions to implement would be something of
Code: |
getWindowlist()
findWindow(classname OPTIONAL, caption OPTIONAL)
getWindow(windowhandle, command)
getForegroundWindow()
|
and work from there.
_________________
Trying to learn!
Add me on Discord if you want hands-on help: Birdi#0007 |
|
Back to top |
|
|
LeFiXER Grandmaster Cheater Supreme Reputation: 20
Joined: 02 Sep 2011 Posts: 1055 Location: 0x90
|
Posted: Thu Sep 23, 2021 9:31 am Post subject: |
|
|
Nice addition Birdi . I am certain my script only targeted the Memory Viewer Window. Nevertheless, your additions are very much welcome. Thank you.
|
|
Back to top |
|
|
podstanar Advanced Cheater Reputation: 4
Joined: 02 May 2012 Posts: 82 Location: Flatland
|
|
Back to top |
|
|
Birdi Expert Cheater Reputation: 0
Joined: 08 Jun 2020 Posts: 122 Location: Migrating
|
Posted: Thu Sep 23, 2021 11:02 pm Post subject: |
|
|
I'm not sure how CE would be able to change the taskbar for you, but you can select "Always Hide in Desktop Mode" in Taskbar settings so it's hidden in Fullscreen.
_________________
Trying to learn!
Add me on Discord if you want hands-on help: Birdi#0007 |
|
Back to top |
|
|
LeFiXER Grandmaster Cheater Supreme Reputation: 20
Joined: 02 Sep 2011 Posts: 1055 Location: 0x90
|
Posted: Sun Sep 26, 2021 6:15 am Post subject: |
|
|
Replacing this section will hide/show the taskbar
Code: |
-- Add this function
function ShowWindow(HWND, Cmd)
return executeCodeLocalEx('User32.ShowWindow', HWND, Cmd)
end
-- Replace with this code
function toggleFullscreen()
local hwnd = FindWindow('Shell_TrayWnd')
if hwnd ~= nil then
if state then
ShowWindow(hwnd, 0)
fsMode()
else
ShowWindow(hwnd, 1)
nMode()
end
state = not state
end
end
|
|
|
Back to top |
|
|
|