Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Dalie
  • Order by date
  1. Dalie

    form following cursor until key press

    I use VS2008, and I lose focus by pressing (alt + tab). For exercise reasons I still try to create a "boss" key. Which sets the focus. I came across some code, but I can't figure out where things go wrong... In this case it shows/hides the form. Imports System.Threading Private Declare Auto...
  2. Dalie

    form following cursor until key press

    A neat way would be using another thread that checks the "f" being pressed. Some sort of "boss" button, no mather what program is in focus, by pressing the "f" my program that is always on top comes to focus.. I couldn't find a way because I didn't had the time jet, any suggestions are welcome...
  3. Dalie

    form following cursor until key press

    Woaw, that looks great! Many thanks! I changed the TopMost property to True so it stays on top of other applications. It works like a charm. However as soon as I select another program or select a text the program loses it's focus. I'm trying to figure a neat way to get the focus back, because...
  4. Dalie

    form following cursor until key press

    [concept] i'm trying to create a form that follows - at a fixed position (x = 100px, y = 100px) - the cursor until a key (e.g. windows key + c) gets pressed. as soon as the key (combination) is pressed the program stops 'following' the cursor, the program becomes the 'active window' (in focus)...
  5. Dalie

    replace pattern regexp

    I can't figure it out... :-( I still get to the point where I can't uppercase a character after a "_" (underscore) strIn = "`a~a!a@a#a$a%a^a&a*a(a)a-a=a+a}a{a]a[a:a|a;a'a\a<a>a?a,a.a/a_a" ... strOut = "`A~A!A@A#A$A%A^A&A*A(A)A-A=A+A}A{A]A[A:A|A;A'A\A<A>A?A,A.A/A_a" ... .Pattern = "\b([a-z])" Why?
  6. Dalie

    replace pattern regexp

    Thanks! I read the articles and it's quite clear now! It also became quite clear my goal will be a bit of a struggle (as beginner) ;-) So please take a look at my reasoning on resolving the problem: 1. I have a string i.e.: "the..___test i_the_ ##the" 2. I know how find all special characters...
  7. Dalie

    replace pattern regexp

    I found a neat little script here @ tek-tips, but I don't fully understand the script. I know what it doest but don't know why. [ponder] data = " 21"",""BOB D."",""StePH_hens"",""SA052"",""CALL REAL ESTATE"",""CALL01"",""(804)411-2222"" " ... .Pattern = "\b(\w)(\w*?)\b" ... Function...
  8. Dalie

    regex replace characters

    Well, now it's time to get some sleep.. I didn't figure out if I need the last regex, I just want to prevent any "special" character at the beginning or end of the filename (i.e. test.file..txt). Any suggestions are still welcome (to make the code shorter or something like that..) With...
  9. Dalie

    regex replace characters

    Well it works =) any improvements/suggestions are welcome! (As said in previous posts I am quite new to VBScript, any feedback is welcome). The next objective will be (after replacement) to prevent repeated characters.... hint hint :p ;) Set RegularExpressionObject = New RegExp ... For Each...
  10. Dalie

    regex replace characters

    dm4ever thanks for you quick reaction, indeed the wscript.echo just shows the renamed value (and doesn't rename) but that was just show what I would like to apply to rename files. I'm trying to figure out how to apply the function on renaming files. My first idea was something like this: For...
  11. Dalie

    regex replace characters

    Hi again, Hopefully one of my last questions ;) I really start enjoying to solve problems these day's and I learned a lot so far :D I found this simple script that replaces bad characters. WScript.Echo RenFile("bad%file&name.txt") Function RenFile(FileName) With New RegExp...
  12. Dalie

    prevent permission denied

    You're right, you can't rename a folder when the "path" is in use. One other question though; I'd like to make the script a little more flexible by declaring a variable which determinse the case. To clarify: Dim theCase theCase = UCase ... If oSubFolder.Name <> theCase(oSubFolder.Name) Then...
  13. Dalie

    [Regular Expressions] Limit The Search

    Thanks HarleyQuinn that totally fixed the problem!
  14. Dalie

    [Regular Expressions] Limit The Search

    Thanks but as soon as I enter your line of code the script doesn't show any results... (I created the folder c:\temp with several folders which contains names abcd). Without the line it does show these folders I created...
  15. Dalie

    [Regular Expressions] Limit The Search

    I use the following script to find folders with a specific name on my PC. However this script searches the whole computer every time. I am quite new to regular expressions. I'd like to modify the script in a way it limits the search to a folder, lets say: c:\temp I understand the code except...
  16. Dalie

    prevent permission denied

    Thanks, that indeed prevents the error from occurring. But also leaves the folder unchanged. Is it even possible to change the name in the situation I described? Because lowercasing files doesn't give the error (when opened...)
  17. Dalie

    prevent permission denied

    I use the following script to lowercase names from folders. The script works fine. It produces an error (Permission Denied) however if I have a file opened which stands in a to be renamed directory. Is there a way to prevent this error from occurring? Any help, suggestions (even for the script I...

Part and Inventory Search

Back
Top