Search found 50 matches
- 25 Apr 2023, 12:41
- Forum: Ask for Help (v1)
- Topic: Routine executes when i don't want to.
- Replies: 8
- Views: 367
Re: Routine executes when i don't want to.
Oh i think i know what's happening with this one, i got a msgbox in there, so i have 7 windows open, the 8th call generates outpid = ERROR, then the script "WinWait" for the window to open .. and it freezes there ^^
- 25 Apr 2023, 12:30
- Forum: Ask for Help (v1)
- Topic: Routine executes when i don't want to.
- Replies: 8
- Views: 367
Re: Routine executes when i don't want to.
Well, i think the problem is in another place this time O.O So i took just the F7 routing and put it into a single script, closed all other scripts. and the same it executes one time perfectly, then i have to reload the script for it to work. f7:: x = 1 loop, 27 { winn = Window%x% iniread, outpid, r...
- 25 Apr 2023, 12:19
- Forum: Ask for Help (v1)
- Topic: Routine executes when i don't want to.
- Replies: 8
- Views: 367
Re: Routine executes when i don't want to.
Thanks for the help :) Yes i had a look over older instances. I have been using this bracket syntax for years and i usually had similar problem, and had to break routines into one per script, which gets messy if i have 7-8 different scripts running in same time. Would you recommend moving to v2 ? an...
- 25 Apr 2023, 11:13
- Forum: Ask for Help (v1)
- Topic: Routine executes when i don't want to.
- Replies: 8
- Views: 367
Re: Routine executes when i don't want to.
Here it comes, i'm very noob i know it looks terrible :D f5:: { WinGet, var, PID, A inputbox, wnr, Position in grid, What is the position?,,,,,,,, winpos = Window%wnr% ;msgbox, %wnr% ;iniwrite, %wnr%, robloxpos.ini, %winpos%, winnumber iniwrite, %var%, robloxpos.ini, %winpos%, PID ; WINDOW 1 if (wnr...
- 25 Apr 2023, 11:05
- Forum: Ask for Help (v1)
- Topic: Routine executes when i don't want to.
- Replies: 8
- Views: 367
Re: Routine executes when i don't want to.
Yes it says file version 1.1.34.3 this test F1:: { run notepad return } F2:: { run chrome return } [Mod edit: [code][/code] tags added.] without return executes both rutines, but with return it stoped after first one. Not sure why the script i try to write executes all at once even though i put retu...
- 25 Apr 2023, 10:39
- Forum: Ask for Help (v1)
- Topic: Routine executes when i don't want to.
- Replies: 8
- Views: 367
Routine executes when i don't want to.
Hello, So i made a long script which gives the f5 f6 and f7 some routines to do. The syntax i used is : F5:: { bla bla } F6:: { bla bla } f7:: { bla bla } All the {} are correct, but somehow when i execute F5, the F6 executed too, and when i execute F7, it only works for the first time, after that i...
- 05 Apr 2023, 06:12
- Forum: Gaming Help (v1)
- Topic: Send key to background window
- Replies: 2
- Views: 830
Re: Send key to background window
Thanks, that script has the problem he's describing, the key is sent into text input only, it doesn't trigger a game action.
After some digging i saw that
After some digging i saw that
- 05 Apr 2023, 05:37
- Forum: Gaming Help (v1)
- Topic: Send key to background window
- Replies: 2
- Views: 830
Send key to background window
Hi, I found this script which works perfectly with notepad settitlematchmode,2 capslock:: controlsend,,a, - Notepad,,,,NA return I'm trying to modify it to send key to roblox in background, without activating it. I checked windows spy, and the name of the window is : https://ibb.co/Tc6WgYP I tryed t...
- 29 Nov 2021, 05:09
- Forum: Ask for Help (v1)
- Topic: website read timeout Topic is solved
- Replies: 2
- Views: 699
Re: website read timeout Topic is solved
Thanks, just tested (some) of the functionality and does the job
- 28 Nov 2021, 16:14
- Forum: Ask for Help (v1)
- Topic: website read timeout Topic is solved
- Replies: 2
- Views: 699
website read timeout Topic is solved
Can somebody help me modify this a little bit please ? I need to include it in a file, and i'd like it if the file doesn't have access to the website (for let's say 30 seconds), the program to terminate. whr := ComObjCreate("WinHttp.WinHttpRequest.5.1") whr.Open("GET", "https://www.autohotkey.com", ...
- 27 Nov 2021, 07:29
- Forum: Ask for Help (v1)
- Topic: Remove special characters from variable Topic is solved
- Replies: 1
- Views: 755
Remove special characters from variable Topic is solved
Hi,
I'm trying to load some info into a variable, but the info contains special characters like - / \. I'm not sure how to remove all of those.
I'm testing with this script, to remove just a - which appears in my computer name:
I'm trying to load some info into a variable, but the info contains special characters like - / \. I'm not sure how to remove all of those.
I'm testing with this script, to remove just a - which appears in my computer name:
Code: Select all
info := StrReplace(%computername%,-, %A_Space%)
msgbox, %info%
- 25 Nov 2021, 17:39
- Forum: Ask for Help (v1)
- Topic: Basic GUI Topic is solved
- Replies: 8
- Views: 957
Re: Basic GUI Topic is solved
Sorry i must have copied something wrong or one of the ahk files running modified something, i recopied and it works *blush*
<3
edit: oh i modified the button name and i forgot i need to change the function name too. This was my first meeting with GUI
<3
edit: oh i modified the button name and i forgot i need to change the function name too. This was my first meeting with GUI
- 25 Nov 2021, 17:20
- Forum: Ask for Help (v1)
- Topic: Basic GUI Topic is solved
- Replies: 8
- Views: 957
Re: Basic GUI Topic is solved
For me it doesn't change the content of the clipboard after clicking the button.
I tryed to paste into a browser, and nothing changed in the clipboard.
I tryed to paste into a browser, and nothing changed in the clipboard.
- 25 Nov 2021, 16:52
- Forum: Ask for Help (v1)
- Topic: Basic GUI Topic is solved
- Replies: 8
- Views: 957
Re: Basic GUI Topic is solved
Clipboard content doesn't get changed though.
- 25 Nov 2021, 16:29
- Forum: Ask for Help (v1)
- Topic: Basic GUI Topic is solved
- Replies: 8
- Views: 957
Basic GUI Topic is solved
So i want to add a little tooltip which on click, will add something into clipboard and close tooltip. Else, the tooltip to close after 10 seconds. I think i need to use gui, and i got something like this Gui, +toolwindow -border Gui, Color, white gui, add, text,, AAA by Gui, Add, Button,, me gui, s...
- 25 Nov 2021, 12:55
- Forum: Ask for Help (v1)
- Topic: can you include #if inside #ifwinactive ? Topic is solved
- Replies: 4
- Views: 1029
Re: can you include #if inside #ifwinactive ? Topic is solved
Got ya, it was just stuck in my head that ifwinactive command must be the one and only way to check if the window is active, didn't think that winactive could also be a condition to use
- 25 Nov 2021, 12:42
- Forum: Ask for Help (v1)
- Topic: can you include #if inside #ifwinactive ? Topic is solved
- Replies: 4
- Views: 1029
Re: can you include #if inside #ifwinactive ? Topic is solved
Oh cheers, i thought to use the && but i thought one would need an if to close and another ifwinactive, didn't know both will close with the same command.
- 25 Nov 2021, 12:17
- Forum: Ask for Help (v1)
- Topic: can you include #if inside #ifwinactive ? Topic is solved
- Replies: 4
- Views: 1029
can you include #if inside #ifwinactive ? Topic is solved
I'm trying to include an #if inside this #ifwinactive, and doesn't seem to work, the script works outside that active window. Not sure if it's supposed to work or just my syntax it's bad somewhere . #IfWinActive They Are Billions #If (gameon = True) { Tab::MsgBox "gameone is true" } #if #IfWInactive...
- 25 Nov 2021, 09:39
- Forum: Ask for Help (v1)
- Topic: #if Topic is solved
- Replies: 4
- Views: 1512
Re: #if Topic is solved
Well that looks so simple, thanks.
So basicly, the part between #if's it's not executed by the \ key, it's just activated/dezactivated by it. And while active, it will affect the code within.
So basicly, the part between #if's it's not executed by the \ key, it's just activated/dezactivated by it. And while active, it will affect the code within.
- 25 Nov 2021, 09:29
- Forum: Ask for Help (v1)
- Topic: #if Topic is solved
- Replies: 4
- Views: 1512
Re: #if Topic is solved
Well it's pretty hard for me to follow what you're trying to explain, You're telling me what not to do, can you tell me what i should do ?