Jump to content

avery

Active Members
  • Posts

    174
  • Joined

  • Last visited

About avery

  • Birthday 01/01/1980

Profile Information

  • Location
    West Palm Beach
  • WWW
    http://www.abox.org
  • Interests
    Random Conversations are the best. Let us start one :-)
    http://www.abox.org

    I'm single now so if you enjoy coding then please give me a poke and let us make friends :)

Recent Profile Visitors

397 profile views

avery's Achievements

Prodigy

Prodigy (4/7)

0

Reputation

  1. Thanks. I haven't tested it out yet but this is excatly what I was looking for. My Work places a bunch of icons on my desktop and in the process they always seem to re-arrange them. They also put Ready-Only and System Attribs on them which have to be removed before an autoIt3 script can remove them, at least from my testing. I'll report back once I test this one and see if it can handle icons that don't want me be removed/moved (i have admin rights).
  2. _SendEx seems to have fixed some of it but it misses some. If I hit shift+b really fast 15 times I only see 5 of them
  3. ControlSend("", "", "", "text", 0) works for the most part. If I hold shift+b it shows the right results most of the time. My results look like this: BBbBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBbBBBBBBBBBBBBBBBBBBBBBBbBBbBBBBBBBBBbBBBBBbBBBBBBbBBBBBBBBBBBBBBBBBBB Do you think if I shorten the delay from 1000 to 500ms I'd get less "b"'s because when I hold the hotkey +b (shift i should get all capitial b"s (. Thanks again for the help, that FAQ is amazing and I bookmarked it.
  4. Ok this is very odd. I have provided an example below that recreates the error or glitch I am experiencing. If you run the script: hitting just "b" works and keyboard is finehitting LeftShift+b works and the keyboard is finehitting RightShift+b works right the first time but things get really weird from here. I can only fix the keyboard when I hit the LeftShift one time after killing the script. If I don't do this none of my special keys work, like when I hit "ESC" key it spells [ESC] on the screen, same for space, enter, backspace etc. Please just open notepad, run this script, do RSHIFT+b inside notepad and then hit ESC key and see what it does. If you do the same thing with LSHIFT it works fine and also even after the script is killed the keyboard is still broken. For some reason you have to hit LSHIFT 1 time after you kill script to make the keyboard work again. #include <Misc.au3> ; ------------------------------------------------------------------------------ Global $d = 1 ; ------------------------------------------------------------------------------ HotKeySet("b", "agent_b1") HotKeySet("+b", "agent_b2") ; ------------------------------------------------------------------------------ Func agent_b1() ToolTip("Inside agent_b1", 1, 1, "agent_b1") HotKeySet("b") Send("b") If ($d) Then ConsoleWrite("hk: b" & @CRLF) HotKeySet("b", "agent_b1") EndFunc ;==>agent_b1 ; ------------------------------------------------------------------------------ Func agent_b2() ToolTip("Inside agent_b2", 1, 1, "agent_b2") HotKeySet("+b") Send("B") If ($d) Then ConsoleWrite("hk: +b" & @CRLF) ;Sleep(100) HotKeySet("+b", "agent_b2") EndFunc ;==>agent_b2 ; ------------------------------------------------------------------------------ While 1 Sleep(1000) WEnd ; ------------------------------------------------------------------------------ OS: Windows XP with latest patches AV: McAfee (on all pc at my work) au3 version: 3.3.4.0 Please let me know if you have any further questions. I really need to get this fixed for a work project. Thank you so much! I am willing to donate again for this help. I've donated twice already because this community has helped me out many, many times before. Respectfully, Avery Howell
  5. I'll look at the new start but still don't understand why it doesn't exist when I redim or adjust the value of [0]. The array delete function returns the new size of the array so I have the information I thought was needed to determine the proper size. All I was trying to do was read a file to array but skip the lines that were comments and I make the comment lines start with a ";". The file contains: ; c1 (array index 1) ACCT05\athowell2*0*3 (array index 2) ; c2 (array index 3) ErgoSuite.exe*0*0 (array index 4) ;c3 (array index 5) I want to remove the lines that start with ";" so I used StringLeft w/ ";" to match. The resulting array I'm trying to accomplish is: ACCT05\athowell2*0*3 (array index 1) ErgoSuite.exe*0*0 (array index 2) Thanks for the new start idea I'll try to parse the file to array after it's full using the do loop and see if I end up with the same result. I think I have to redim the array if I re-size it or I get errors.
  6. Hello, I've been reading help files and looking for examples and have tried every single combination I can possible think of and I just can't seem to get this function to work. Can anyone please help me figure out what I'm doing wrong? Please and thank you if you can help me out. -Avery Howell Global $d = 1 ; debug Global $programsList = @ScriptDir & "\abox_priority_programs_list.txt" Dim $programsArray getPrograms() Func getPrograms() _FileReadToArray($programsList, $programsArray) q("Inside getPrograms") For $x1x = 1 To $programsArray[0] q("FR2A: " & $programsArray[$x1x] & " [" & $x1x & "] (" & $programsArray[0] & ")") If (StringLeft($programsArray[$x1x], 1) == ";") Then If ($d) Then q("Ignoring Comment: " & $programsArray[$x1x] & " " & $x1x) Local $nsoa = _ArrayDelete($programsArray, $x1x) q("new size of array: " & $nsoa) $programsArray[0] = $nsoa ; not sure what to use this or the one below or the other combo's I tried ReDim $programsArray[$nsoa] ; not sure what to use this or the one below or the other combo's I tried $programsArray[0] = $programsArray[$programsArray[1]] - 1 ; not sure :( EndIf Next EndFunc ;==>getPrograms $programsList file contains: Error Message from SciTe: (the error message always says something about the array but the line number and place it's used changes)
  7. What's this faceb00k thing you speak of? *boggle*
  8. I was wondering if anyone knows a way to detach the debug window / output window at the bottom of SciTe? I would like to have it in a maximized separate window to better see the output and not have to constantly re-size it. Can anyone help please? Thanks, Avery Howell
  9. I have a bunch of DELL workstations and DELL laptops and I am writing a script to set their power management settings. Does anyone know a way to find out if the system is a laptop or desktop (DELL) ? I want to set the laptops different then the desktops due to having a battery. Can anyone please help me determine the difference between the two using au3? Please and thank you if you are able to help me out.
  10. Thanks a bunch for sending that. The version that I start inside SciTe always goes on top of it and doesn't let me click back until I close it or it closes both if I close the IDE first. I prefer the standalone version. Thanks again, really appreciate it!! PS: Doesn't it also come with the older version of Koda? I am just not updating all my au3 stuff to the new version that was released. I will verify once I get it all setup again.
  11. The corporation that I work for runs a web proxy, no surprise there, but I am surprise they block the site that hosts koda. I really need to use this today at work and live almost an hour away from home. Can anyone do me a huge favor and email me the latest version of koda and the MD5 so I can confirm no one sends me a modified virus version? I will do my best to pay you back for helping me. I have a collocated box I could let you use for a koda mirror. If my company blocks it then 90% of other fortune 500 companies that use this same software will block it too. Please, if you have a spare moment, email the Koda app to me at avery (-at-symbol-) abox (dot-or-period) org. Thank you soooo much for doing this if you can. If someone happens to send it to me I will update this post so I don't get 10000 emails with it haha
  12. Thanks guys. I still think it was a hard regex. My example was listed with the numbers under the data as the array index number I was looking to create using the regex but I'm pretty sure these awesome regex would work with either anyways, correct? The 111,222,333 etc is not in the original data-source I'm looking to parse. I will do the donation just as I promised and it was totally worth it even though some of you think it was easy. I've always struggled with regex for some reason. Maybe someone will buy me a regex book for Christmas, it was on my list to Santa.
  13. Does anyone know if this is impossible to do with RegEx or not? (Warning: Head-ache material) To populate an Array with: Example #1 04/19/2005 09:16 AM 16,384 BUILTIN\Administrators filename.doc 1111111111 22222222 333333 44444444444444444444444444444444444 Example #2 04/19/2005 09:16 AM 16,384 BUILTIN\Administrators filename.doc 1111111111 22222222 333333 4444444444444444444444 555555555555 The <blank area> are not tabs, unforgivably, they are spaces. I also understand a login name could include spaces as well so I figured "Example #1" is impossible or to high of a probability to result in bad results. I figured "Example #2" might be do-able if I was to understand regex better. I tried to use StringSplit but the delimiters are not consistent enough for me to get good results with. Please, if there are any regex guru's out there, help me. These things hurt my head worse then anything else. I understand I am asking for a lot of help. I'll donate 10$ to jon@autoitscript.com to help with his hosting bills if anyone is willing to try and help me out with my regex. Thanks for reading my post. Respectfully, Avery Howell Merry Christmas or Happy Holidays!
  14. Run("iBot.exe AS:$message2 AB: HI", "$message1") Run("iBot.exe AS: " & $message2 & " AB: HI", $message1) Is that what you mean? Hope this helps. Avery Howell
×
×
  • Create New...