| Author |
Message |
Forum: Support Topic: Controlsend shift/de-shift the second character problem |
| Shamu |
|
Posted: April 9th, 2010, 11:44 pm
|
|
Replies: 6 Views: 458
|
| Please try to concentrate on the code, and not at why I'm doing this. No, I'm not sending this to the address bar. And Edit1 (from window spy) is from a text box in a webpage that I'm filling out and then click submit. Ever upload your pics online and add in a little comment? That's what I'm doing. |
|
 |
Forum: Support Topic: Controlsend shift/de-shift the second character problem |
| Shamu |
|
Posted: April 9th, 2010, 9:23 pm
|
|
Replies: 6 Views: 458
|
| Thanks for your reply leef_me. I'm trying to send text to a webpage text box and then click submit. On my faster computer at work with better internet connection, it rarely change my second character to upper/lower case. On my home computer with lower connection, it does this about 50% of the times.... |
|
 |
Forum: Support Topic: Controlsend shift/de-shift the second character problem |
| Shamu |
|
Posted: April 9th, 2010, 7:19 pm
|
|
Replies: 6 Views: 458
|
| Plz advise on how to improve my code reliability. I have a working code to control send text into a text box. Unfortunately, it randomly shift or de-shift the second character of my text. Here's my code: ;read from a text file Loop, Read, C:\screenshots.txt { ArrayCount += 1 Array%ArrayCount% :... |
|
 |
Forum: Support Topic: Search image using OR |
| Shamu |
|
Posted: March 15th, 2010, 12:05 am
|
|
Replies: 2 Views: 199
|
| thank you for your tips answer4u, but I can not get my codes to work by adding parathesises as your example below. YOur other tips are a little complicated for me to understand since i'm new to programming. |
|
 |
Forum: Support Topic: Randomly search in 4 quadrants |
| Shamu |
|
Posted: March 14th, 2010, 12:12 pm
|
|
Replies: 2 Views: 124
|
| Thank you hugov. It is so simple and worked well, but i'm so tired to think. Blame it on the 3am or me just being newbie at programming. |
|
 |
Forum: Support Topic: Randomly search in 4 quadrants |
| Shamu |
|
Posted: March 14th, 2010, 11:22 am
|
|
Replies: 2 Views: 124
|
| Hi, I split my screen into 4 quadrants. How do I randomly search in one of the 4 quadrants? This is what I have so far: ^x:: CenterX := (A_ScreenWidth/2) CenterY := (A_ScreenHeight/2) image1 := PixelSearch, x, y, 40, 170, %CenterX%, %CenterY%, 0x241CED, 1, Fast image2 := PixelSearch,... |
|
 |
Forum: Support Topic: Search image using OR |
| Shamu |
|
Posted: March 14th, 2010, 9:35 am
|
|
Replies: 2 Views: 199
|
| Hi, I'm trying to search for different images using OR. When the image is found click on it. This is what I have so far but it doesn't seem to work. Does anyone knows what is wrong with my codes? ImageSearch, mx, my, 768, 22, 996, 371, *70 C:\iron.png OR , ImageSearch, mx, my, 768, 22, 996, 371, *70... |
|
 |
Forum: Support Topic: pixelsearch from center of screen and radially outward |
| Shamu |
|
Posted: March 10th, 2010, 7:10 pm
|
|
Replies: 5 Views: 462
|
| I have a working script that search for a color, but it starts searching from the upper left corner of my coordinates. Here's my code: PixelSearch, x, y, 100, 200, 650, 650, 0x0608B4, 1, Fast Is there a way to modify my code so that it starts searching from the center of my screen and radially outwa... |
|
 |
Forum: Support Topic: Search and replace regex |
| Shamu |
|
Posted: February 18th, 2010, 8:09 pm
|
|
Replies: 11 Views: 775
|
| Thank you Sinkfaze. your codes are working perfectly! |
|
 |
Forum: Support Topic: Search and replace regex |
| Shamu |
|
Posted: February 18th, 2010, 6:23 pm
|
|
Replies: 11 Views: 775
|
| Thanks for your response. I am trying to find the unique pattern: class="title_1"><a href="/ extract the part following the pattern in each line of a file: answer/2010/01/26/34841.shtml and then add the prefix: http://help.com/ so that it will be: http://help.com/answer/2010/01/26/348... |
|
 |
Forum: Support Topic: Search and replace regex |
| Shamu |
|
Posted: February 18th, 2010, 1:51 am
|
|
Replies: 11 Views: 775
|
| Thanks sinkfaze. The codes are not doing what I intended. Please help if you're still around. Here's a small example of the contents in my file C:\temp.txt to read from: class="title_1"><a href="/answer/2010/01/26/34841.shtml" title="i can't login class="title_1"><... |
|
 |
Forum: Support Topic: Search and replace regex |
| Shamu |
|
Posted: February 13th, 2010, 2:08 am
|
|
Replies: 11 Views: 775
|
| Thx again sinkfaze. HOw do I search and replace class="title_1"><a href=" with http://testing.com/ I've tried using the escape \ character, but it won't work. class=[color=red]\[/color]"title_1[color=red]\[/color]"><a href=[color=red]\[/color]" |
|
 |
Forum: Support Topic: Search and replace regex |
| Shamu |
|
Posted: February 12th, 2010, 1:40 am
|
|
Replies: 11 Views: 775
|
| Thank you sinkfaze. Your codes work exactly the way I was trying to do. I just had to modify your line: res.=((A_Index=1) ? "" : "`n") "http://testing.com/" m to res.=((A_Index=1) ? "" : "`n") "http://testing.com/... |
|
 |
Forum: Support Topic: Search and replace regex |
| Shamu |
|
Posted: February 11th, 2010, 11:28 pm
|
|
Replies: 11 Views: 775
|
| Hi, I'm a newbie coder so plz bare with me. I would like to search for a pattern of text in a file, replace it, and store it in a variable. Here are a few sentences from my C:\temp.txt file: <a target="clickwindow" href=view.php?ve=10522 target=_blank <a target="clickwindow" href... |
|
 |
Forum: Support Topic: Search expression between 2 lines |
| Shamu |
|
Posted: February 5th, 2010, 12:23 am
|
|
Replies: 5 Views: 176
|
| Thanks to all that replied. Thanks for your codes, sinkfaze. It works perfectly. I throw in an OR operation in your codes just in case some one mispell the word. I'm not a programmer and only know about AHK a few weeks ago. I'm learning, cut and paste other folks codes, and try to help myself. You'r... |
|
 |
| Sort by: |