Right Click Help
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Right Click Help

Started by Exile, 07 January, 2005, 11:28:04

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Exile

I have a  right-click menu for the hub bot that i am developing. I also have 'Prefix' as a variable in the GUI I am building for it...I was wondering how I would write the right-click commands because if the prefix is changed in the GUI, my current setup wont work  ?( . This is what I have atm:

OpConnected = NewUserConnected

function customCMDS(user)
	user:SendData("$UserCommand 255 7") -- Clears Right-Click Menu First
	user:SendData("$UserCommand 1 3 Evil-Eye Right-Click Menu\\Current Version $<%[mynick]> "..Version.." %[line:BotNick]||")
end

i was wondering if the following would work...

OpConnected = NewUserConnected

function customCMDS(user)
	user:SendData("$UserCommand 255 7") -- Clears Right-Click Menu First
	user:SendData("$UserCommand 1 3 Evil-Eye Right-Click Menu\\Current Version $<%[mynick]> "Prefix""..Version.." %[line:BotNick]||")
end

Any help is great help, thankyou

Truly,

Exile

nErBoS

Hi,

You have to consider the prefix has a var. For eg...

OpConnected = NewUserConnected

function customCMDS(user)
	user:SendData("$UserCommand 255 7") -- Clears Right-Click Menu First
	user:SendData("$UserCommand 1 3 Evil-Eye Right-Click Menu\\Current Version $<%[mynick]> "..Prefix..Version.." %[line:BotNick]||")
end

Best regards, nErBoS
--## nErBoS Spot ##--

Exile

I am so dumb sumtimes, Just after I posted I started looking at my script and I just noticed your point, Thanks for your help Nerbos :D

Truly,

Exile

SMF spam blocked by CleanTalk