## Search found 141 matches

- 06 Dec 2017, 09:05
- Forum: Ask For Help
- Topic: Maths puzzle Topic is solved
- Replies:
**14** - Views:
**969**

### Re: Maths puzzle Topic is solved

This was an interesting puzzle. I approached it from pure geometry math. Each cell is defined by 4 line segments. So to determine if a transecting line segment intersects any cell you need only to determine if it intersects with any of those 4 line segments. The below script not only finds all the ...

- 06 Dec 2017, 06:13
- Forum: Ask For Help
- Topic: Comparing strings? Topic is solved
- Replies:
**6** - Views:
**488**

### Re: Comparing strings? Topic is solved

But is this the most efficient way? I tried checking two objects with 1million numbers each. It takes 1-2 seconds.

I wonder if it's possible to reduce the checking time to a minimum?

I wonder if it's possible to reduce the checking time to a minimum?

- 06 Dec 2017, 05:38
- Forum: Ask For Help
- Topic: Comparing strings? Topic is solved
- Replies:
**6** - Views:
**488**

### Comparing strings? Topic is solved

loop,5 { str .= A_Index "," } str.= 11 str:=rtrim(str, ",") loop,5 { str2 .= 10+A_Index "," } str2:=rtrim(str2, ",") msgbox % str msgbox % str2 exitapp It's me again with cool question :xmas: This script is a basic example of two strings str and str2 . How do I compare numbers of both strings and r...

- 06 Dec 2017, 05:13
- Forum: Ask For Help
- Topic: Maths question :D Topic is solved
- Replies:
**7** - Views:
**575**

### Re: Maths question :D Topic is solved

Thank you guys, I'll try these in various scripts ^^

- 05 Dec 2017, 13:36
- Forum: Ask For Help
- Topic: Maths question :D Topic is solved
- Replies:
**7** - Views:
**575**

### Re: Maths question :D Topic is solved

Anyone ideas? I'm trying to use equations but I don't get correct values for each quadrant

- 05 Dec 2017, 04:51
- Forum: Ask For Help
- Topic: Maths question :D Topic is solved
- Replies:
**7** - Views:
**575**

### Re: Maths question :D Topic is solved

I get 298.6,101.4 for Z in your example, which seems right. It's also the result that I get from solving the problem with the built-in trigonometric functions: d:= 2 c1:= 200-300 c2:= 200-100 deg := ATan(c1/c2) zx := 300 + (d * Sin(deg)) zy := 100 + (d * Cos(deg)) Both sets of code seem to work fin...

- 04 Dec 2017, 16:09
- Forum: Ask For Help
- Topic: Maths question :D Topic is solved
- Replies:
**7** - Views:
**575**

### Maths question :D Topic is solved

I am getting insane from all the math, could someone help me solve this task? https://i.imgur.com/DZvuxiV.jpg As you can see in the image, I have a line AB, dot C and the shortest way possible to intersect: point D. I am trying to make a script which calculates coordinates of the points along the pe...

- 23 Nov 2017, 05:29
- Forum: Ask For Help
- Topic: Maths puzzle Topic is solved
- Replies:
**14** - Views:
**969**

### Re: Maths puzzle Topic is solved

@FanaticGuru

Your script works perfectly with several tests I made!

Your script works perfectly with several tests I made!

- 21 Nov 2017, 12:44
- Forum: Ask For Help
- Topic: Maths puzzle Topic is solved
- Replies:
**14** - Views:
**969**

### Re: Maths puzzle Topic is solved

This is even more complex than I imagined, sorry for being not precise. Starting coordinates are [0:0] and it is enough to calculate for 1 line - I want to understand the script and can later add more lines if I get such task :D Also the start of my script is not related to the example values. It is...

- 21 Nov 2017, 06:45
- Forum: Ask For Help
- Topic: Maths puzzle Topic is solved
- Replies:
**14** - Views:
**969**

### Maths puzzle Topic is solved

Hello, I have a really tough assignment to solve. Please help me someone! :headwall: Task: There is a given area of squares. The size of the area may vary (in the example below we have 11x10 squares, 110 in total). The squares are always numbered from top to down. Each square is 50x50 pixels. Make a...

- 03 Oct 2017, 07:13
- Forum: Gaming
- Topic: AutoFishing Runescape Topic is solved
- Replies:
**1** - Views:
**214**

### Re: AutoFishing Runescape Topic is solved

You forgot 'CoordMode, Mouse, Screen' at the top of the script?

- 03 Oct 2017, 07:11
- Forum: Gaming
- Topic: Need Help Creating a Bot for PS4 Remote Play Game
- Replies:
**1** - Views:
**526**

### Re: Need Help Creating a Bot for PS4 Remote Play Game

lol use google, mate. send and sleep commands are basics of basics.

- 03 Oct 2017, 06:53
- Forum: Ask For Help
- Topic: RMB function variation to position on screen
- Replies:
**4** - Views:
**356**

### Re: RMB function variation to position on screen

ofc it's possible: getmousepos,x,y

then make condition: if x>400&&x<800&&y>200&&y<400

and add it to the loop to constantly check. My example would activate condition if mouse pointer is in an upper right area of the screen.

then make condition: if x>400&&x<800&&y>200&&y<400

and add it to the loop to constantly check. My example would activate condition if mouse pointer is in an upper right area of the screen.

- 26 Sep 2017, 11:39
- Forum: Ask For Help
- Topic: Sort variables Topic is solved
- Replies:
**17** - Views:
**1453**

### Re: Sort variables Topic is solved

Yeah I thought so It is now officially finished, cheers!Helgef wrote:I see, tryCheersCode: Select all

`t:: str:="" ; ...`

- 26 Sep 2017, 09:50
- Forum: Ask For Help
- Topic: Stop rapid sequence of keys being treated as combination?
- Replies:
**2** - Views:
**310**

### Re: Stop rapid sequence of keys being treated as combination?

It works as expected, it's just that when you press them rapidly you are not releasing button sometimes while pressing the other so it sends k. In your place I would make more reliable script like a sends h s sends j holding a for some time sends k holding s for some time sends other button You get ...

- 26 Sep 2017, 09:43
- Forum: Ask For Help
- Topic: Sort variables Topic is solved
- Replies:
**17** - Views:
**1453**

### Re: Sort variables Topic is solved

the smallest value gets pushed into the 5th spot for some reason. The proposed array methods by TLM and SirRFI will only work with integers, float (and string) keys are sorted alphabetically, not numerically. I ran your sorter again and found out that it can not deal with repeating values Example? ...

- 26 Sep 2017, 03:26
- Forum: Ask For Help
- Topic: Sort variables Topic is solved
- Replies:
**17** - Views:
**1453**

### Re: Sort variables Topic is solved

@Helgef

I ran your sorter again and found out that it can not deal with repeating values. I can not put it into a loop to check values constantly

I ran your sorter again and found out that it can not deal with repeating values. I can not put it into a loop to check values constantly

- 26 Sep 2017, 03:20
- Forum: Ask For Help
- Topic: Sort variables Topic is solved
- Replies:
**17** - Views:
**1453**

### Re: Sort variables Topic is solved

It is enough to sort once, you don't need to sort on every iteration of the loop. Eg, loop,5 str.=id%A_Index% "?" v%A_Index% "`n" sort, str, N loop parse, str, `n { StringSplit, P, A_LoopField, ? ; You do not need to escape -> ? A%A_Index% := P2 } I do not see the issue with small values being igno...

- 25 Sep 2017, 09:59
- Forum: Ask For Help
- Topic: Sort variables Topic is solved
- Replies:
**17** - Views:
**1453**

### Re: Sort variables Topic is solved

Edit: Actually the aforementioned method has a bug, the 5th value is being ignored when its value is much lower than the rest. I solved the array thingy like this: t:: C1:=5, C2:=4, C3:=3, C4:=2, C5:=1 v1:=C1, v2:=C2, v3:=C3, v4:=C4, v5:=C5 id1:=500, id2:=200, id3:=1000, id4:=700, id5:=10 loop,5 { s...

- 25 Sep 2017, 08:55
- Forum: Ask For Help
- Topic: Sort variables Topic is solved
- Replies:
**17** - Views:
**1453**

### Re: Sort variables Topic is solved

In the end TLM's answer was the only clear to me. I'm still too noob to play with arrays :D This is the adjusted TLM's script to do what I need: t:: C1:=5, C2:=4, C3:=3, C4:=2, C5:=1 v1:=C1, v2:=C2, v3:=C3, v4:=C4, v5:=C5 id1:=500, id2:=200, id3:=1000, id4:=700, id5:=10 arr := {} While ( id%a_index%...