SmallPlugin 1.8

Multimedia Builder

Re: Updated - SmallPlugin 1.8.6a

Postby dgilmour » Tue Aug 28, 2012 3:10 pm

See ASCII table
Code: Select all
String$ = 'BINARY::KL'
dgilmour
 
Posts: 523
Joined: Fri Oct 22, 2010 11:29 am
Location: Moskva, Rusko

Re: Updated - SmallPlugin 1.8.6a

Postby 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" :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.
Caml Light
 
Posts: 128
Joined: Sun Nov 28, 2010 7:01 pm

Re: Updated - SmallPlugin 1.8.6a

Postby 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:
Code: Select all
String$ = 'BINARY::' + CHR(26)
dgilmour
 
Posts: 523
Joined: Fri Oct 22, 2010 11:29 am
Location: Moskva, Rusko

Re: Updated - SmallPlugin 1.8.6a

Postby 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 :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...
Anthony
 
Posts: 101
Joined: Tue Jan 18, 2011 2:13 pm

Re: Updated - SmallPlugin 1.8.6a

Postby 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
Delboy
 
Posts: 834
Joined: Sat Oct 23, 2010 9:28 am
Location: Reading, UK

Re: Updated - SmallPlugin 1.8.6a

Postby 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")
dgilmour
 
Posts: 523
Joined: Fri Oct 22, 2010 11:29 am
Location: Moskva, Rusko

Re: SmallPlugin 1.8.8

Postby 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?
Caml Light
 
Posts: 128
Joined: Sun Nov 28, 2010 7:01 pm

Re: SmallPlugin 1.8.8

Postby 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")
dgilmour
 
Posts: 523
Joined: Fri Oct 22, 2010 11:29 am
Location: Moskva, Rusko

Re: SmallPlugin 1.8.8

Postby 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
test.jpg (87.77 KiB) Viewed 6728 times
Abduljabbar
 
Posts: 17
Joined: Sat Oct 30, 2010 2:53 pm
Location: Mosul, Iraq

Re: SmallPlugin 1.8.8.2

Postby 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
smallplugin_general_sample_menu.jpg (106.57 KiB) Viewed 6642 times
dgilmour
 
Posts: 523
Joined: Fri Oct 22, 2010 11:29 am
Location: Moskva, Rusko

PreviousNext

Return to MMB

Who is online

Users browsing this forum: No registered users and 0 guests

cron