Jump to content

MikeP

Active Members
  • Posts

    142
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

MikeP's Achievements

Adventurer

Adventurer (3/7)

0

Reputation

  1. Hi. I have the exact same problem as you... I made a nice working bot in XP and it works well on other people's XP computers. On Vista it doesn't.. apparently the pixelsearch is ok, the mousemove too I think.. but people report me that it doesn't send mouseclics... I've read stuff about putting #RequireAdmin directive so I'll try it but if you guys know more about Vista compatibility problems and what I should do to make that work under Vista feel free to share your experience on these issues. I don't post the code since it's about 2k lines and there's nothing fancy... just Autoit script working nice on XP.
  2. well that's what I typed in my previous post but I prefer using ASCIIs
  3. well for that case your solution works but I also had such strings to test : java script:function("blabh"),'test','200') so .. ASCII is mandatory here since there are " and ' in the string to test or it would come to be quite awful syntax with such thing like : StringRegExp($string, 'java script:function("blahblah"),'&"'test','200')") horrible
  4. well I think I asked too fast. I found the answer. To search for " without having to type it (since it would be wrong syntaxically speaking..because it ends the string to test) I had to use the ASCII code which is 042 for the " .. and in regexps it's written like this \### ascii code in octal thus : wrong : $test = StringRegExp($string, "A HREF="subdir/", 0)oÝ÷ Ú¸ Ö®¶­sbb33c·FW7BÒ7G&æu&VtWb33c·7G&ærÂgV÷C´$TcÒb3#²b3C³C'7V&F"ògV÷C²Â
  5. Hi. This might be easy but I can't seem to find the answer. I'm parsing a file to get such strings : <TD><blhalbhal><A HREF="subdir/blahblah.htm"> </TD> Then I need to use StringRegExp to search for the HREF="subdir/ characters. My problem is I can't write this : $test = StringRegExp($string, "A HREF="subdir/", 0) because the " after the = is finishing the parameter... I don't know if I'm clear or not but If you understood and know how to do this I'd be glad that you'd show me as I'm clueless till now.... Thanks !
  6. Thanks, you enlightened me of something quite easy but since i'm beginner in that syntax... Btw there was a mistake .. I didn't have to escape the / since it's not a backslash \ .. well, you know what I mean. Anyway my problem was the description in helpfile : \z Match only at end of string where in fact.. that MEANS 'end of string' I never understood that. Thanks !
  7. Hi. I'm clearly not used to Autoit's Regexps and that's driving me crazy, here are example strings : http://www.random.com/dir01/files/test.htm http://www.random.com/dir02/files/ http://www.random.com/dir03/files/test.htm http://www.random.com/dir04/files/test.htm http://www.random.com/dir05/files/test.htm http://www.random.com/dir06/files/ goal : detecting empty ones In UltraEdit (i'm a long time user), it's very easy, this is done like this : %*files/$ % = line start * = any character $ = line end (not CR or CRLF) I want to translate it in AutoIt but I simply can't get it. I tried $test = StringRegExp($urlstring, ".*files//", 0)but this never match... and I want it to match the lines that ends with files/ Could anyone with some RegExp knowledge help me a bit please? Thanks.
  8. holy crap there's no DELETE TOPIC function !!!!!!!!!!!!!!!!!!!!!!!! *feels noob* Thanks someone !! .. I guess I spent too much time in front of the screen and can't see simple stuff like this..
  9. Hi. Sorry if that's been asked before but all I could find was about 'detecting' mouse events.. and what I would need is sending a wheel rotation by x degrees (or whatever the unit might be). I was wondering if AutoIt could do it? Ty
  10. Nice way-around.. there's a little mistake in the initialization $check must be True , this script is not the 100% perfect solution though. For a few milliseconds the icon of the .exe file still appear in the tray.
  11. Hi, I'll try describing my problem as precisely as possible to make sure you understand. At the start of my script I'm using #NoTrayIcon then setting up my own with SetTrayIcon(".\ico\*****.ico") what I would like to do is hiding it with TraySetState(2) if a stupid user of my application is going to the ico directory to rename the .ico file. So I tried this : $trayIco = TraySetIcon(".\ico\******.ico") MsgBox(0, "", $trayIco) If $trayIco = 0 Then TraySetState(2) Else TraySetState() EndIf The problem is, wether the script is compiled or not, If i'm changing the ico file name so that the script will fail, the Msgbox always popup with 1 .. which means TraySetIcon was successful... Any ideas?
  12. The problem with PixelSearch is it gives the first pixel found.. from left to right, top to bottom.. don't forget this.
  13. exactly.. I know Autoit is a so-called "scripting" language but it went so far in some areas that such kind of useful feature would be nice
  14. If UBound was smarter built you wouldn't have to do that. Yeah sorry I meant iniReadSection. k I guess I'll just declare the variables in the middle of the script which I clearly hate (and get the size in [0][0] whereas I needed them as Global... whatever ... a pity
  15. I could have figured that.. Let's put it another way : I want to reserve 10 elements which are couples (x, y) but the array won't be filled all the time and I need the number of couples... dim $p[10][2] $p[0][0] = "test1" $p[0][1] = "gffdjgkldfj" $p[1][0] = "test2" $p[1][1] = "tlgfgkldfk" $p[2][0] = "test3" $p[2][1] = "jgdfgjkldfjgdfj" $max = ; here comes the place for a function giving " 3 " For $i = 0 to $max - 1 ; script Next and no way I'll use one dimension array.. those are results from iniRead(), thus, 2-dimension arrays ... that option in UBound is useless ! OF COURSE we know it's 10 and 2 ... we DEFINED them.. no need for that
×
×
  • Create New...