## Search found 141 matches

24 Sep 2017, 10:06
Topic: Sort variables Topic is solved
Replies: 17
Views: 1542

### Re: Sort variables Topic is solved

Thank you guys ;) @TLM I tried to use A_Index method too but I didn't know how to assign values from array to c1 c2 etc, you helped me tons! And yeah, I will use these values later so assigning them is crucial. Until now I only used v1,v2,v3,v4,v5 with random numbers but now I can transform my scrip...
23 Sep 2017, 15:35
Topic: Sort variables Topic is solved
Replies: 17
Views: 1542

### Sort variables Topic is solved

Hello, guys. I spent hours trying to solve this puzzle to no avail :shock: My goal is to sort the variables using the second column numbers in ascending order. Variables to sort: v1:=12 v2:=2 v3:=7 v4:=4 v5:=18 Values used for sorting. id1 represents v1, id2 represents v2 and so on. id1:=500 id2:=20...
22 Sep 2017, 15:12
Topic: Loop Not running
Replies: 2
Views: 240

### Re: Loop Not running

You put "return" inside a loop. If it moves your mouse pointer it returns and you need to press the button again(I guess )
22 Sep 2017, 15:08
Topic: Toggle and loop only looping once
Replies: 1
Views: 182

### Re: Toggle and loop only looping once

Do it like me, make a button to toggle: ~*t:: if mytoggle=0 { mytoggle=1 soundbeep,500,200 return } if mytoggle=1 { mytoggle=0 soundbeep,300,100 sleep,100 soundbeep,300,100 return } And make a loop that is controllable with your loop breaker: *F1:: mytoggle=0 Loop, { if mytoggle=1 break yourscript )...
19 Sep 2017, 14:11
Topic: Point of two intersecting lines at 90 degree Topic is solved
Replies: 5
Views: 649

### Re: Point of two intersecting lines at 90 degree Topic is solved

Well, one thing is certain: Teadrinker, you got a new fan
19 Sep 2017, 11:10
Topic: Point of two intersecting lines at 90 degree Topic is solved
Replies: 5
Views: 649

### Re: Point of two intersecting lines at 90 degree Topic is solved

18 Sep 2017, 06:42
Topic: Point of two intersecting lines at 90 degree Topic is solved
Replies: 5
Views: 649

### Point of two intersecting lines at 90 degree Topic is solved

Hello guys, I am trying to write a script which asks to input A(x;y) and B(x1;y1) and it displays the end result, which is coordinates of c(a;b). I can get lengths of lines so easily because they make right triangles, but when it comes to coordinates I am lost on what to do :oops: Could someone help...
12 Sep 2017, 13:42
Topic: Continuous sound in a loop? Topic is solved
Replies: 2
Views: 235

### Re: Continuous sound in a loop? Topic is solved

I wish there was less CPU taxing method though, it eats up lots of CPU while sending empty wav file :/

edit: found out that pointing to non existent wav file reduces CPU usage exponentially
12 Sep 2017, 13:18
Topic: Continuous sound in a loop? Topic is solved
Replies: 2
Views: 235

### Re: Continuous sound in a loop? Topic is solved

Nvm, I already thought this out:

Code: Select all

A:=1
loop,
{
if GetKeyState("w","P")
{
if (A=1)
{
soundplay,looooongsound.wav
A:=A+1
}
if (A>360)
A:=1
}
else
{
soundplay,none.wav
A:=1
}
sleep,25
}
return
12 Sep 2017, 12:48
Topic: Continuous sound in a loop? Topic is solved
Replies: 2
Views: 235

### Continuous sound in a loop? Topic is solved

How to make the sound run continuously in a loop? Let's say this is the code, when you press w it starts music, releasing the key silences it loop, { if GetKeyState("w","P") soundplay,looooooongsound.wav else soundplay,empty.wav ;its purpose is to break the looooooongsound.wav sleep,25 } return The ...
08 Sep 2017, 06:48
Topic: pixelsearch else doesnt work
Replies: 5
Views: 529

### Re: pixelsearch else doesnt work

First thing I noticed you have two "else" in one bracket pair (it messes your script). Also, what I do in scripts with many conditions, I make only "IF" conditions: if it doesn't comply - it skips to another "IF". You will just make your script more complicated with many ifs and else. Also I may be ...
07 Sep 2017, 02:54
Topic: Ahk GUI/Draw on DirectX Fullscreen
Replies: 0
Views: 229

### Ahk GUI/Draw on DirectX Fullscreen

Hello guys, I have a new idea with AHK and I have two questions: 1st) How to draw a line/arrow/overlay image(?) from coord A to coord B in DirectX applications fullscreen? Let's say I want to make a CoD hit effect whenever I click the mouse (X shaped lines appear on cursor). Is it even possible with...
31 Aug 2017, 04:57
Topic: Comparing group results Topic is solved
Replies: 11
Views: 819

### Re: Comparing group results Topic is solved

By the way, what does "%" indicate in this line? loop % num { % followed by a space allows you to use expression mode instead of traditional mode. This is the same as writing loop %num% { and in this case it's a matter of preference. Your message box can be rewritten using it in the following way: ...
26 Aug 2017, 07:27
Topic: Comparing group results Topic is solved
Replies: 11
Views: 819

### Re: Comparing group results Topic is solved

I'll start working on my script now and I have a feeling it will work out perfectly, thank you obeeb
25 Aug 2017, 08:56
Topic: Comparing group results Topic is solved
Replies: 11
Views: 819

### Re: Comparing group results Topic is solved

If I understood you correctly the following should work and if it does you can also call readNumber in a loop: readNumber(1) ; returns number 1 readNumber(2) ; returns number 2 readNumber(3) ; returns number 3 readNumber(20) ; returns number 20 readNumber(num) { SetFormat, Integer, Hex pointer := R...
25 Aug 2017, 00:30
Topic: Comparing group results Topic is solved
Replies: 11
Views: 819

### Re: Comparing group results Topic is solved

I don't fully understand, can you show me an example with the first 3 numbers and the last number? Can't you just multiply off2 by the times you need to add it which would be the same as the number of the number? If rule Toggle3 is true, it reads the number3: if Toggle3 { SetFormat, Integer, Hex po...
24 Aug 2017, 05:46
Topic: Comparing group results Topic is solved
Replies: 11
Views: 819

### Re: Comparing group results Topic is solved

You can easily do this with an array of all the numbers. ; start checking numbers Numpad1:: currentNums := getNumbers() SetTimer, checkNumbers return checkNumbers: newNums := getNumbers() ; get the new updated numbers ; compare each new number with the current number and soundbeep if it's less loop...
23 Aug 2017, 00:57
Topic: Comparing group results Topic is solved
Replies: 11
Views: 819

### Re: Comparing group results Topic is solved

Hey, thanks for the reply. The number values I get with ReadMemory function so I simplified it to avoid lots of text. currentNumberA I get like this: Process, Exist, application.exe PID := ErrorLevel SetFormat, Integer, Hex value1 := ReadMemory(0x000000,PID) offset1 := value1 + 0x01 currentNumberA :...
22 Aug 2017, 14:56
Topic: Comparing group results Topic is solved
Replies: 11
Views: 819

### Comparing group results Topic is solved

Hey guys, I am writing a script which checks numbers constantly and if one of them decreases, it sends a soundbeep. I was successful with 1 number, but when it comes to a group I hit a wall Here is what I made with a single number check: Numpad1:: ;starts the checking loop for the 1st number toggle1...
12 Aug 2017, 05:47
Topic: Press the button click* release the buton click*
Replies: 3
Views: 325

### Re: Press the button click* release the buton click*

haha why don't you learn from tutorials?

*LButton::
send,{click}
keywait,LButton
*LButton Up:
send,{click}
return