What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » Search » Results

Search Results
Subject Author Forum Time
RE: Question about "MyStatus"
there is no space before the colon - only after. it should be searching for "AutoMessage: " :P your full script: [code=JScript]var szStatus = { 2 : "appear offline", 3 : "online", 4 : "busy", 7 : "away", 6 : "idle", // maybe it ca...
roflmao456Scripting01-19-2010 at 10:58 PM
RE: Question about "MyStatus"
shorter and slithly faster:[code=js]function OnEvent_ChatWndSendMessage( ChatWnd, Message ) { // Check if it is not an automessage and if we're not busy yet if (!/^AutoMessage :/.test(Message) && Messenger.MyStatus !== 4 ) { // Set t...
CookieRevisedScripting01-19-2010 at 08:35 PM
RE: Question about "MyStatus"
The variable automsg is the return value for "Message.search("AutoMessage :")". search() returns the position what is searched for, or -1 if it can't be found. Therefore, that line checks if "AutoMessage :" is in the message sent, if it is t...
stoshrocketScripting01-19-2010 at 07:52 PM
RE: Question about "MyStatus"
Mmm... so is stoshrocket's solution to my auto-message problem the best way? And if so what's the line: [code=javascript]if(automsg == -1)[/code] do? ~ 5n4k3
5n4k3Scripting01-19-2010 at 05:20 PM
RE: Question about "MyStatus"
:dodgy:... I prefer to use the enumeration for status [code=js]// On the top of your script, outside any function definition var oStatusNames = { STATUS_UNKNOWN: 'unknown', STATUS_INVISIBLE: 'appearing offline', STATUS_ONLINE: 'online', ST...
mattyScripting01-19-2010 at 03:29 PM
RE: Question about "MyStatus"
When the auto message is sent, messenger appears to see it as it being sent in the format "AutoMessage: <automessage>" (test it yourself by creating a toast to popup with every message you send, when "you" send an automessage, it comes up in thi...
stoshrocketScripting01-19-2010 at 02:55 PM
RE: Question about "MyStatus"
I came across another problem with the script: [code=js]function OnEvent_ChatWndSendMessage( ChatWnd, Message ) { // See if I'm not busy yet if( Messenger.MyStatus !== 4 ) { // Set to busy Messenger.MyStatus = 4; } /...
5n4k3Scripting01-19-2010 at 08:19 AM
RE: MySQL and PHP - using 2 tables in one query?
When running that query using PHP, I now get all results from table A returned, no matter what I type into the search. When running the following query in navicat: [code=sql] SELECT a.*, b.name FROM upgrades AS a INNER JOIN zm_timetracker AS b ON a.s...
JimboTech Talk01-17-2010 at 08:39 PM
RE: MySQL and PHP - using 2 tables in one query?
I don't know which version of MySQL you're running and I'm not a MySQL expert myself, but perhaps adding "AS" between the table names and its alias may help? Or maybe it's the new line characters? Have you tried checking for errors from MySQL f...
MattiTech Talk01-17-2010 at 08:19 PM
RE: Question about "MyStatus"
I highly recommend learning some JScript/JavaScript if you want to write Plus! scripts. There are many places to learn this, but perhaps the [url=http://www.w3schools.com/JS/default.asp]W3Sch ools[/url] tutorials are best suited for newcomers. Just b...
MattiScripting01-17-2010 at 07:56 PM
RE: MySQL and PHP - using 2 tables in one query?
Thanks Adeptus, I think I will go away and read some tutorials, so to not fill up this forum with all my MySQL questions xD However, I am probably doing something really stupid, but this is outputting no results, and I can't figure out why. [code=ph...
JimboTech Talk01-17-2010 at 07:33 PM
RE: Question about "MyStatus"
Use a loop and a couple of arrays to replace the number? [code=javascript] function OnEvent_ChatWndCreated(ChatWnd) { var Message = "Your current status is " + Messenger.MyStatus + "!"; var number = new Array("2","3","4","5"....)...
stoshrocketScripting01-17-2010 at 06:29 PM
RE: Is there a script that can respond line-by-line...
I doubt there's a script that's out there, but with a little help from the [url=http://www.msgplus.net/scripts/view/13-Offici al-Scripting-Documentation/]scripting documentation[/url] I'm sure it's certainly possible. You could have a look at how ...
stoshrocketScripting01-17-2010 at 04:13 PM
RE: Greasemonkey message box / redirect
To prevent alert spamming you could just build in a variable in place of the alert that is changed to 1 when a word is found, then after the search has been made, check the variable, if = 1, alert... [code=js] // ==UserScript== // @name ...
stoshrocketTech Talk01-17-2010 at 11:44 AM
RE: MySQL and PHP - using 2 tables in one query?
To me, it sounds like you have 2 tables that are in a 1 to 1 relation to each other. One record on table A is only relevant to one record on table B. Why not just merge the 2 tables? Also, do some research on SQL injection. Using just that code above...
MeEtcTech Talk01-17-2010 at 03:05 AM
MySQL and PHP - using 2 tables in one query?
Okay, first of all, I am not even sure if this is possible, but what I am trying to do is: I have two tables, Table A that stores just SteamID, with some other fields, and then, another Table B that stores Player name, SteamID and then some other fie...
JimboTech Talk01-17-2010 at 01:32 AM
RE: Greasemonkey message box / redirect
Well, I've managed to come up with this, although it spams the alert for every instance of the word. How could I make it only alert once? [code=js] // ==UserScript== // @name Alert // @namespace -- // @description Alert...
JimboTech Talk01-17-2010 at 12:52 AM
RE: Greasemonkey message box / redirect
how about [code=JS]if (/someword/m.test(document.body.innerText)) alert("OMFG")[/code] but that would include any other inline stuff in the source (js in <script> tags, css etc)
andreyTech Talk01-17-2010 at 12:21 AM
RE: [help] InternetExplorer Object events...
this should do the trick :) [code=JScript]var Wnd = MsgPlus.CreateWnd("InterfaceTest.xml", "WndTest"); var browser = Wnd.Browser_GetInterface("browser"); (function(Browser) { function Browser::DocumentComplete(){ } function Browser...
felipExScripting01-16-2010 at 10:15 PM
RE: [help] InternetExplorer Object events...
[code=js]var Window = MsgPlus.CreateWnd("Windows.xml", "WndBrowser", 0); var BrowserObj = Window.Browser_GetInterface("Browser"); BrowserObj.GoHome(); function BrowserObj::BeforeNavigate() { // do loading stuff }[/code] [code][i]Message in Scr...
whizScripting01-16-2010 at 11:17 AM
RE: Can someone add something to this code
[code=js]// If we receive a message and the chat window exists in the object container function OnEvent_ChatWndReceiveMessage(oChatWnd, sOrigin, sMessage, nMessageKind) { if (typeof oChatWnds[oChatWnd.Handle] === 'object') { // check wh...
whizScripting01-10-2010 at 11:56 AM
RE: How to replace messeges
[code=js] function OnEvent_ChatWndSendMessage(ChatWnd, Message){ return "/colorize " + Message } [/code] Although someone may want to add checks for things like commands being typed, this is a very basic way of doing it
SpunkyScripting01-10-2010 at 12:07 AM
PHP & IE using headers to add file as an attachment...
Ok so I have a situation and it is confusing me as this works fine in Firefox. [code=php]<? $path = '/home/ss/plsc/'; $f = scandir( $path ); rsort ( $f ); $file = '/home/ss/plsc/'.$f[0]; header("Pragma: public"); header("Expires: 0"); ...
mattyTech Talk01-08-2010 at 04:07 PM
RE: [help] Windows widths and heights...
True. :P Ok, but now I have another problem. [code=js]var SWP_NOMOVE = 2; var SWP_NOZORDER = 4; var WndTest = MsgPlus.CreateWnd("Interfaces\\Test.xml", "WndTest", 0); WndTest.RegisterMessageNotification(0x5, true); WndTest.SetControlText("Ed...
whizScripting01-06-2010 at 07:21 PM
RE: [help] Windows widths and heights...
Ok, that works great! Next question: can I set the width and height of the window? I've tried this: [code=js]Interop.Call("user32.dll", "SetWindowPos", WndTest, null, 0, 0, 300, 200, SWP_NOMOVE | SWP_NOZORDER);[/code] But nothing happens. No e...
whizScripting01-06-2010 at 07:09 PM
[Hide Excerpts] Pages: (51): « First « 16 17 18 19 [ 20 ] 21 22 23 24 » Last »