Comatose 290 Taboo Programmer Team Colleague

Unless I'm mistaken (and could be, since I haven't javascripted in a while), doesn't it matter which browser you are doing it for? (like, aren't the DOM's different for IE and mozilla?)

I think the w3c compliant version is:

document.getElementById('textboxnamehere').value="text to display";
Comatose 290 Taboo Programmer Team Colleague

*Votes for a clean break in both VB and VB.NET; C and C++*

I don't visit the C or C++ forum (in order to make it work, you have to already start refering to them as different entities), but Narue's point is very valid.

Comatose 290 Taboo Programmer Team Colleague

You need to use a timer control, to do things at a given interval. Do you have a project you can attach?

Comatose 290 Taboo Programmer Team Colleague

Thanks for leaving the VB and VB.NET seperate. Whatever you do, do NOT merge the two of them. I may raise a big argument, but I've used both, and coded in both, and truth be told, they are entirely different languages on a syntactic level. If you are saying that because they both end if's with end if, then take a deeper look into the syntax. One is completely OOP, requiring you to know all the objects and methods that relate to them, and one is like a sick bridge of OOP and sequential programming..... I hate to say it, but .NET is anything but a minor variation.

:( and I'm no dwarf!

Comatose 290 Taboo Programmer Team Colleague

A little more info would be really helpful. I'm guessing you are trying to code an auto-save program for excel (I believe it already has an auto-save).

Comatose 290 Taboo Programmer Team Colleague

For VB, I haven't seen one.

Comatose 290 Taboo Programmer Team Colleague

nice, but I still suggest grisoft's avg.

Comatose 290 Taboo Programmer Team Colleague

I'd help you out if I had/used .NET, but stick with vb6 :(

Comatose 290 Taboo Programmer Team Colleague

This is it. The program I'm actually building has a lot more functionality than this little guy. I actually took the code from the project to make this one. The bigger project, I'll post when it's done, it's purpose is because I go to a lot of homes where people want me to work on their systems, and the program helps me to operate on the very most basic level, and helps me to automate the things I do the most (stopping all non-relevant apps, and processes, cleaning out the start up, etc, etc). This program may come up with a popup box that tells you that windows wouldn't let it stop X number of processes.... this is no big deal, those are most likely services or anti-virus programs, which in all truth should only be closed by the user anyway, if at all, so that's nothing to be worried about. Let me know what you think of it.


Here is the link to the download:
http://www.aftermath.net/~coma/quicksweep.zip

Comatose 290 Taboo Programmer Team Colleague

It's a 1 time thing.... like, you run it, and closes everything..... everything. Your apps, other people's apps, windows apps.... everything. The only thing it leaves running is the required windows processes, such as explorer.exe, svchost.exe, etc, etc. So you run it, it closes everything (and then itself) and you are left with the bare essentials.... it doesn't keep running, so you can at that point load whatever you want, and it won't interfer with it (unless you choose to run it again).

Comatose 290 Taboo Programmer Team Colleague

I built a program that goes through and stops EVERYTHING that's running in the process list EXCEPT what's required by XP to run. Let me know if you'd like a copy of it.

Comatose 290 Taboo Programmer Team Colleague

http://en.wikipedia.org/wiki/Predictive_dialer gives a pretty good description of it. You might be better of starting with an auto-dialer, and then trying to give it features little by little, because it's by no means a minor project.

Comatose 290 Taboo Programmer Team Colleague

Bah! It's usually NOT chicks (is the problem) ;)

Comatose 290 Taboo Programmer Team Colleague

In truth I agree with Yomet on this.... I didn't want to delve into variable scope, because some people have a real hard time understanding scope... the best solution is to put the variables in the proper scope.

Comatose 290 Taboo Programmer Team Colleague

You never clear the results variable. The results variable always gets added to, because results = results & Chr(Asc(Mid(Password, i, 1)) + 3), which means, results is equal to results and the return of these nested functions, every time it's called (I'm not going to go into variable scope here). When the button is clicked, you need to have it set results = "" before the for loop.

A few pointers and critique here (if you are one of those people who can't stand criticism, stop reading, your answer is above).

Point 1
Indent Your Code
I know that on small projects, it's no big deal... but when you get into larger bigger projects, if you don't indent your code for clarity, YOU WILL get lost in it. Indenting is a necessary part of programming and debugging, and regardless of project size, should still be adhered to. Ideally, The code should be:

For i = 1 To Len(Password)
    Result = Result & Chr(Asc(Mid(Password, i, 1)) + 3)
Next

If Text1.Text = "" Then
     MsgBox "Please key in your password"
Else
     Text2.Text = Result
End If

Point 2
Code Placement
You test if the textbox is empty, After you perform the operation on the textbox...(you encrypt the data in the textbox, AND THEN, you test if it's empty or not...You should test it first, because even though the for loop doesn't care if the textbox is empty, if it was different scenario, where it wrote it …

Comatose 290 Taboo Programmer Team Colleague

I was on the wrong level of spam viewage here. I suppose it's a good idea, I'm always up for anything, but I was thinking that it would lead to a major issue in regards to the people's who's names are up there, and that is a Request for assistance outside of the scope of the forum. After really thinking about it, the placement of the table is in such a place that it may not be that significant.

I know that I get added to people's MSN Messenger, and IM's requesting help on a personal level WAY more than I ever expected I would... merely because people see my posts, and figure if I helped this person, I can help them. They don't realize that the success of Daniweb comes from the collective knowledge of all the people involved. Anyway, I felt I needed to clarify what I meant.

Comatose 290 Taboo Programmer Team Colleague

Spammage alert is right...

Comatose 290 Taboo Programmer Team Colleague

msgbox?

Comatose 290 Taboo Programmer Team Colleague

depending on the layout of the text file, I could probably make one in VB, but I'm unsure as to the level of work it would require (and my time constraints)

Comatose 290 Taboo Programmer Team Colleague

Ok, This code was taken from http://www.frez.co.uk/freecode.htm#md5. You can use the class module to instantiate an instance and use the md5 call of it. Like so:

Dim oMD5 As CMD5
Set oMD5 = New CMD5
Hash  = oMD5.MD5("Your Password Here")

Attached is the test project appended to the site I previously mentioned.

Comatose 290 Taboo Programmer Team Colleague

That sounds to me, more like a problem with the msn messenger server, as opposed to your client side software.

Comatose 290 Taboo Programmer Team Colleague

I don't personally suggest the method you are inquiring about.... most password systems as of late, have been using an MD5 (or some other algorithm) to "Hash" the password. Just a little defination here, a Hash is a string that can NOT be decrypted. It's gone through some crazy algorithms that make the string permanently encrypted. Under normal circumstances, this doesn't seem like a very good plan huh? What we do next, though, is when we want to see if the password is correct, is we use the exact same algorithm to Hash what the user types in for the password, and compare the two Hashes with each other. Naturally, if both Hashes are identical, then the password must clearly be the same too. This increases the workload of a password cracker significantly, and adds countless more attempts to a bruteforce attack.

There are pretty good encryption algorithms out there that are pretty darn secure, and at the same time, are decryptable (such as blowfish and triple des) and most of these require a key pair, that gets generated, and only the partner key of something encrypted can decrypt it.

If you aren't THAT worried about security, and only want to keep prying eyes from seeing the password in plain text, then you could do something as simple as an XOR encryption, which is nothing more than an exclusive OR of bits.

Comatose 290 Taboo Programmer Team Colleague

hmn.... in XP, try double clicking my computer, right click the folder or file, choose sharing and security... Then under the first frame, Local sharing and security, and then make this folder private.... for some reason, however, min eis greyed out, so I'm researching that now.

Comatose 290 Taboo Programmer Team Colleague

use the shell command. You need to know the path to the EXE, and you simply, double click the button (to get to the onclick event):

shell "c:\windows\notepad.exe", vbnormalfocus

so, you type shell, then the path and name of the .exe to launch. The part after the comma, denotes how you want the window to be displayed during the launch. In this case, we want it to show the window to the user, so they can play with it or whatever. You can set it to vbhide so that exe will run, but it will never display the window (usefully for shelling DOS apps, that only server a quick purpose to your APP). Anyway, I hope this helps.

Comatose 290 Taboo Programmer Team Colleague

Tell Me It Worked!!!

Comatose 290 Taboo Programmer Team Colleague

;) thanx.

Comatose 290 Taboo Programmer Team Colleague

Ok, are you running a firewall, such as norton (if so, try disabling this, by right clicking it's icon in the system tray and choosing disable).

Also, go to start, run type in: regsvr32 MSXML3.dll
you should a confirmation box telling you the register has succeeded.

Then, make sure the data and time on your computer are set correctly (don't ask me why, msn messenger is real stupid about that).

Let me know if that fixes it.

Comatose 290 Taboo Programmer Team Colleague

yeah,

What you'll want to do, is where you make it update the textbox, in the phrasefinish (or wherever you have it modify the textbox) it would look something like this:

Text1.Text = newspokenwordvariable & Text1.Text

Does that help?

Comatose 290 Taboo Programmer Team Colleague

written where? perhaps I'm lost on what you are trying to do exactly..

Comatose 290 Taboo Programmer Team Colleague

Have you gone through the network troubleshooter of MSN? (tools Menu, options, connection tab or area, and then start the troubleshooter) it should try to get an IP address, and some other stuff, and it should go through all the steps and then log you in....

Comatose 290 Taboo Programmer Team Colleague

Welcome Aboard. Now mop the floors ;)

Comatose 290 Taboo Programmer Team Colleague

this is really stupid, because the righttoleft property IS indeed locked. In order to get the result that I believe you desire, you'll have to set the textbox's Alignment property to 1 (right justify) instead of the righttoleft property. If this isn't the desired outcome, let me know.

Comatose 290 Taboo Programmer Team Colleague

I'm pretty sure you have to know the C types, and the mimic them in VB, and probably declare the .dll as you would in the API.

For example, the findwindow api call (declared as):

Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long

Is a simple function, that searches for an open window by either it's class name, or by the caption in the titlebar. If you look at the declaration for it, you are telling vb that you want to declare the function, and then you give it the name of the function (the name of the function here, but be the same as that in the .dll file), then the lib keyword, which identifies which library (which .dll file) the function can be found in. Then it gives an Alias, I don't remember exactly what it's for, but has something to do with not conflicting with functions already existing with the same name (or something crazy). Then you have the parameter list, that the function requires/expects. This function expects 2 parameters passed to it, in this case both strings. As a person who understands C, I'm not going to insult your intelligence by explaining what byval is.... and this function returns a long value (a windows handle to the found window, or 0 for none found). I'm imagining that is how you would make VB call the functions in your C dll, unless I completely missed …

Comatose 290 Taboo Programmer Team Colleague

;)

Comatose 290 Taboo Programmer Team Colleague

Yup. That could have EVERYTHING to do with it. I'm not sure if system32 is hidden by default, however, so if you open up my computer, and go to tools, folder options, then click on the view tab, and it will says "do not show hidden files and folders", and make sure the one below it "show hidden files and folders" is checked.... then sift around in there and see if you can find it.... if you can't.... big uh oh.

Comatose 290 Taboo Programmer Team Colleague

Well you can get the listbox entry with:

listboxname.list(listboxname.listindex)

So, if for example, you had a listbox named "list1", you could get the highlight item in the list, and save it to a variable named lstdata by saying:

lstdata = list1.list(list1.listindex)

Or am I confused on exactly what you are having trouble with?

Comatose 290 Taboo Programmer Team Colleague

Did you look over the VB and Access Thread? In the listbox's on_Click event, you would initiate another query, searching for whatever data you need, and placing the retrieved info into the new text fields (or wherever).

Here is the link: http://www.daniweb.com/techtalkforums/thread26892.html

Comatose 290 Taboo Programmer Team Colleague

are you meaning like sentences? Or are you meaning like in the declaration? (show me an example of what you mean.

Comatose 290 Taboo Programmer Team Colleague

The example I gave uses words, but yes it is very limited, because you have to define all the words you want it to recognize.

Comatose 290 Taboo Programmer Team Colleague

I see, my code isn't good enough for you ;) (j/k)

Outlook could be causing a problem, OR if there is multiple identies that are being conflicted with msn messenger.... Perhaps there is another identity that still has 1 unread e-mail in it? You could also consider uninstalling msn messenger, then go into the registry and remove all remnants of MSN messenger. Then reboot and reinstall, and that might fix it. You also might consider looking into cleaning out the application data (if messenger put 1 in your application data folder). Also, check and see if this problem happens with Windows Messenger..... if it does NOT happen with windows messenger, then we know it's not a problem with hotmail.

Comatose 290 Taboo Programmer Team Colleague

I was researching it, and I don't remember which I used.... but here is the source:
Loading the app, complains that I'm missing: Xlisten.dll, Xvoice.dll, and Xcommand.dll, so I'm not sure which of those voice recognitions have those files...

in form_load:

Hear1.GrammarFromString "[Grammar]" + vbNewLine + _
                          "type=cfg" + vbNewLine + _
                          "[<start>]" + vbNewLine + _
                          "<start>=Firefox" + vbNewLine + _
                          "<start>=Comatose" + vbNewLine + _
                          "<start>=Visual Basic" + vbNewLine + _
                          "<start>=Calculator" + vbNewLine + _
                          "<start>=Play Pop" + vbNewLine + _
                          "<start>=Close" + vbNewLine + _
                          "<start>=Minimize" + vbNewLine + _
                          "<start>=Maximize" + vbNewLine + _
                          "<start>=Switch" + vbNewLine + _
                          "<start>=Check Mail" + vbNewLine + _
                          "<start>=Thank You" + vbNewLine + _
                          "<start>=Thunderbird" + vbNewLine + _
                          "<start>=Mozilla" + vbNewLine + _
                          "<start>=Yes" + vbNewLine + _
                          "<start>=No" + vbNewLine + _
                          "<start>=Good Night" + vbNewLine + _
                          "<start>=Send Enter" + vbNewLine + _
                          "<start>=Stop Running" + vbNewLine
Hear1.Activate

And here is the hear1's Phrase Finish (slightly modified for personal reasons):

Private Sub Hear1_PhraseFinish(ByVal flags As Long, ByVal beginhi As Long, ByVal beginlo As Long, ByVal endhi As Long, ByVal endlo As Long, ByVal Phrase As String, ByVal parsed As String, ByVal results As Long)
Select Case Phrase
    Case "Firefox"
        ShellExecute Me.hWnd, "open", "firefox.exe", "", "C:\", SW_MAXIMIZE
    Case "Calculator"
        ShellExecute Me.hWnd, "open", "calc.exe", "", "C:\", SW_MAXIMIZE
    Case "Play Pop"
        ShellExecute Me.hWnd, "open", "pop3.exe", "", "c:\", SW_MAXIMIZE
    Case "Close"
        SendKeys "%{F4}"
    Case "Minimize"
        SendKeys "% n"
    Case "Maximize"
        SendKeys "% x"
    Case "Switch" …
Comatose 290 Taboo Programmer Team Colleague

BFG 7800 GTX (OC) *drool*

I have 2 of them running in SLI.

Comatose 290 Taboo Programmer Team Colleague

I don't remember seeing that in his list of choices...

Comatose 290 Taboo Programmer Team Colleague

they SHOULD be in the same order they are loaded into the array, yes. So you're right, it's not necessary.... I do a lot of array sorting, so in my mind I'm thinking about it in a future proof scenario.

Comatose 290 Taboo Programmer Team Colleague

if you removed it from the registry yourself, and it's STILL adding itself back in, then there is another exe or program that is putting back in there. If it is malware, I'm not deeply experienced with it, like DMR or some of the other HJT (Hijack This) Guru's. I'm sure if you post a HJT log (download it from the link, install and run it, then copy and paste the hijack this results to the post) [or a new post in the viruses spyware and other nasties section: http://www.daniweb.com/techtalkforums/forum64.html) and someone there will likely be able to sift through the HJT log and walk you through steps on fixing it. Also, I'm not 100% sure that it is Malware, it could be part of a program that you use, and the program needs that other program to help it with it's functionality, and when you run the program, it adds it back in to the registry, but I don't know for sure.

Comatose 290 Taboo Programmer Team Colleague

Or in a couple of arrays, that are in sync with each other, 1 for the hwnd's and 1 for a time stamp and then you can enumerate them by time stamp.

Comatose 290 Taboo Programmer Team Colleague

This is a program that attempts To Fix this problem, by applying a bunch of different techniques. To walk you through what it does, step by step (in case you don't trust it, and want to do it yourself) is this order:

1. Cleans Out The Windows Prefetch Folder 
    c:\windows\prefetch

2. Deletes The "UnreadMail" subkey from the registry
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\UnreadMail

3. Scans The Hard-Drive For trayserver.exe, and alerts you if it finds it.
    trayserver.exe will stop msn messenger from showing instant e-mail
    notifications (next to the time at the system tray)

If this doesn't fix the problem, you may have to uninstall msn messenger completely, and then remove all it's registry entries. Then you can reinstall it, and it should have cleared up the problem. Let me know how it turns out.

Comatose 290 Taboo Programmer Team Colleague

I have a fresh install of XP home, and I don't have that file. I'm not 100% sure if it's crudware or not, because I get conflicting results from google, but I know that it's not on my XP home box (fresh install), and if it keeps adding itself into your registry, it sounds like malware.

Comatose 290 Taboo Programmer Team Colleague

I may catch some heat from ATI fans around the web, but the truth as I see it, is that nvidia takes ATI in benchmarks, and performance. What you really need to do though, is look at the detail specs for both, and see how they compare. I'm bias to NVIDIA, because of experiences I've had with both cards, and benchmarks I've run on the competing levels of each card. (let's face it, it's not right to compare a newer card to an older one of the opposing brand... like, comparing a card released today, to one released a year ago.) So you need to figure out if the two cards are on the same playing field first. Then look at specs, gpu speed is a very important factor here, and the number of pipelines plays a significant role in the video cards processing power. Also, you might want to look at benchmarks for both. If you can find out information such as minimum, maximum and average frame rate of both, that would be good thing to take into consideration too.

Comatose 290 Taboo Programmer Team Colleague

it's probably a problem with the set for table:

Set table = globalDatabase.OpenRecordset("SELECT * FROM IPTypeLookup WHERE IPTypeID='" & inputTypeID & "';", dbOpenForwardOnly)

I don't do a whole lot with databases, but I'd be willing to guess that access doesn't like the query. It might have a big problem assigning an object to your module, I don't know.