| Author |
Message |
Forum: Issues Topic: Edit control not redrawing upon gaining focus. |
| Xander |
|
Posted: November 13th, 2007, 8:53 pm
|
|
Replies: 4 Views: 1710
|
| Your example works for me as well (it draws correctly). I've been able to narrow it down a bit further.. the edit control must be part of a tab control to reproduce this. Adding a tab control to your code produces the drawing error: gui, add, tab, , Tab gui, add, edit, w100 r10, 1`n2`n3`n4`n5`n6`n7`... |
|
 |
Forum: Support Topic: Run script when file added to a directory |
| Xander |
|
Posted: November 13th, 2007, 6:48 pm
|
|
Replies: 5 Views: 651
|
| I don't know if there is a way to be notified when a file is added to a directory, but you could create your own monitoring of the directory. #NoEnv PreviousFiles := GetFiles() SetTimer, CheckFiles, 1000 return CheckFiles: Files := GetFiles() if (Files != PreviousFiles) Run, ... |
|
 |
Forum: Support Topic: `n not working properly when outputting to ini |
| Xander |
|
Posted: November 13th, 2007, 6:40 pm
|
|
Replies: 4 Views: 498
|
You can try to insert
Code: timelog = %timelog%
before writing it to the other file. I believe that trims off any whitespace. |
|
 |
Forum: Support Topic: Mouse to Key |
| Xander |
|
Posted: November 13th, 2007, 6:33 pm
|
|
Replies: 10 Views: 912
|
| So I don't mind if the mouse to move the gamepads d pad or the keyboards d pad, but the keyboard would be more intresting as it could be used for other things, Did you get it working? If not here is a short script that might be useful. It may be necessary to change SendMode to get it to work with d... |
|
 |
Forum: Support Topic: Mouse to Key |
| Xander |
|
Posted: November 12th, 2007, 12:21 am
|
|
Replies: 10 Views: 912
|
| Ahh, is the mouse not suppose to move or is that not important? You'd probably have to poll for the mouse position every 10-50 ms depending on the response tolerance you require. Probably would be best to reset the mouse to the middle of the screen after each poll as it could probably get stuck at t... |
|
 |
Forum: Support Topic: Mouse to Key |
| Xander |
|
Posted: November 12th, 2007, 12:03 am
|
|
Replies: 10 Views: 912
|
Yes.
Code: Left:: MouseMove, -1, 0, , R
Should do the job. |
|
 |
Forum: Support Topic: blank return when should be true (1) or false (0) |
| Xander |
|
Posted: November 11th, 2007, 11:58 pm
|
|
Replies: 3 Views: 884
|
The syntax error is in here:
Code: Display_PixelSearch(x, y - (findText ? (h - 2) * 2), w, 1, 0xFFFFFF, 0, c)
Not the isPixel bit in the Display_PixelSearch function. |
|
 |
Forum: Support Topic: Difference between AHK regex tester 2.1 and AHK |
| Xander |
|
Posted: November 11th, 2007, 7:30 pm
|
|
Replies: 2 Views: 474
|
Huh?
Code: haystack := " 75 98 " pattern := "\b[0-9]+\b" RegExMatch(haystack, pattern, match) MsgBox, % match
Shows 75 |
|
 |
Forum: Support Topic: Using Regex substring in function, is it possible? |
| Xander |
|
Posted: November 11th, 2007, 7:26 pm
|
|
Replies: 5 Views: 845
|
Give an example haystack and what you want to find. What you want is not clear.
Do you want to find "123" in something that looks like: "\tabc123\t" ?
If so, just use "\t[a-z]+(\d+)\t". |
|
 |
Forum: Support Topic: blank return when should be true (1) or false (0) |
| Xander |
|
Posted: November 11th, 2007, 3:30 pm
|
|
Replies: 3 Views: 884
|
| Here are the executed lines in question: 145: println("light:" . Display_PixelSearch(x, y, w, 2*h, "LightForeground", 0, c)) 063: Display_GetContext(device, context, pixels, id) 086: if !id 088: if (SubStr(id, 1, 1) = "c") 089: co... |
|
 |
Forum: Support Topic: blank return when should be true (1) or false (0) |
| Xander |
|
Posted: November 11th, 2007, 3:19 pm
|
|
Replies: 3 Views: 884
|
| The following function always returns 1 or 0: /* Usage: * Searches for the specifed color in the given rectangle of a window capture created from Display_CreateWindowCapture * Parameters: * x, y, w, h: the rectangle parameters to search * color: the color in BGR format or one of: * BlueBackground, B... |
|
 |
Forum: Support Topic: Variables in functions - Dont know how to solve this |
| Xander |
|
Posted: November 9th, 2007, 2:04 am
|
|
Replies: 2 Views: 493
|
| I have split up a lot of code in a number of functions. There is one mother function and several child functions. I want all the variables to be accessible to all functions in this cluster, but I want them to be inaccessible to other parts of the applications, and I want them to become garbage coll... |
|
 |
Forum: Support Topic: do command at a specific time ? |
| Xander |
|
Posted: November 5th, 2007, 12:14 am
|
|
Replies: 3 Views: 577
|
You can use SetTimer... from the documentation:
Quote: A timer's period can be no larger than 4294967295 milliseconds (49.7 days).
8 hours << 49.7 days |
|
 |
Forum: Scripts Topic: Open Function Declaration (Notepad++) |
| Xander |
|
Posted: November 4th, 2007, 11:47 pm
|
|
Replies: 4 Views: 3811
|
| The function/command list compiled by dieom (I believe) is used. That appears to be a subset of the function/command list in AutoHotkey\Extras\Editors\Notepad++\AHK Autohotkey.api (part of the AHK install.) As I recall, dieom posted the list with no reference to its origin. Yes, I got it from dieom... |
|
 |
Forum: Scripts Topic: Open Function Declaration (Notepad++) |
| Xander |
|
Posted: November 4th, 2007, 4:42 am
|
|
Replies: 4 Views: 3811
|
| Added a little more sophistication but it is still only for Notepad++ Ctrl+D to go to the function declaration of the function at the current caret position. Ctrl+P to list as a tooltip all the parameters of the function/command at the current caret position. Will search for functions in the script ... |
|
 |
| Sort by: |