Search found 297 matches

by rommmcek
Yesterday, 18:46
Forum: Scripts and Functions
Topic: Screen clipping
Replies: 123
Views: 17398

Re: Screen clipping

Below global IMUGR_client:="XXXXX" put: global ClipWidth, ClipHight HotKeys: f1:: f2:: f3::SCW_ScreenClip2Win(clip:=1,email:=0,IMUGR:=0) Where to show: f (A_ThisHotkey = "f1") v1:=0, v2:=0 ; upper left corner else if (A_ThisHotkey = "f2") v1:=A_ScreenWidth-ClipWidth, v2...
by rommmcek
Yesterday, 16:18
Forum: Offtopic
Topic: Code Puzzle Thread
Replies: 74
Views: 8593

Re: Code Puzzle Thread

Thanks Helgef and special acknowledgment this time to FG!

Maybe these were still not the last stones in my array mosaic, but very precious ones for sure!
by rommmcek
12 Dec 2017, 04:05
Forum: Offtopic
Topic: Code Puzzle Thread
Replies: 74
Views: 8593

Re: Code Puzzle Thread

Awesome tractates! One think I still don't understand. Why count to two? Why not just simply use X:=List[2] instead?, knowing what is at the second place. And then why would X:="abcd 1" break the function? Any way I do understand this things a bit better now. Bye! P.s.: In FG's superior so...
by rommmcek
11 Dec 2017, 12:02
Forum: Scripts and Functions
Topic: ToolTipAll
Replies: 15
Views: 497

Re: ToolTipAll

Thanks once again for OnExit, HandleExit.
With ClearType I won't bother since even you don't report much improvement.
Update in OP.

bye!
by rommmcek
11 Dec 2017, 01:03
Forum: Scripts and Functions
Topic: ToolTipAll
Replies: 15
Views: 497

Re: ToolTipAll

Sorry for the wrong report! ToolTipAll seems to work fine without any undesired interactions (w or w/o Ptr-s).
The culprit for my trouble was interaction between ScreenClipping and ClipJump.
by rommmcek
10 Dec 2017, 12:03
Forum: Scripts and Functions
Topic: ToolTipAll
Replies: 15
Views: 497

Re: ToolTipAll

Thanks for tutorial... However today wasn't my happy day. The whole day my version of ClipJump almost didn't work. Now I switched back in ToolTipAll to UInt and it works as it should again. P.s.: Link above is for original version. Edit: Inserting Ptr-s to ToolTipAll does not make ClipJump to fail!
by rommmcek
09 Dec 2017, 18:48
Forum: Scripts and Functions
Topic: ToolTipAll
Replies: 15
Views: 497

Re: ToolTipAll

Thanks, very generous!
First two Ptr-s of the SetWinEventHook would I probably guess. I mean guess. The last one never! Yes I often check MSDN, but I don't know C!

P.s.: Thanks for links, and very extensive work of yours!
P.p.s.: I noticed only now. Drugwash suggested UPtr-s. I have no clue!
by rommmcek
09 Dec 2017, 11:37
Forum: Scripts and Functions
Topic: ToolTipAll
Replies: 15
Views: 497

Re: ToolTipAll

Thanks for reviewing the code. Obviously I'm an ignorant amateur. This is probably 5 min task for a Pro, but for me it'll take a lot of researching and comparison. However, since I didn't detect any significant problem on x64 machine & Ahk, I won't hurry.
by rommmcek
09 Dec 2017, 02:03
Forum: Scripts and Functions
Topic: Screen clipping
Replies: 123
Views: 17398

Re: Screen clipping

I'm actually working on correct capturing under MS Magnifier. Currently I'm able to do this if the upper left corner of the screen has 0, 0 coordinate values at 100%, 200%, 300%, ... magnification. What I do is in fact displacing of the capturing point, calculated by ScreenClipping. This should work...
by rommmcek
08 Dec 2017, 13:03
Forum: Offtopic
Topic: Code Puzzle Thread
Replies: 74
Views: 8593

Re: Code Puzzle Thread

This is my best till now:
by rommmcek
08 Dec 2017, 10:01
Forum: Scripts and Functions
Topic: Screen clipping
Replies: 123
Views: 17398

Re: Screen clipping

Don't give up so easily! On your place I would try this: x+=100, y-=100 to displace capturing for 100 pixels to the right and upwards. In a few iteration you can reach the right place! Besides consider this: ratio secondMonWidth/firstMonWidth must be greater then 1 and ratio secondMonHight/firstMonH...
by rommmcek
08 Dec 2017, 08:06
Forum: Scripts and Functions
Topic: Screen clipping
Replies: 123
Views: 17398

Re: Screen clipping

Excuse me for being so imprecise! This is the function to be edited: Gdip_BitmapFromScreen(Screen=0, Raster="") { if (Screen = 0) { Sysget, x, 76 Sysget, y, 77 Sysget, w, 78 Sysget, h, 79 } else if (Screen&1 != "") { Sysget, M, Monitor, %Screen% x := MLeft, y := MTop, w := MR...
by rommmcek
08 Dec 2017, 02:26
Forum: Offtopic
Topic: Code Puzzle Thread
Replies: 74
Views: 8593

Re: Code Puzzle Thread

I know something is wrong, since it works only if I know the content of the List . Yes, you are right! I actually even don't understand why this for k, l in List x:=l works! I just have a hunch that the function must somehow process the x and l in order to make comparison. P.s.: I'm desperately wait...
by rommmcek
08 Dec 2017, 00:52
Forum: Scripts and Functions
Topic: Screen clipping
Replies: 123
Views: 17398

Re: Screen clipping

Just play with these two lines:
- v1:=237, v2:=207 (where to show)
- x:=237, y:=207, w:=683, h:=400 (what to capture)
P.s.: Please remove this: sx:=sx*2, sy:=sy*2 (just this, curly bracket remains!). This was blunder of mine!
by rommmcek
07 Dec 2017, 16:37
Forum: Offtopic
Topic: Code Puzzle Thread
Replies: 74
Views: 8593

Re: Code Puzzle Thread

O.k., maybe I cheated (came in through not secured back door).
If so, let's go non plus ultra:

Code: [Select all]GeSHi © Codebox Plus

	for k in List
!x ? x:="abcd " A_Index-99 : ""
This is ~74% faster!
P.s.: I got it already before, but I didn't think to this concatenation!
by rommmcek
07 Dec 2017, 15:27
Forum: Offtopic
Topic: Code Puzzle Thread
Replies: 74
Views: 8593

Re: Code Puzzle Thread

Thanks for incentive! Don't know if this is allowed, but it certainly doesn't break given rules and yields desired result! for , l in List x:="abcd " l for k in List x:="abcd " k P.s.: I got it already before, but I didn't think to this concatenation: "abcd "
by rommmcek
07 Dec 2017, 13:04
Forum: Scripts and Functions
Topic: Screen clipping
Replies: 123
Views: 17398

Re: Screen clipping

I wasn't clear enough and you didn't read attentive enough!
P.s.: Press F2 or drag with a mouse what ever while pressing Win!
by rommmcek
07 Dec 2017, 11:45
Forum: Scripts and Functions
Topic: Screen clipping
Replies: 123
Views: 17398

Re: Screen clipping

@Sabestian Caine: Adding on the same spot x:=237, y:=207, w:=683, h:=400 and v1:=237, v2:=207 after StringSplit, v, Area, | would capture desired block no matter what you've chosen! P.s.: You've been lucky, all things are related! P.p.s.: If you want trigger capturing with HotKey w/o dragging a mous...
by rommmcek
07 Dec 2017, 11:11
Forum: Scripts and Functions
Topic: Screen clipping
Replies: 123
Views: 17398

Re: Screen clipping

Adding x*=2, y*=2, w*=2, h*=2 on the same spot would yield correct capture of the screen, providing Windows Magnifier is set to 100% and upper left corner of the screen has 0, 0 coordinate values!

Edit: Removed redundant scaling of hbm
by rommmcek
07 Dec 2017, 09:30
Forum: Scripts and Functions
Topic: Screen clipping
Replies: 123
Views: 17398

Re: Screen clipping

@Tank: Sounds like you have different resolution on second monitor or probably vertical orientation (portrait). Solution would be to scale the coordinates for capturing, adding x*=round(x*secondMonWidth/firstMonWidth), y*=round(y*secondMonHight/firstMonHight) before penultimate block...

Go to advanced search