Search found 87 matches
- 22 May 2021, 14:32
- Forum: Ask for Help (v1)
- Topic: Hide windows "Project" window.
- Replies: 1
- Views: 382
Hide windows "Project" window.
I have a code which launches the windows monitor switcher. using Run "C:\Windows\System32\DisplaySwitch.exe" "/external" or Run "C:\Windows\System32\DisplaySwitch.exe" "/internal" This has the same effect as pressing windows + P, where the fly in, fly out menu pops up. I cannot seem to hide this win...
- 18 May 2021, 16:50
- Forum: Ask for Help (v1)
- Topic: Winset top issues
- Replies: 3
- Views: 289
Re: Winset top issues
I understand that it should work, but if you want the class to be active, then why are you activating by HWND instead of by the class? This is meant to work on many different programs, some don't seem to like to be activated by HWND, so I added class as a backup. This one program in particular seem...
- 18 May 2021, 15:20
- Forum: Ask for Help (v1)
- Topic: Winset top issues
- Replies: 3
- Views: 289
Winset top issues
When a program is open I use: WinGet, save_PID, PID, A WinGet, save_ID, ID, A WinGetClass, save_class, A To save the windows class as save_class. I then have two guis open on top of this program, which works fine. Before I close the two guis, I re-activate the progam under save_class, set it to top,...
- 29 Mar 2021, 08:17
- Forum: Ask for Help (v1)
- Topic: Trouble passing multiple parameters to compiled script Topic is solved
- Replies: 10
- Views: 1006
Re: Trouble passing multiple parameters to compiled script Topic is solved
My first parameter is a very large array, set up in a similar fashion, separated by "|". For my purposes I needed this second parameter isolated from the first array.Qriist wrote: associative array. Obviously won't work if your script uses any amount of flags (instead of paramete
- 29 Mar 2021, 03:17
- Forum: Ask for Help (v1)
- Topic: Trouble passing multiple parameters to compiled script Topic is solved
- Replies: 10
- Views: 1006
Re: Trouble passing multiple parameters to compiled script Topic is solved
Ok I got it working. The run did not like the %1% or %2%, and it was really glitchy trying to make that work. So at the very very, top of my script I declared these as variables so they would load up right away. It solved all my issues, and I didn't need to encase my application location in quotes. ...
- 28 Mar 2021, 23:40
- Forum: Ask for Help (v1)
- Topic: Trouble passing multiple parameters to compiled script Topic is solved
- Replies: 10
- Views: 1006
Re: Trouble passing multiple parameters to compiled script Topic is solved
%1% is always a variable reference, not the number 1. This is the old way of accessing the first command line arg. The part enclosed in percent signs is always interpreted as a variable name (in AutoHotkey v1). %2% should work just as well as %1%, provided there is actually a second parameter. %Man...
- 28 Mar 2021, 23:05
- Forum: Ask for Help (v1)
- Topic: Trouble passing multiple parameters to compiled script Topic is solved
- Replies: 10
- Views: 1006
Re: Trouble passing multiple parameters to compiled script Topic is solved
%1% is always a variable reference, not the number 1. This is the old way of accessing the first command line arg. The part enclosed in percent signs is always interpreted as a variable name (in AutoHotkey v1). %2% should work just as well as %1%, provided there is actually a second parameter. %Man...
- 28 Mar 2021, 22:47
- Forum: Ask for Help (v1)
- Topic: Trouble passing multiple parameters to compiled script Topic is solved
- Replies: 10
- Views: 1006
Re: Trouble passing multiple parameters to compiled script Topic is solved
It's probably easier if you provide the actual script that you are using. In that script, before the run line, add a MsgBox line that displays the values of the parameters that you are intending to pass. In your post, include a description of what actually happens, and what should happen instead. A...
- 28 Mar 2021, 21:49
- Forum: Ask for Help (v1)
- Topic: Trouble passing multiple parameters to compiled script Topic is solved
- Replies: 10
- Views: 1006
Re: Trouble passing multiple parameters to compiled script Topic is solved
#SingleInstance Force MsgBox, 64, Params, % "First = " A_Args.1 "`nSecond = " A_Args.2 F3::Run, % (A_IsCompiled ? "" : A_AhkPath " ") A_ScriptFullPath " """ A_Args.1 """ """ A_Args.2 """" Hello, thanks for taking a look at this. The a_isCompiled part doesn't matter so much for me, I have a addresse...
- 28 Mar 2021, 20:56
- Forum: Ask for Help (v1)
- Topic: Trouble passing multiple parameters to compiled script Topic is solved
- Replies: 10
- Views: 1006
Trouble passing multiple parameters to compiled script Topic is solved
Hello, I have a compiled script using #SingleInstance Force, and it has a reload option, which just reopens the app with passed parameters. When I run: run, %A_WorkingDir%/application.exe `"%1%`" I have no issues retrieving the %1%. However, I cannot seem to push more than one parameter. I tried a f...
- 02 Mar 2021, 09:33
- Forum: Ask for Help (v1)
- Topic: Pause animated gif
- Replies: 0
- Views: 242
Pause animated gif
I have a gui that has an a gif animation that I need to be able to pause. Basically my gui loads up in a hidden gui, when it loads up the animation portion I need it to pause until I show the gui. Is it possible with the activex method? I a using this function I found on here to load my gif: AddAnim...
- 06 Jun 2020, 19:20
- Forum: Ask for Help (v1)
- Topic: DirExist non existent function?
- Replies: 1
- Views: 352
DirExist non existent function?
Hello, I am trying to use this function, in this format: if DirExist("C:\Windows") but it returns that it is a non existent function. I am using ahk 1.1.26.01. What am I missing?
- 24 May 2020, 17:52
- Forum: Ask for Help (v1)
- Topic: Run more than one thread, timer?
- Replies: 3
- Views: 769
Re: Run more than one thread, timer?
nothing in ahk can run simultaneously, everything runs sequentially(that includes hotkey threads, timer threads, gui thread and any other kind of ahk "thread" misnomer u can imagine) ure starting a timer, then the first thing u do is turn it off. if was meant to be a single use timer, start it with...
- 24 May 2020, 12:12
- Forum: Ask for Help (v1)
- Topic: Run more than one thread, timer?
- Replies: 3
- Views: 769
Run more than one thread, timer?
Hello, I have a section of script that I would like to run once while at the same time the rest of the script continues to run. I figured maybe settimer would do the trick but it doesn't seem to run independently? Maybe I am going about it wrong. In the code below my sleep timer is causing the whole...
- 02 May 2020, 12:34
- Forum: Ask for Help (v1)
- Topic: W10 Gui "Too many fonts" error message
- Replies: 14
- Views: 1197
Re: W10 Gui "Too many fonts" error message
Thanks very much for the code. I'll check that approach out. I'm also thinking about a method that doesn't used Gui, font at all. I need to be able to deal with text from single word length to full paragraph. Hey so I messed around with the code to make it closer to what you wanted and I got the sa...
- 30 Apr 2020, 20:30
- Forum: Ask for Help (v1)
- Topic: W10 Gui "Too many fonts" error message
- Replies: 14
- Views: 1197
Re: W10 Gui "Too many fonts" error message
Ok, so my function's purpose was to output a font size of a single line of text if the selected font was too large for a given width. So it's a little different from what you wanted but you may be able to re-purpose to suit your needs. Also, I apologize, I would have modified this to more what you w...
- 30 Apr 2020, 10:26
- Forum: Ask for Help (v1)
- Topic: How to check if processs suspended Win10 64bit machine
- Replies: 8
- Views: 683
Re: How to check if processs suspended Win10 64bit machine
Ok thank you I must have done something wrong I'll try again tonight.
- 30 Apr 2020, 10:22
- Forum: Ask for Help (v1)
- Topic: W10 Gui "Too many fonts" error message
- Replies: 14
- Views: 1197
Re: W10 Gui "Too many fonts" error message
I have implemented a similar thing as you and I got the same error. I will check my code again later today but I'm pretty sure I got around that limitation by creating a fake gui with the number 99 and then destroying it before testing out the next font on the loop with another gui with the same num...
- 30 Apr 2020, 07:54
- Forum: Ask for Help (v1)
- Topic: How to check if processs suspended Win10 64bit machine
- Replies: 8
- Views: 683
Re: How to check if processs suspended Win10 64bit machine
Ok I'll try again after work here, I tried using mspaint as the test program, can you try using it on that?
Specifically to verify isprocesssuspended.
- 30 Apr 2020, 07:45
- Forum: Ask for Help (v1)
- Topic: How to check if processs suspended Win10 64bit machine
- Replies: 8
- Views: 683
Re: How to check if processs suspended Win10 64bit machine
I am using a near identical function for suspending and resuming a process and it works fine, but the "IsProcessSuspended" always returns a 1 no matter if it's suspended, not suspending, or even if the program isn't running. Just tried on Windows 10, for me all the functions work correctly. Strange...