Multimedia Builder (Legacy Forum)
dgilmour
Posts: 543 Joined: Fri Oct 22, 2010 11:29 am
Location: Moskva, Rusko
Post
by dgilmour » Tue Aug 28, 2012 3:10 pm
Caml Light
Posts: 128 Joined: Sun Nov 28, 2010 7:01 pm
Post
by Caml Light » Wed Aug 29, 2012 3:48 pm
Thank you, anyway there are characters that can't be converted from hex to symbol, for example: "1A"
I've followed an other way:
Code: Select all
String$='HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment,PROCESSOR_ARCHITECTURE'
PluginSet("PlugIn","String$")
PluginRun("PlugIn","SetRegistryPath")
PluginRun("PlugIn","RegistryGetValue")
PluginGet("PlugIn","StringOut$")
If (StringOut$='x86') Then
RegistryKey$=''
End
If (StringOut$='AMD64') Then
RegistryKey$='\WOW6432Node'
End
String$='HKEY_LOCAL_MACHINE\SOFTWARE'+RegistryKey$+'\MySoftware,Value'
PluginSet("PlugIn","String$")
PluginRun("PlugIn","SetRegistryPath")
String$='HIDE /C REG ADD HKLM\SOFTWARE'+RegistryKey$+'\MySoftware /f /v Value /t REG_BINARY /d hexhexhexhexhex'
Run("CMD","String$")
What do you think about it? Is it a good solution for you?
Last edited by
Caml Light on Thu Aug 30, 2012 2:19 am, edited 1 time in total.
dgilmour
Posts: 543 Joined: Fri Oct 22, 2010 11:29 am
Location: Moskva, Rusko
Post
by dgilmour » Wed Aug 29, 2012 11:42 pm
Caml Light wrote: there are characters that can't be converted from hex to ascii, for example: "1A"
It is also possible:
Anthony
Posts: 101 Joined: Tue Jan 18, 2011 2:13 pm
Contact:
Post
by Anthony » Mon Sep 24, 2012 7:03 pm
Hi all
,
How delete all Menu Items with SmallPlugin demo
Help File
Code: Select all
String$='IDsRange1, IDsRange2, ..., IDsRangeN'
PluginSet("PlugIn","String$")
PluginRun("PlugIn","DeleteMenuItem")
My code doesn't work
Code: Select all
String$='FileMenuHandle, ViewMenuHandle, ToolsMenuHandle, HelpMenuHandle'
PluginSet("PlugIn","String$")
PluginRun("PlugIn","DeleteMenuItem")
Strange works here
Code: Select all
Integer=FileMenuHandle
PluginSet("PlugIn","Integer")
PluginRun("PlugIn","DeleteMenuItem"
**
Integer=ViewMenuHandle
PluginSet("PlugIn","Integer")
PluginRun("PlugIn","DeleteMenuItem"
etc...
Delboy
Posts: 829 Joined: Sat Oct 23, 2010 9:28 am
Location: Reading, UK
Contact:
Post
by Delboy » Mon Sep 24, 2012 7:24 pm
start_id being
first menu item
end_id being
last menu item
so as in your code (String$='FileMenuHandle, ViewMenuHandle, ToolsMenuHandle, HelpMenuHandle')
start_id would be FileMenuHandle
end_id would be HelpMenuHandle
Code: Select all
RemoveMenu$ = CHAR(start_id) + '%' + CHAR(end_id)
PluginSet("PlugIn","RemoveMenu$")
PluginRun("PlugIn","DeleteMenuItem")
Cheers
DMFX Player v3.0.9.7 Released 02/03/2016
dgilmour
Posts: 543 Joined: Fri Oct 22, 2010 11:29 am
Location: Moskva, Rusko
Post
by dgilmour » Tue Sep 25, 2012 12:00 am
or
Code: Select all
String$ = CHAR(FileMenuHandle) + ',' + CHAR(ViewMenuHandle) + ',' + CHAR(ToolsMenuHandle) + ',' + CHAR(HelpMenuHandle)
PluginSet("PlugIn","String$")
PluginRun("PlugIn","DeleteMenuItem")
Caml Light
Posts: 128 Joined: Sun Nov 28, 2010 7:01 pm
Post
by Caml Light » Tue Nov 08, 2016 10:14 pm
Hi digilmour, hi guys!
With SmallPlugin I'm trying to read the value of a registry key:
String$='HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MySoftware,DisplayVersion'
PluginSet("SmallPlugin","String$")
PluginRun("SmallPlugin","SetRegistryPath")
PluginRun("SmallPlugin","RegistryGetValue")
PluginGet("SmallPlugin","StringOut$")
Message("StringOut$","")
Exit()
The problem is that under 64bit OS the registry key automatically redirect to:
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node \Microsoft\Windows\CurrentVersion\Uninstall\MySoftware
Clearly that gives me no value! It there a solution?
dgilmour
Posts: 543 Joined: Fri Oct 22, 2010 11:29 am
Location: Moskva, Rusko
Post
by dgilmour » Fri Nov 11, 2016 11:31 am
Caml Light wrote: Hi digilmour, hi guys!
With SmallPlugin I'm trying to read the value of a registry key:
String$='HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MySoftware,DisplayVersion'
PluginSet("SmallPlugin","String$")
PluginRun("SmallPlugin","SetRegistryPath")
PluginRun("SmallPlugin","RegistryGetValue")
PluginGet("SmallPlugin","StringOut$")
Message("StringOut$","")
Exit()
The problem is that under 64bit OS the registry key automatically redirect to:
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node \Microsoft\Windows\CurrentVersion\Uninstall\MySoftware
Clearly that gives me no value! It there a solution?
Luckily all required software is still installed and I have added functionality you need:
Code: Select all
String$='HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MySoftware, DisplayVersion, 64KEY'
PluginSet("SmallPlugin","String$")
PluginRun("SmallPlugin","SetRegistryPath")
Abduljabbar
Posts: 16 Joined: Sat Oct 30, 2010 2:53 pm
Location: Mosul, Iraq
Contact:
Post
by Abduljabbar » Mon Sep 04, 2017 7:05 am
Thanks for the update dgilmour,
But I have an issue. When I change the direction of the menu to (From Right to left), the icons stay at the left and does not go to the right.
I've attached a photo to see what I mean.
I'll appreciate very much a small update for this issue <3
Regards
Abduljabbar
Attachments
test.jpg (87.77 KiB) Viewed 7785 times
dgilmour
Posts: 543 Joined: Fri Oct 22, 2010 11:29 am
Location: Moskva, Rusko
Post
by dgilmour » Mon Oct 02, 2017 5:57 pm
Hi Abduljabbar,
glad to see you again! I have changed icon area alignment in right-ordered menus and also fixed memory leak in style libraries.
smallplugin_general_sample_menu.jpg (106.57 KiB) Viewed 7699 times