Hi all,
just another stupid question;
I would like to open a window in max mode by a key press,
and
I would like to close the same window with another key press,
just can´t seem be able to do this simple thing...sorry guys
SimPlayer
Open/close window
Re: Open/close window
Do you mean like this?
Code: Select all
F1::Run, notepad.exe, , Max
F2::WinClose, ahk_exe notepad.exe
Re: Open/close window
Hi, and thanks for the answer, it works!
But, that doesn´t mean that I understand it....what does the "ahk_exe mean on row two??
Then, the thing is this:
I would like to put up a "sign" like "over" the softvare im runnig, the softvare like goes in pause untill the user does something.
Notepad is not the best softvare to do this in, is it possible to have a jpg file (maybe a PrtSc) to "call on" (in this case) pressing F1,
and then close on pressing F2??
If I put the file on the desktop, how would the code look like?
thanks..
But, that doesn´t mean that I understand it....what does the "ahk_exe mean on row two??
Then, the thing is this:
I would like to put up a "sign" like "over" the softvare im runnig, the softvare like goes in pause untill the user does something.
Notepad is not the best softvare to do this in, is it possible to have a jpg file (maybe a PrtSc) to "call on" (in this case) pressing F1,
and then close on pressing F2??
If I put the file on the desktop, how would the code look like?
thanks..
Re: Open/close window
Adding "ahk_exe" before it means "match any window belonging to the following executable." In this case, it'll close notepad.exe regardless of the title of the window (i.e. regardless of the document opened in it).
I'm not really following your second request. If you want to be able to pause and unpause the script by pressing a key, you can create a hotkey for it.
I'm not really following your second request. If you want to be able to pause and unpause the script by pressing a key, you can create a hotkey for it.
Re: Open/close window
Ok, thanks
I will try to explain better,
I'm running a game, and in a certain part of the game it will pause, and the screen freezes.
At that moment an AHK script will run a jpg fullscreen info window over the game view,
and after a while the script will exit the info window (jpg picture) and the game will start running again.
It could also be a "GAME OVER" info screen, depending on the game ofcourse.
I got I working with the run command where I first run the software and secondly place the path to the jpg file. But, it was the wrong software, it should not show any menus or anything, just the jpg file.
Do You know of a light software (no editing what so ever needed) that would show jpg in fullscreen with window in Max??
thanks.
I will try to explain better,
I'm running a game, and in a certain part of the game it will pause, and the screen freezes.
At that moment an AHK script will run a jpg fullscreen info window over the game view,
and after a while the script will exit the info window (jpg picture) and the game will start running again.
It could also be a "GAME OVER" info screen, depending on the game ofcourse.
I got I working with the run command where I first run the software and secondly place the path to the jpg file. But, it was the wrong software, it should not show any menus or anything, just the jpg file.
Do You know of a light software (no editing what so ever needed) that would show jpg in fullscreen with window in Max??
thanks.
Re: Open/close window
Well, you can display a splash image with AutoHotkey. I haven't used it. Look up SplashImage in the help file.
Re: Open/close window
Hi again.
Thanks, works perfectly!
A simple code like this:
F1::SplashImage, C:\LFS\GameOver.jpg, b
F2::SplashImage, Off
Thanks, works perfectly!
A simple code like this:
F1::SplashImage, C:\LFS\GameOver.jpg, b
F2::SplashImage, Off