| Author |
Message |
Forum: Support Topic: Move a gui WITH a caption bar using PostMessage |
| berban_ |
|
Posted: May 19th, 2012, 8:38 pm
|
|
Replies: 2 Views: 27
|
| Hi, I have often used the very handy tip found in the thread [How To] Enable Drag for a GUI without a Titlebar to drag a gui. However I was wondering if there was a comparatively simple way to drag a gui that does have a title bar? The following PostMessage PostMessage, 0xA1, 2, , , <Window Title> .... |
|
 |
Forum: Gaming Topic: Dynamically reference a variable that's outside a function |
| berban_ |
|
Posted: May 15th, 2012, 4:39 am
|
|
Replies: 1 Views: 59
|
| I'd do it like this: TotalItems = 20 Loop %TotalItems% { If scanScreen(x1, y1, x2, y2, "Item" A_Index ".png") ; this if-statement executes if the function returned true and does not execute if the function returned false { Item%A_Index%++ ; increment that counter. Keep this state... |
|
 |
Forum: Support Topic: How do I initialize a variable with a variable in it's name? |
| berban_ |
|
Posted: April 19th, 2012, 2:17 pm
|
|
Replies: 9 Views: 77
|
| For those of us who use basic, you could also do this with assume static mode. f_output(ByRef dbg, name, state) { [color=red]static[/color] if state = start { TimeArray%name% := A_TickCount outputdebug % name " : " state } else { time := A_TickCount - TimeArray%name% outputdebug % name &qu... |
|
 |
Forum: Scripts Topic: FindClick() - Click an onscreen image, and more |
| berban_ |
|
Posted: April 18th, 2012, 4:33 pm
|
|
Replies: 17 Views: 2426
|
| Aply : No space between k and the value for k Also since the value contains a space you'll need quotes FindClick("image.png","a x-20 k""{LButton Down}""") You need to double the quotes since it is in an expression. Alternatively you could do this: Options = a... |
|
 |
Forum: Scripts Topic: MultiTap() - Fit many hotkeys into one |
| berban_ |
|
Posted: April 13th, 2012, 9:24 pm
|
|
Replies: 15 Views: 1300
|
| Ah. So I think I understand now. You want there to be 2 different modes, sorta? ⋅ If the hotkey that initializes the function is a quick tap (I suppose it is multi TAP isn't it?) then outcome A occurs, in your example the selection/changing of a multitap command. ⋅ If the key i... |
|
 |
Forum: Scripts Topic: MultiTap() - Fit many hotkeys into one |
| berban_ |
|
Posted: April 12th, 2012, 10:34 pm
|
|
Replies: 15 Views: 1300
|
| Hey XX0 ! I have a couple of comments in response to your post; unfortunately none of them directly answer the question as far as I can tell :? ⋅ If you're going to have your script sending "a", and "a" is also a hotkey in your script, you'll need the "$" oper... |
|
 |
Forum: Support Topic: Create PNG or other file from pixel color data |
| berban_ |
|
Posted: April 4th, 2012, 6:54 am
|
|
Replies: 7 Views: 207
|
| I know it sounds odd - and it may well be. The script I'm trying to make is one that will help grab screenshots for the ImageSearch command. ImageSearch images are generally best kept small, and they are also finicky, so pixel precision counts. So I wanted to make a script that could help the user t... |
|
 |
Forum: Support Topic: Create PNG or other file from pixel color data |
| berban_ |
|
Posted: April 4th, 2012, 1:09 am
|
|
Replies: 7 Views: 207
|
| Sure, I can clarify. The below code could signify a solid white 3x3 image: Color_1_1 := "FFFFFF" Color_2_1 := "FFFFFF" Color_3_1 := "FFFFFF" Color_1_2 := "FFFFFF" Color_2_2 := "FFFFFF" Color_3_2 := "FFFFFF" Color_1_3 := "FFFFFF" C... |
|
 |
Forum: Support Topic: Create PNG or other file from pixel color data |
| berban_ |
|
Posted: April 3rd, 2012, 11:51 pm
|
|
Replies: 7 Views: 207
|
| Hey tic ! The input data would basically be color info gathered by PixelGetColor. So you could turn that into any format you wanted within AutoHotkey I suppose - a string, pseudoarray, etc. By the way I was looking through the GDI+ functions and I noticed Gdip_SetPixel() which I had missed before. A... |
|
 |
Forum: Support Topic: Create PNG or other file from pixel color data |
| berban_ |
|
Posted: April 3rd, 2012, 9:25 pm
|
|
Replies: 7 Views: 207
|
| Hey, I was just wondering: if I have a collection of pixel color data, e.g. (1,1) = 00FF00, (2,1) = 00EF01, ... (4,4) = ABCD04 (i.e. a 4x4 image) – is there any relatively simple way to write this to a file in some usable image format? Currently the only method I can think of is using the GDI+ lib t... |
|
 |
Forum: Scripts Topic: Changing the system cursor |
| berban_ |
|
Posted: March 30th, 2012, 4:26 pm
|
|
Replies: 47 Views: 15949
|
| Thank you just me !!!!! As far as I can tell that fixes the problem! GDI objects do not increase with each call to the function. :D I will now use this version instead. Also I'd recommend to Serenity that you update the main posting to incorporate this modification. By the way your initializing thin... |
|
 |
Forum: Scripts Topic: Changing the system cursor |
| berban_ |
|
Posted: March 29th, 2012, 6:45 pm
|
|
Replies: 47 Views: 15949
|
| Ah. Thanks :) Now the script still accumulates GDI objects but at a much slower rate. For instance if I change the cursor 50 times now, it'll have 160 as opposed to 2500 before. (So that makes it 16x slower I suppose?) However I if change it 400 times it'll end up with around 1200 objects, which I s... |
|
 |
Forum: Scripts Topic: Changing the system cursor |
| berban_ |
|
Posted: March 29th, 2012, 2:58 pm
|
|
Replies: 47 Views: 15949
|
| I'd assume that this is caused by the double CopyImage in Else If SystemCursor = 1 . The second copy is destroyed automatically by the system, but not the first. I'd also assume that loading all system cursors only once should be sufficient. Hm, I tried commenting out both CopyImage calls one at a ... |
|
 |
Forum: Scripts Topic: Changing the system cursor |
| berban_ |
|
Posted: March 29th, 2012, 5:38 am
|
|
Replies: 47 Views: 15949
|
| Hey, Thanks for this great function! I've been using it for a long time and am very grateful for it :) I've long had an odd problem where it seemed that on occasion - like once a week or so - the cursor would freeze in a certain shape. Reloading the script fixed the problem though so it was never a ... |
|
 |
Forum: Scripts Topic: SendData() - Sending data between scripts with SendMessage |
| berban_ |
|
Posted: March 17th, 2012, 4:38 pm
|
|
Replies: 8 Views: 919
|
Hey cka-cka, thanks for the complement!
You were exactly right to modify that regular expression as you did. I knew that part of the function was pretty crappy which is why I had it marked with red. And your modification makes a lot of sense so I'm going to add it to the main post. |
|
 |
| Sort by: |