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

Search Results
Subject Author Forum Time
RE: Help - I'm new to scripting!
Do you want the ability to prevent nudging if the script is "disabled" is that the affect you are trying to achieve? Also I know you are new but you can cut down on some code for example: [code=jscript]// Create an object to store our sent messages...
mattyScripting11-27-2008 at 02:29 PM
RE: Help - I'm new to scripting!
Uusing this: [code=jscript]function OnEvent_MenuClicked(sMenuId){ if(sMenuId=="mnuItem1"){ ... } }[/code] You can set a boolean variable that will enable or disable the script.
mattyScripting11-26-2008 at 08:23 PM
RE: CommonDialog help
Hmm, okay, that was my bad. I assumed that [font=Courier]1*undefined[/font] would result in 0, but it gave me NaN. Well, you can change that line to something like: [code=jscript]hwnd_owner = hwnd_owner ? 1*hwnd_owner : 0;[/code] which this time has ...
MattiScripting11-25-2008 at 05:20 PM
RE: CommonDialog help
Why do you have two of the exact same functions just with different names? Anyways one of your problems is that you are not passing anything to hwnd_owner. This causes a problem because in the code it says hwnd_owner = 1*hwnd_owner; However when you ...
mattyScripting11-24-2008 at 09:20 PM
RE: CommonDialog help
[code=jscript]BrowseDialog.Flags = "&H4";[/code] I thought we had to use hex equivalents? Shouldn't it be: [code=jscript]BrowseDialog.Flags = 0x04;[/code] Just a bit confused myself
SpunkyScripting11-24-2008 at 08:48 PM
RE: CommonDialog help
Try passwing 0 as the hwndOwner see if it works. Passing an actual value (numerical) causes the window to be modal to the calling window. When pressing the button you can use: [code=jscript]pPlusWnd.Handle[/code] as the hwndOwner now pPlusWnd is depe...
mattyScripting11-24-2008 at 08:03 PM
RE: CommonDialog help
Just as I thought everything was going to work this time, I got: [code]Error: Overflow (code: -2146828282) File: file_browse.js. Line: 135.[/code] after I pressed my button which calls the function. Line 135: [code=jscript]WriteDWORD(4, hwnd_o...
OtaconScripting11-24-2008 at 07:57 PM
RE: CommonDialog help
Heh, I could have seen that one coming. Well, have a look at my implementation of matty's code, used in my own script. Some usage examples: [code=jscript]//Open File Dialog //Opens C:\ first, file filters are text files (*.txt) and all files (*.*) ...
MattiScripting11-24-2008 at 07:38 PM
RE: CommonDialog help
That's very simple. [code=jscript] return BrowseDialog.FilePath; pm = BrowseDialog.FilePath;[/code] You are returning before setting the variable, that means you end the function right there. Everything else that comes afterwards won't be ex...
MattiScripting11-24-2008 at 06:59 PM
CommonDialog help
Ok, so I'm using this code: [code=jscript]function BrowseForPm(InitialDir) { BrowseFilter = "Text Files (*.txt)|*.txt|All Files|*.*"; var BrowseDialog = new ActiveXObject("UserAccounts.CommonDialog") BrowseDialog.Filter = BrowseFilter; Brows...
OtaconScripting11-24-2008 at 06:46 PM
RE: Scripting API Wishlist
Well, let me focus on some issues I have with scripting. First of all, I already reported it on the BETA testing forums (see [url=http://shoutbox.menthix.net/showthread.php?ti d=86707][FixMe] Scripts: Colorization with Mosaic[/url]) but apparently no-...
MattiScripting11-24-2008 at 05:51 PM
RE: Scripting API Wishlist
This was a personal request to Patchou in which I text messaged him and requested it and it is being considered for Script Developers. The request was the ability to step through the script to see exactly which line is causing the error. I had an iss...
mattyScripting11-24-2008 at 04:43 PM
RE: XML from internet
Hehe :P Point is, that you may use XML attributes as in the example above, but you'll need to create an object (the "node" thingy in my code), or make several calls to selectSingleNode(); Take a look here: [code=xml]<?xml version="1.0" encoding=...
SmokingCookieScripting11-24-2008 at 11:38 AM
RE: XML from internet
You should not use a [b]back[/b]slash ([b]\[/b]) as in a file path, but a normal slash ([b]/[/b]) as in URLs. Also, for more interaction with nodes, you may want to use this. [code=jscript]var node = xml.selectSingleNode("/gameslist/game[@name=\". ..
SmokingCookieScripting11-24-2008 at 07:35 AM
RE: Regex with Variables
Now I've got another problem, and I don't have a clue what it is this time. :S I'm trying to get info from a contacts PSM, using RegEx. I have for example Xbox 360: Sonic The Hedgehog 2 (Stefan Leroux) For this I'm using[code=jscript]var XBG = ...
ArkaneArkadeScripting11-21-2008 at 07:08 AM
RE: Whats wrong with my script?
Thats the entire script which I've posted above. :) But I've changed some things atm, so here is the actual one: [code=jscript] var fsObj = new ActiveXObject("Scripting.FileSystemObject"); var statuschanged = false; var Old_Status = 0; function O...
BluestarScripting11-20-2008 at 11:21 PM
RE: Regex with Variables
Here was me thinking I'd manage ok for the rest of today, but no, more confusion. The page I downloaded is a simple html list, but does not close its <li> tags. Is there any way for me to detect for this? [code=html]<html> <li>Show Title: Supernatu...
ArkaneArkadeScripting11-19-2008 at 11:36 PM
RE: Caching which windows have a command enabled
It's not an array, it's a regular object. Correct, but it's much faster and efficient to have them indexed by handle in an object than looping through an array and checking the Handle property. Also, in your example code, there's no way to get a...
MattiScripting11-19-2008 at 12:44 PM
RE: Regex with Variables
You can use normal strings as the constructor parameters of RegExp. [code=jscript] new RegExp("<img id=\"" + id + "\" src=\"(.*?)\">", "i"); [/code]
MnjulScripting11-19-2008 at 10:32 AM
Regex with Variables
Hey guys, Its been a day, so I'm back again with another stupid question. I'm looking for some help, and to find out if its possible to regex a variable. I know the basic idea is to looks for a pattern, but I'm trying to get something with a litt...
ArkaneArkadeScripting11-19-2008 at 06:05 AM
RE: Caching which windows have a command enabled
What is it then, if it's not an array? Every langauge I've ever worked in oChatWnds[oChatWnd.Handle] would be an array. :P Would this be acceptable. [code=jscript]var Windows = new Array(); function OnEvent_ChatWndCreated(ChatWnd) { wnd = {}; ...
MrPickleScripting11-18-2008 at 11:19 PM
RE: Caching which windows have a command enabled
You mean 1054; JScript arrays are zero-based :p
SpunkyScripting11-18-2008 at 10:37 PM
RE: Caching which windows have a command enabled
Sure does: [code=jscript]// Declare an object to hold our ChatWindows var oChatWnds = {}; // An event is fired because a chat window was created function OnEvent_ChatWndCreated(oChatWnd) { // Create an entry in the object for the chat window oCh...
mattyScripting11-18-2008 at 08:52 PM
Caching which windows have a command enabled
Here's how I thought to do it, but as I don't have a wide knowledge of JavaScript (Only C++) there may be a better way (hence me asking). Create an object containing the window's handle and a "command on/off" boolean when a window is created, th...
MrPickleScripting11-18-2008 at 08:14 PM
RE: Whats wrong with my script?
Damn it... after some time of running, now it stops with the next lines: Error: uknown (code: -2147418113) File: Lock That PC Script.js. Line: 50. Line #50 is: [code=jscript] Messenger.MyStatus = STATUS_AWAY;[/code] Any idea? Maybe I don't ...
BluestarScripting11-18-2008 at 01:51 PM
[Hide Excerpts] Pages: (51): « First « 44 45 46 47 [ 48 ] 49 50 51 » Last »