Search found 31 matches

by wryyymuda
29 May 2019, 16:27
Forum: Ask For Help
Topic: anyway to make sure current directory is a certain filepath Topic is solved
Replies: 1
Views: 122

Re: anyway to make sure current directory is a certain filepath Topic is solved

so i fixed most of the problems, commented what most lines do, and have it actually work, works for any file path as long as it gets filled in correctly. username = %A_username% ;gets the username ; gets the username and stores it in a easier to use variable startup = C:\Users\%username%\AppData\Roa...
by wryyymuda
29 May 2019, 14:51
Forum: Ask For Help
Topic: anyway to make sure current directory is a certain filepath Topic is solved
Replies: 1
Views: 122

anyway to make sure current directory is a certain filepath Topic is solved

i need my ahk script to move itself to C:\Users\%A_username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup so it starts upon login, i have done this but i also need to make sure the file is actually there. so let's say i run it on my desktop, it should be able to detect its not where...
by wryyymuda
31 Jan 2019, 21:39
Forum: Ask For Help
Topic: says unneeded { and } but idk why? Topic is solved
Replies: 6
Views: 439

Re: says unneeded { and } but idk why? Topic is solved

full code below, just reads a random line from txt file. #singleinstance, force inputbox, file, input txt, file to read (press < to activate) +.:: if ( file > 0 ) { Loop, Read, %file% { lines = %A_Index% } random, rngline , 1 , %lines% filereadline , text, %file%, %rngline% msgbox, %text% } else if ...
by wryyymuda
31 Jan 2019, 21:24
Forum: Ask For Help
Topic: says unneeded { and } but idk why? Topic is solved
Replies: 6
Views: 439

Re: says unneeded { and } but idk why? Topic is solved

The one-true-brace style ( block 's opening brace on the same line as the block's controlling statement rather than underneath on a line by itself) is only allowed for normal loops : https://autohotkey.com/docs/commands/Block.htm#otb https://autohotkey.com/docs/commands/Loop.htm#Remarks this means,...
by wryyymuda
31 Jan 2019, 21:07
Forum: Ask For Help
Topic: Need help with pauseing a looping script Topic is solved
Replies: 5
Views: 466

Re: Need help with pauseing a looping script Topic is solved

Code: Select all

sleep, 5000
loop {
	loop, 4 {
	send, %A_index%
	}
	sleep, 10000
	}
p::
	pause
	return
press p to pause, is toggle a built in function? if not then thats the problem.
by wryyymuda
31 Jan 2019, 20:51
Forum: Ask For Help
Topic: says unneeded { and } but idk why? Topic is solved
Replies: 6
Views: 439

says unneeded { and } but idk why? Topic is solved

this is the code, right now i'm trying to make a file that reads a text doc and generates a random line from it but i ran into an unexpected error, at lines 8 and 11 it says } is unexpected but i'm extremely confused by this. can anyone help? #singleinstance, force inputbox, file, input, which .txt ...
by wryyymuda
29 Jan 2019, 17:44
Forum: Ask For Help
Topic: script not working, can someone help?
Replies: 1
Views: 291

script not working, can someone help?

so i made a simple script originally it checks the contents of your clipboard then replaces it with what its supposed to. i tried that 3 times, none of which worked entirely. so i made a GUI function but it doesn't even work now. i will post only 2 so of the scripts can someone tell me what i'm doin...
by wryyymuda
29 Jan 2019, 17:20
Forum: Ask For Help
Topic: have no idea whats wrong can someone help?
Replies: 1
Views: 255

have no idea whats wrong can someone help?

so i made a simple script originally it checks the contents of your clipboard then replaces it with what its supposed to. i tried that 3 times, none of which worked entirely. so i made a GUI function but it doesn't even work now. i will post only 2 so of the scripts can someone tell me what i'm doin...
by wryyymuda
15 Nov 2018, 13:28
Forum: Ask For Help
Topic: stringreplace not working Topic is solved
Replies: 1
Views: 250

stringreplace not working Topic is solved

hi, so i recently made a script that opens a gui and allowes you to enter text into 3 edits and replace certain characters in the first string. i added a clipboard view to this and it was working but now it seems to have stopped working. any guesses? ;;-----------------------------------------------...
by wryyymuda
07 Nov 2018, 20:47
Forum: Ask For Help
Topic: simplify stuff in script by having a variable in variable
Replies: 4
Views: 481

Re: simplify stuff in script by having a variable in variable

loop 8 { gui, add, text, x1 y1 w15 h15 varxy%A_index%, %A_index% } gui, show, h700 w700 loop, { sleep, 100 loop 8 { ranxy += 1 random, x%A_index%, 0, 690 random, y%A_index%, 0, 690 } loop, 8 { guicontrol, move, arxy%A_Index%, % "x" X%A_Index% "y" Y%A_Index% }} guiclose: exitapp this is it now here ...
by wryyymuda
07 Nov 2018, 20:43
Forum: Ask For Help
Topic: simplify stuff in script by having a variable in variable
Replies: 4
Views: 481

Re: simplify stuff in script by having a variable in variable

thanks. i have shaved off 34 lines of code.
by wryyymuda
07 Nov 2018, 20:28
Forum: Ask For Help
Topic: simplify stuff in script by having a variable in variable
Replies: 4
Views: 481

Re: simplify stuff in script by having a variable in variable

the purpose of this script is just testing some stuff for another script im making
by wryyymuda
07 Nov 2018, 20:26
Forum: Ask For Help
Topic: simplify stuff in script by having a variable in variable
Replies: 4
Views: 481

simplify stuff in script by having a variable in variable

so i made this ranxy = 0 gui, add, text, x1 y1 w100 h100 varxy1, a gui, add, text, x1 y1 w100 h100 varxy2, b gui, add, text, x1 y1 w100 h100 varxy3, c gui, add, text, x1 y1 w100 h100 varxy4, d gui, add, text, x1 y1 w100 h100 varxy5, e gui, add, text, x1 y1 w100 h100 varxy6, f gui, add, text, x1 y1 w...
by wryyymuda
01 Nov 2018, 21:12
Forum: Ask For Help
Topic: hide/destroy text in gui?
Replies: 1
Views: 317

hide/destroy text in gui?

so i was testing some gui stuff out for something i planned on making later but i ran into a problem, i couldn't hide the text and so i tried that but it was something like this(just the loop part) loop { x += 10 y += 10 guicontrol, hide , text gui, add , text , x%x% y%y% vtext , sample text if ( x ...
by wryyymuda
01 Nov 2018, 20:49
Forum: Ask For Help
Topic: hide/destroy text in gui?
Replies: 1
Views: 289

hide/destroy text in gui?

so i was testing some gui stuff out for something i planned on making later but i ran into a problem, i couldn't hide the text and so i tried that but it was something like this(just the loop part) loop { x += 10 y += 10 guicontrol, hide , text gui, add , text , x%x% y%y% vtext , sample text if ( x ...
by wryyymuda
27 Sep 2018, 15:17
Forum: Ask For Help
Topic: make script read some text that periodically appears?
Replies: 2
Views: 227

Re: make script read some text that periodically appears?

i dont really know what to do here.
by wryyymuda
26 Sep 2018, 20:45
Forum: Ask For Help
Topic: make script read some text that periodically appears?
Replies: 2
Views: 227

make script read some text that periodically appears?

I need to make my script read some text that is formatted like this, example text, %person% is now %level%! and this is on discord, don't ask, and it would really help the efficiency of the script if it can read that. I was thinking that it would like take a picture and compare it to others or read ...
by wryyymuda
24 Sep 2018, 18:18
Forum: Ask For Help
Topic: multiply varibles?
Replies: 3
Views: 374

Re: multiply varibles?

i just did

Code: Select all

inputbox, var , example , example var , , 300 , 300
var += %var%
msgbox, %var%
by wryyymuda
24 Sep 2018, 17:40
Forum: Ask For Help
Topic: how to tell if a variable is integer? Topic is solved
Replies: 7
Views: 793

Re: how to tell if a variable is integer? Topic is solved

nevermind you have to combine the is and not.

Go to advanced search