SmallPlugin 1.8

Multimedia Builder (Legacy Forum)
dgilmour
Posts: 531
Joined: Fri Oct 22, 2010 11:29 am
Location: Moskva, Rusko
Contact:

Re: Updated - SmallPlugin 1.8

Post by dgilmour »

See ASCII table

Code: Select all

String$ = 'BINARY::KL'

Caml Light
Posts: 128
Joined: Sun Nov 28, 2010 7:01 pm

Re: Updated - SmallPlugin 1.8

Post by Caml Light »

Thank you, anyway there are characters that can't be converted from hex to symbol, for example: "1A" :D

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: 531
Joined: Fri Oct 22, 2010 11:29 am
Location: Moskva, Rusko
Contact:

Re: Updated - SmallPlugin 1.8

Post by dgilmour »

Caml Light wrote:there are characters that can't be converted from hex to ascii, for example: "1A"
It is also possible:

Code: Select all

String$ = 'BINARY::' + CHR(26)

Anthony
Posts: 97
Joined: Tue Jan 18, 2011 2:13 pm
Contact:

Re: Updated - SmallPlugin 1.8

Post by Anthony »

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 :shock: :?

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...
http://webfreesoftware.net

HTML Custom Free
Image

Delboy
Posts: 829
Joined: Sat Oct 23, 2010 9:28 am
Location: Reading, UK
Contact:

Re: Updated - SmallPlugin 1.8

Post by Delboy »

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: 531
Joined: Fri Oct 22, 2010 11:29 am
Location: Moskva, Rusko
Contact:

Re: Updated - SmallPlugin 1.8

Post by dgilmour »

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

Re: SmallPlugin 1.8

Post by Caml Light »

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: 531
Joined: Fri Oct 22, 2010 11:29 am
Location: Moskva, Rusko
Contact:

Re: SmallPlugin 1.8

Post by dgilmour »

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: 17
Joined: Sat Oct 30, 2010 2:53 pm
Location: Mosul, Iraq
Contact:

Re: SmallPlugin 1.8

Post by Abduljabbar »

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
test.jpg (87.77 KiB) Viewed 7356 times

dgilmour
Posts: 531
Joined: Fri Oct 22, 2010 11:29 am
Location: Moskva, Rusko
Contact:

Re: SmallPlugin 1.8

Post by dgilmour »

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
smallplugin_general_sample_menu.jpg (106.57 KiB) Viewed 7270 times

Post Reply