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 


How to change the music volume on the trainer?
Goto page 1, 2, 3, 4  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
AylinCE
Grandmaster Cheater Supreme
Reputation: 31

Joined: 16 Feb 2017
Posts: 1234

PostPosted: Sun Feb 18, 2018 11:33 am    Post subject: How to change the music volume on the trainer? Reply with quote

@mgr.inz.Player mp3/waw Based on the encoding, I began to do a mp3 player.
But the list is formed and features are limited.
For example:
Sound level,
  I could not encode the reduction or duplication function! Rolling Eyes
I need help in this regard.

In my research, I found 2 different codes.
One has the PLAY-PAUSE-RESUME-STOP function:
.xm format but uses 25-35 MB a song going.


Code:
xmplayer.playXM( findTableFile('music2.xm'))
function CEButton1Click(sender)
xmplayer.playXM( findTableFile('music2.xm') )
end
function CEButton2Click(sender)
xmplayer_pause()
end
function CEButton3Click(sender)
xmplayer_resume()
end
function CEButton4Click(sender)
xmplayer_stop()
end
xmplayer.playXM( findTableFile('music5.xm'))
function CEButton5Click(sender)
xmplayer.playXM( findTableFile('music5.xm') )
end


Option 2 supports .mp3 format with a Lua support:
but only the PLAY function.

Code:
function CEButton1Click(sender)
  playSound('music11.mp3')
end


Code Forum: http://forum.cheatengine.org/viewtopic.php?t=584021

2 again, the ideal option.
but I want to adjust the volume.
thanks in advance for help.

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
MateeJr GT
Advanced Cheater
Reputation: 0

Joined: 24 Dec 2017
Posts: 66

PostPosted: Sun Feb 18, 2018 7:24 pm    Post subject: Re: How to change the music volume on the trainer? Reply with quote

Aylin wrote:
@mgr.inz.Player mp3/waw Based on the encoding, I began to do a mp3 player.
But the list is formed and features are limited.
For example:
Sound level,
  I could not encode the reduction or duplication function! Rolling Eyes
I need help in this regard.

In my research, I found 2 different codes.
One has the PLAY-PAUSE-RESUME-STOP function:
.xm format but uses 25-35 MB a song going.


Code:
xmplayer.playXM( findTableFile('music2.xm'))
function CEButton1Click(sender)
xmplayer.playXM( findTableFile('music2.xm') )
end
function CEButton2Click(sender)
xmplayer_pause()
end
function CEButton3Click(sender)
xmplayer_resume()
end
function CEButton4Click(sender)
xmplayer_stop()
end
xmplayer.playXM( findTableFile('music5.xm'))
function CEButton5Click(sender)
xmplayer.playXM( findTableFile('music5.xm') )
end


Option 2 supports .mp3 format with a Lua support:
but only the PLAY function.

Code:
function CEButton1Click(sender)
  playSound('music11.mp3')
end


Code Forum: http://forum.cheatengine.org/viewtopic.php?t=584021

2 again, the ideal option.
but I want to adjust the volume.
thanks in advance for help.




Hello. I Think i can Help you by using trackbar.

here is it
This just Like a Anything . This script i founded with lua Logic
Code:

UDF1.CELabel1.caption = UDF1.CETrackBar1.Position

or
Code:

UDF1.AlphaBlendValue = UDF1_CETrackBar1.Position)

Hope This logically Help You!

i Think like this?
(Your Music Here).Volume = UDF1.CETrackBar1.position
Put this code in Script
[/code]

_________________
Hi Lynxz Gaming
Back to top
View user's profile Send private message
TheyCallMeTim13
Wiki Contributor
Reputation: 50

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Sun Feb 18, 2018 9:01 pm    Post subject: Reply with quote

From celua.txt:
Quote:

xmplayer class
The xmplayer class has already been defined as xmplayer, no need to create it manually

properties
IsPlaying : boolean - Indicator that the xmplayer is currently playing a xm file
Initialized: boolean - Indicator that the xmplayer is actually actively loaded in memory

methods
setVolume(int)
playXM(filename, OPTIONAL noloop)
playXM(tablefile, OPTIONAL noloop)
playXM(Stream, OPTIONAL noloop)
pause()
resume()
stop()

_________________
Back to top
View user's profile Send private message Visit poster's website
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Sun Feb 18, 2018 9:27 pm    Post subject: Reply with quote

Quote:
Option 2 supports .mp3 format with a Lua support:
but only the PLAY function.

Code:
function CEButton1Click(sender)
playSound('music11.mp3')
end


Code Forum: http://forum.cheatengine.org/viewtopic.php?t=584021

2 again, the ideal option.
but I want to adjust the volume.
thanks in advance for help.


Since I am not found pure Lua script to manage sound except some Lua native or Lua add-on like LuaCOM, LuaJIT etc, then we can use Windows Volume Control which can execute by command line. Script below will open Windows Volume Control, so you can adding under ButtonOnClick event or other else.


Code:


-- I am use windows 7 64 bit

function openSndVol()
 shellExecute("C:\\Windows\\SysWOW64\\SndVol.exe")  --- for Windows 7 64 bit
 ---shellExecute("C:\\Windows\\System32\\SndVol32.exe") --- for Windows 7 32 bit
 ---shellExecute("C:\\Windows\\System32\\SndVo32l.exe -f  xxxxxxxx")    --- xxxxxxxx = screen position

note = [[  for win XP 32 bit Volume Control Position on Screen
SndVol.exe -m 62393798
SndVol.exe -m 61672911
SndVol.exe -m 62066118
SndVol.exe -m 62066118
SndVol.exe -m 61869522
SndVol.exe -m 62328270
SndVol.exe -m 62590410
SndVol.exe -m 61935053
SndVol.exe -m 62000586
SndVol.exe -m 62131658]]
end

UDF1.CEButton1.onClick = openSndVol


Another option to handling Volume Control is use Windows Power Shell script or simulating windows hotkeys shortcut.
Use hotkeys shortcut will depending by keyboard type and manufacture. Windows 7 doesn't have shortcut key for volume control.
CTRL + ALT + UP = Volume increase (general windows xp volume control setting or 'F8')
CTRL + ALT + DOWN = Volume decrease (general windows xp volume control setting or 'F9')
Anyhow, I know how to make hotkeys in CE, but I don't know how to implementing windows shortcut keys using CE Lua.

Cheers...

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 31

Joined: 16 Feb 2017
Posts: 1234

PostPosted: Sun Feb 18, 2018 10:00 pm    Post subject: Re: How to change the music volume on the trainer? Reply with quote

Lua is the appropriate language for the speaker sound module.
These examples are effective examples in the Windows 7 system module.
We are lua CE software rookie to do so. Sad
Maybe masters can get an idea from this example? Rolling Eyes


Code:
on MixerControl mscorlib System Enum ValueType Object Attribute System.Collections CollectionBase MulticastDelegate IDisposable System.Windows.Forms NativeWindow Exception value__ Uniform Left Right Channel_1 Channel_2 Channel_3 Channel_4 Y_SCX FM_TOWNS_SND BTV_DIGITAL QDESIGN_MUSIC VME_VMPCM TPC OLIGSM OLIADPCM OLICELP OLISBC OLIOPR LH_CODEC NORRIS SOUNDSPACE_MUSICOMPRESS DVM EXTENSIBLE dwParam1 dwParam2 szName fValue wMid wPid vDriverVersion szPname fdwSupport cDestinations cbStruct dwControlID cChannels hwndOwner cMultipleItems cbDetails paDetails dwValue value lMinimum lMaximum dwMinimum dwMaximum dwReserved1 dwReserved2 dwReserved3 dwReserved4 dwReserved5 dwReserved6 cSteps cbCustomData dwControlType fdwControl szShortName Bounds Metrics dwLineID cControls cbmxctrl pamxctrl dwType dwDeviceID dwDestination dwSource fdwLine dwUser dwComponentType cConnections Target MMSYSERR_BASE WAVERR_BASE MIXER_SHORT_NAME_CHARS MIXER_LONG_NAME_CHARS MAXPNAMELEN MIXERR_BASE CALLBACK_WINDOW MM_MIXM_LINE_CHANGE MM_MIXM_CONTROL_CHANGE SendMessage mixerOpen mixerGetLineInfo mixerClose mixerGetLineControls mixerGetControlDetails mixerSetControlDetails mixerGetID mixerGetDevCaps mixerGetNumDevs .ctor Contains GetMixerLineByIndex GetMixerFirstLineByComponentType GetMixerLineByControlId GetMixerLineByLineId GetMixerLineByLineSource GetMixerFirstLineByLineDestination Add Remove get_Item Item fnWaveInOpen fnWaveInClose fnWaveInGetDevCaps fnWaveOutOpen fnWaveOutClose fnWaveOutGetDevCaps fnMixerOpen fnMixerGetID fnMixerClose fnMixerGetLineInfo fnMixerGetLineControls fnMixerGetControlDetails fnMixerSetControlDetails fnMixerGetDevCaps fnCustom mRecording mPlayback get_Recording get_Playback get_Devices GetErrorDescription Recording Playback Devices GetControlByType GetControlByIndex mName mChannel mChannels mConnections mCControls mComponentType mFlag mId mSource mDestination mDirection mHMixer mControls mMixer get_Mixer set_Mixer get_HMixer set_HMixer get_Controls set_Controls get_Flag set_Flag get_Active get_Connected get_IsSource get_Channels set_Channels get_CControls set_CControls get_Connections set_Connections get_Direction set_Direction get_Name set_Name get_Source set_Source get_Destination set_Destination get_ComponentType set_ComponentType get_Id set_Id get_Channel set_Channel get_Volume set_Volume get_VolumeMax get_VolumeMin get_ContainsVolume get_Mute set_Mute get_ContainsMute get_Selected set_Selected get_ContainsSelected ToString HMixer Controls Flag Active Connected IsSource Channels CControls Connections Direction Name Source Destination ComponentType Id Volume VolumeMax VolumeMin ContainsVolume Mute ContainsMute Selected ContainsSelected Finalize GetMixerByDeviceId GetMixerByIndex GetMixerByName mDeviceId mSupportWaveIn mSupportWaveOut get_MixerName set_MixerName get_DeviceId set_DeviceId get_SupportWaveIn set_SupportWaveIn get_SupportWaveOut set_SupportWaveOut MixerName DeviceId SupportWaveIn SupportWaveOut CALLBACK_TYPEMASK CALLBACK_NULL CALLBACK_TASK CALLBACK_FUNCTION CALLBACK_THREAD CALLBACK_EVENT UNKNOWN PCM ADPCM IEEE_FLOAT VSELP IBM_CVSD ALAW MULAW DTS DRM OKI_ADPCM DVI_ADPCM IMA_ADPCM MEDIASPACE_ADPCM SIERRA_ADPCM G723_ADPCM DIGISTD DIGIFIX DIALOGIC_OKI_ADPCM MEDIAVISION_ADPCM CU_CODEC YAMAHA_ADPCM SONARC DSPGROUP_TRUESPEECH ECHOSC1 AUDIOFILE_AF36 APTX AUDIOFILE_AF10 PROSODY_1612 LRC DOLBY_AC2 GSM610 MSNAUDIO ANTEX_ADPCME formatTag nChannels nSamplesPerSec nAvgBytesPerSec nBlockAlign wBitsPerSample cbSize extraInfo get_Empty get_IsEmpty get_SizeOfEmpty get_SizeOf Empty IsEmpty SizeOfEmpty SizeOf WAVE_MAPPER waveOutOpen waveOutClose waveInClose waveInOpen Invoke IAsyncResult AsyncCallback BeginInvoke EndInvoke MixerLineChanged add_MixerLineChanged remove_MixerLineChanged mMixerType mLines mUserLines mCallbackWindow mMixerControlChangeHandler mMixerLineChangeHandler get_CallbackWindowHandle get_MixerType get_Lines get_UserLines get_DeviceDetail get_DeviceIdDefault ReloadLines PtrMixerControlChange PtrMixerLineChange Dispose CallbackWindowHandle Lines UserLines DeviceDetail DeviceIdDefault WS_CHILD WS_VISIBLE WM_ACTIVATEAPP mPtrMixerControlChange mPtrMixerLineChange Message WndProc mErrorCode get_ErrorCode ErrorCode mLine mControlId mControlType mControlFlag mMultipleItems mMinimum mMaximum mSteps get_Line set_Line get_Type set_Type get_ControlFlag set_ControlFlag get_MultipleItems set_MultipleItems get_Minimum set_Minimum get_Maximum set_Maximum get_Steps set_Steps get_ValueAsSigned set_ValueAsSigned get_ValueAsUnsigned set_ValueAsUnsigned get_ValueAsBoolean set_ValueAsBoolean Line Type ControlFlag MultipleItems Minimum Maximum Steps ValueAsSigned ValueAsUnsigned ValueAsBoolean hWnd msg wParam lParam phmx System.Runtime.InteropServices OutAttribute pMxId dwCallback dwInstance fdwOpen hmxobj pmxl fdwInfo hmx pmxlc fdwControls pmxcd fdwDetailsmixer fdwDetails mxId fdwId uMxId pmxcaps cbmxcaps authorName line index componentType controlId lineId lineSource lineDestination mixerLine ignoreExceptions funcName errorCode type mixerControl detail deviceId name mixer rate bits channels hWaveOut uDeviceID lpFormat dwFlags hwi hWaveIn object method hMixer callback result mixerType ptrMixerControlChange ptrMixerLineChange m errorMessage System.Reflection AssemblyTitleAttribute AssemblyDescriptionAttribute AssemblyConfigurationAttribute AssemblyCompanyAttribute AssemblyProductAttribute AssemblyCopyrightAttribute AssemblyTrademarkAttribute AssemblyCultureAttribute AssemblyVersionAttribute AssemblyDelaySignAttribute AssemblyKeyFileAttribute AssemblyKeyNameAttribute System.Security.Permissions SecurityPermissionAttribute SecurityAction System.Runtime.CompilerServices CompilationRelaxationsAttribute RuntimeCompatibilityAttribute WaveLibMixer StructLayoutAttribute LayoutKind MarshalAsAttribute UnmanagedType FieldOffsetAttribute DllImportAttribute user32.dll winmm.dll DefaultMemberAttribute ArrayList get_InnerList IEnumerator GetEnumerator get_Current MoveNext String op_Equality get_Count IntPtr Zero Marshal op_Inequality Clear RuntimeTypeHandle GetTypeFromHandle AllocHGlobal op_Explicit PtrToStructure FreeHGlobal Delegate Combine get_Handle CreateParams CreateHandle System.Diagnostics DebuggerNonUserCodeAttribute PermissionSetAttribute get_Msg get_WParam get_LParam DestroyHandle get_Size


Rolling Eyes Rolling Eyes Rolling Eyes Rolling Eyes

Thanks Corroder.
It opens a 2 or 3-digit speaker control set.
This is a big set from the trainer sometimes!
I'll work on the code you gave me.
If I get the result, I will present it to you with your CT file.

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Mon Feb 19, 2018 1:56 am    Post subject: Reply with quote

Code:
on MixerControl mscorlib System Enum ValueType Object Attribute System.Collections CollectionBase MulticastDelegate IDisposable System.Windows.Forms NativeWindow Exception value__ Uniform Left Right Channel_1 Channel_2 Channel_3 Channel_4 Y_SCX FM_TOWNS_SND BTV_DIGITAL QDESIGN_MUSIC VME_VMPCM TPC OLIGSM OLIADPCM OLICELP OLISBC OLIOPR LH_CODEC NORRIS SOUNDSPACE_MUSICOMPRESS DVM EXTENSIBLE dwParam1 dwParam2 szName fValue wMid wPid vDriverVersion szPname fdwSupport cDestinations cbStruct dwControlID cChannels hwndOwner cMultipleItems cbDetails paDetails dwValue value lMinimum lMaximum dwMinimum dwMaximum dwReserved1 dwReserved2 dwReserved3 dwReserved4 dwReserved5 dwReserved6 cSteps cbCustomData dwControlType fdwControl szShortName Bounds Metrics dwLineID cControls cbmxctrl pamxctrl dwType dwDeviceID dwDestination dwSource fdwLine dwUser dwComponentType cConnections Target MMSYSERR_BASE WAVERR_BASE MIXER_SHORT_NAME_CHARS MIXER_LONG_NAME_CHARS MAXPNAMELEN MIXERR_BASE CALLBACK_WINDOW MM_MIXM_LINE_CHANGE MM_MIXM_CONTROL_CHANGE SendMessage mixerOpen mixerGetLineInfo mixerClose mixerGetLineControls mixerGetControlDetails mixerSetControlDetails mixerGetID mixerGetDevCaps mixerGetNumDevs .ctor Contains GetMixerLineByIndex GetMixerFirstLineByComponentType........ and so on


This is seem like Microsoft Net Develover script. I think pure Lua / CE Lua can't handle this. Maybe Lua WinAPI able to handle it.
Generally programming language to handle MSDN scipt are C++ / C# / F# or VB.

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 31

Joined: 16 Feb 2017
Posts: 1234

PostPosted: Mon Feb 19, 2018 3:06 am    Post subject: Reply with quote

Ideas will always multiply and reach a common end.
Here is another familiar coding. (GiTHub publication) Wink

name of a member function: "up", "down", "toggle", "mute", "get"
command string to execute
a callable that will be called with the volume control as first parameter
E.g.:

Code:
volumecfg = volume_control({
  lclick="toggle",                        -- name of member function
  mclick=TERMINAL .. " -x alsamixer",     -- command to execute
  rclick=function(self) self:mute() end,  -- callable, equivalent to "mute"
})



Icon widget
You can use the module as a basis to implement your own volume widget. For example, an icon widget can be created as follows:


Code:
local function get_image(volume, state)
    local icondir = os.getenv("HOME") .. "/.local/share/icons/"
    if volume == 0 or state == "off"  then return icondir .. "audio_mute.png"
    elseif volume <= 33               then return icondir .. "audio_low.png"
    elseif volume <= 66               then return icondir .. "audio_med.png"
    else                                   return icondir .. "audio_high.png"
    end
end

local volume_widget = volume_control {
    tooltip = true,
    widget = wibox.widget.imagebox(),
    callback = function(self, setting)
        self.widget:set_image(
            get_image(setting.volume, setting.state))
    end,
}


We need FreeER's experience, unfortunately. Wink
I tried a few more options, the result is mediocre! Sad

Code:
if oldvolume==nil then oldvolume=volume end

function volume(vol, ...)
  local ID=sound_prepare(vol)
  if ID then oldVolume(knownStreams[ID], ...)
  else print('Volume not found') end
end
end
function CEButton4Click(sender)
volume(Vol, '90'); -- Set the volume to its half-way point.
end
function CEButton5Click(sender)
volume(Vol, '50'); -- Decrease the current  level by 10 (e.g. 80 would become 70).
end
function CEButton6Click(sender)
volume(Vol, '0');   -- Increase the current level by 0.
end


If we give up: On the keyboard, hold down the Windows icon key and
you can control the volume by moving the mouse wheel! Rolling Eyes

I'm going to have a little more work on this.

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Mon Feb 19, 2018 6:01 am    Post subject: This post has 1 review(s) Reply with quote

I don't have any real experience here. I don't make trainers. Even if I did I wouldn't add whatever music I wanted to it like I was distributing myspace (too old to reference?). If people want to listen to music they can play their own. However, my limited advice in this area is:

1. Instead of pasting random snippets from random places on the internet share the actual link.

Code:
volumecfg = volume_control({
  lclick="toggle",                        -- name of member function
  mclick=TERMINAL .. " -x alsamixer",     -- command to execute
  rclick=function(self) self:mute() end,  -- callable, equivalent to "mute"
})
seems to be from https://github.com/deficient/volume-control "Volume control for awesome window manager", so if you don't have awesome window manager it's not going to work and even if you did you probably couldn't interact with it via Cheat Engine's lua without a lot of work (even more so since it appears to be used for a config file which would only be ran when the window manager started, not whenever you wanted). Also based on the image it's probably a window manager for linux not windows... yep.

There's probably a reason there are not already 5 different posts here on CEF telling you an easy way to do it, likely because it's not actually easy.

2. I'd say go find some source code outside of CE that handles music the way you want and then wrap it up into a dll that you can ship with your trainer and load....But that's going to require you to understand how to create a dll. If anyone else was interested in doing it they probably already would have.

Alternatively stop using CE when you want a full trainer with lots of features that you can customize to your hearts content. It's not really designed for it, clearly. Learn to make trainers in an actual programming language where you have more control and options. Afterwards, if you want you can then bring some of that functionality back to CE with dlls or by learning Pascal and working with the CE source, etc.

_________________
https://github.com/FreeER/ has a few CE related repos
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 31

Joined: 16 Feb 2017
Posts: 1234

PostPosted: Mon Feb 19, 2018 10:14 am    Post subject: Reply with quote

Cheating time with CE: 5 years.
The time I started on the Trainer with CE: 6-7 months.
I manage, Facebook Group Member: 140.000 members (most not active!)
Number of games I collected and number of Trainer: 32
People are bored after a while. I feel it.
That's why I want to deal with a bit of fun.
Instead of constantly wrapping up the same film,
writing fun new scripts makes it more bearable! Rolling Eyes
Now our hobbies are this and we have fun, we enjoy.
Do not worry about us, Master Freeer. Please do me another favor! Smile
Your Lua language and experience will solve this issue. Smile

I know most participants are following these innovations and
they are trying to apply. Wink
I sent it to 14 people with the message up to now, CT!
and they continue to grow! Smile
Thank you for joining the forum.
Thanks also for your understanding and patience FreeER Master.

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Mon Feb 19, 2018 12:14 pm    Post subject: Reply with quote

CE actually loads winmm.dll module. There you can find this API:
WINMM.mciSendStringA


Downside is, you will have to save mp3 file to temp folder.

_________________
Back to top
View user's profile Send private message MSN Messenger
AylinCE
Grandmaster Cheater Supreme
Reputation: 31

Joined: 16 Feb 2017
Posts: 1234

PostPosted: Mon Feb 19, 2018 12:51 pm    Post subject: Reply with quote

mgr.inz.Player wrote:
CE actually loads winmm.dll module. There you can find this API:
WINMM.mciSendStringA


Downside is, you will have to save mp3 file to temp folder.



I give up now. Sad
The last person I expected was the owner of the code,
and you say that the remedies are limited! there is nothing to do.

sample:
Code:
UDF1.CEToggleBoxChange(sender)

  addresslist=getAddressList()
  if sender.state == 1 then
    CheatEntry=addresslist_getMemoryRecordByDescription(addresslist,[[??Windows icon Key??]])
    memoryrecord_freeze(CheatEntry)
  else
    CheatEntry=addresslist_getMemoryRecordByDescription(addresslist,[[??Windows icon Key??]])
    memoryrecord_unfreeze(CheatEntry)
control_setCaption(UDF1_CELabel, "Move the Mouse Wheel")
  end
end



I have one last request: windows icon key on the keyboard,
you need to encode it.
If I call this button with onClick, maybe I can find a solution.

The Windows Icon key encodes into a Script,
or embed it in the above code. The decision is yours. You are the masters.
I offer a CT prepares the remaining work.

Windows icon While the key is pressed, the mouse wheel can turn the sound on and off!
That's an idea, but I'm inadequate in coding! Rolling Eyes
Thanks.

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past


Last edited by AylinCE on Mon Feb 19, 2018 1:03 pm; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Mon Feb 19, 2018 12:54 pm    Post subject: Reply with quote

Aylin wrote:
Windows icon While the key is pressed, the mouse wheel can turn the sound on and off!
maybe with the awesome window manager previously mentioned but certainly not with the current version of windows 10 and it's default window manager, I tried because it would be a nice shortcut to know about.
_________________
https://github.com/FreeER/ has a few CE related repos
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 31

Joined: 16 Feb 2017
Posts: 1234

PostPosted: Mon Feb 19, 2018 1:13 pm    Post subject: Reply with quote

FreeER wrote:
Aylin wrote:
Windows icon While the key is pressed, the mouse wheel can turn the sound on and off!
maybe with the awesome window manager previously mentioned but certainly not with the current version of windows 10 and it's default window manager, I tried because it would be a nice shortcut to know about.


I found this was the closest result.
I reduced my .mp3 files by 3.40 minutes and 250-300 kB.
I increased your voices by 50%. It can be buried comfortably in the trainer.
But the ideas work well, visually well,
I'm weak in the code at the. Sad

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Mon Feb 19, 2018 1:57 pm    Post subject: Reply with quote

Give me a while, will send an example.

EDIT:
EDIT:

_________________


Last edited by mgr.inz.Player on Mon Feb 19, 2018 2:35 pm; edited 2 times in total
Back to top
View user's profile Send private message MSN Messenger
AylinCE
Grandmaster Cheater Supreme
Reputation: 31

Joined: 16 Feb 2017
Posts: 1234

PostPosted: Mon Feb 19, 2018 2:33 pm    Post subject: Reply with quote

mgr.inz.Player wrote:
Give me a while, will send an example.

Thanks Master

I am doing research for the Windows logo key.
It is not really logical, but it is said to be an Enable-Disable form.
Code:
“Disable the Windows key”


https://support.microsoft.com/en-us/help/216893/how-to-enable-or-disable-the-keyboard-windows-key

Code:
VK_LWIN
0x5B
Left Windows key (Natural keyboard)

VK_RWIN
0x5C
Right Windows key (Natural keyboard)


Time is your master. I'll wait. Thank you.

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Goto page 1, 2, 3, 4  Next
Page 1 of 4

 
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