PtokaX forum

Development Section => Your Developing Problems => Topic started by: XPMAN on 29 May, 2005, 08:25:09

Title: How do I call on this.... PtokaX
Post by: XPMAN on 29 May, 2005, 08:25:09
First, thanks alot for the tutorial on the rightclick, been working for while on putting it together :)

A problem for me though, simply cause i am still in learning mode ...lol, is I cannot get the text files called right in PtokaX. I wish to use the built in TEXT function, but nothing works. I can call the hub commands such as

user:SendData("$UserCommand 1 3 TESTHUB\\Hub PMs\\Your Inbox$<%[mynick]> !inbox ||")
But when i try the same syntax to display a txt in the text folder in the PtokaX folder, it simply shows the command in chat, not the text file.

I tried using the same :
user:SendData("$UserCommand 1 3 TESTHUB\\Hub PMs\\How to use$<%[mynick]> !itest ||")
But it only displayed  !test  in main chat instead of the txt file it was suppose to. I thought i was doing good till I hit this ...lol . I realize i could probably use a text bot, but I like the built in one in the hub software + its bugging the freaking #@%#$ out of me cause i know it can be done........ or can it?

Any help on this I would really appreciate.
Title:
Post by: Markitos on 29 May, 2005, 09:44:50
QuoteOriginally posted by XPMAN
First, thanks alot for the tutorial on the rightclick, been working for while on putting it together :)

A problem for me though, simply cause i am still in learning mode ...lol, is I cannot get the text files called right in PtokaX. I wish to use the built in TEXT function, but nothing works. I can call the hub commands such as

user:SendData("$UserCommand 1 3 TESTHUB\\Hub PMs\\Your Inbox$<%[mynick]> !inbox ||")
But when i try the same syntax to display a txt in the text folder in the PtokaX folder, it simply shows the command in chat, not the text file.

I tried using the same :
user:SendData("$UserCommand 1 3 TESTHUB\\Hub PMs\\How to use$<%[mynick]> !itest ||")
But it only displayed  !test  in main chat instead of the txt file it was suppose to. I thought i was doing good till I hit this ...lol . I realize i could probably use a text bot, but I like the built in one in the hub software + its bugging the freaking #@%#$ out of me cause i know it can be done........ or can it?

Any help on this I would really appreciate.

Check in ur ptokax the function Enable text files suport if u activated nd still getin the problem try plop's texter

Cheers...
Title:
Post by: jiten on 29 May, 2005, 10:03:39
Try this:

1. Copy your .txt files to your PtokaX/texts folder (you've done this);
2. Go to the Options tab and tick "Enable text files support";
3. Then, reload the .txt files with "!reloadtxt" in main;
4. Type !"filename" and the file content should appear.

Best regards
Title: Already did...
Post by: XPMAN on 29 May, 2005, 10:15:11
Did all that, my problem is....... it works fine as long as its typed in main chat. I was trying to figure out how to call upon the txt files in the text folder in my rightclick script i am working on. It simply sends the command..ex..   !test  in main chat without showing the file, while i can type  !test  in main chat and it shows the file like its suppose to. I am thinking it may be because the script is trying to call upon a file "outside" the scripts folder. I assumed it would work since the command is still sent to main chat.

Just can seem to get it to work in a right click :(
Title:
Post by: jiten on 29 May, 2005, 10:54:25
Try these:
user:SendData("$UserCommand 1 3 TESTHUB\\Hub PMs\\Your Inbox$<%[mynick]> !inbox||")
user:SendData("$UserCommand 1 3 TESTHUB\\Hub PMs\\How to use$<%[mynick]> !itest||")
The Main difference is the extra space between the command and the &.

Cheers m8
Title: Thank u..
Post by: XPMAN on 29 May, 2005, 15:37:50
duh................a space......lol  imagine that :)  Thanks buddy. Setting up profile specific........ i am sure i will get stumped again and need help....lol  You guys are great!!!  Thanks again.
Title:
Post by: jiten on 29 May, 2005, 21:02:15
QuoteOriginally posted by XPMAN
duh................a space......lol  imagine that :)  Thanks buddy. Setting up profile specific........ i am sure i will get stumped again and need help....lol  You guys are great!!!  Thanks again.
Indeed, sometimes a simple thing can give us more headaches than a bigger one :D

Best regards