 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
utilael
Joined: 30 May 2009 Posts: 7
|
Posted: Sat Jul 18, 2009 5:06 pm Post subject: Always on top Gui not always on top |
|
|
I was kind of expecting it, but now I'm wondering if there's a way to get around it. Very simple script mostly just using the example from the help file:
| Code: | CustomColor = 005511
Gui, +E0x20 +LastFound -Caption +ToolWindow +AlwaysOnTop
Gui, Color, %CustomColor%
Gui, Add, Picture, , C:\Users\UserName\Pictures\aaa.bmp
WinSet, TransColor, %CustomColor% 150
Gui, Show |
All I want it to do is display a semi-transparent cursor in the middle of the screen, which it does quite nicely. However, when I run counter-strike (heh, you can probably tell why I want the cursor now), even in windowed mode the game takes precedence over all other windows, including the AHK Gui.
Just wondering if there's an even more powerful Always on Top option that might be able to get on top of games that like to hog the screen.
Also, the game will block out all hotkeys I make. (i.e. if I remap the 'p' key to be the 't' key, it will always work outside of the game but in counterstrike it sends a 'p' instead... tested and confirmed with the in game chat). This happens with all steam games I run and I figure it's a similar problem where the game is taking precedence.
Any ideas would help greatly, =D thanks. |
|
| Back to top |
|
 |
Dbof
Joined: 13 Jan 2009 Posts: 19
|
Posted: Sat Jul 18, 2009 5:31 pm Post subject: |
|
|
http://www.autohotkey.com/docs/FAQ.htm#games
*edit*
| Quote: | Many games support variables passed by the shortcut to launch in windowed mode.
If these games support that, such as HalfLife, I believe it is -windowed or -window, you could create a little gui to call those. |
|
|
| Back to top |
|
 |
utilael
Joined: 30 May 2009 Posts: 7
|
Posted: Sat Jul 18, 2009 7:08 pm Post subject: |
|
|
Thank you for the quick reply, however, no luck even with the following script:
| Code: | Process, Priority,, High
SetKeyDelay, 0, 50, Play
p::
SendPlay, m
SendInput, m
Send, m
ControlSend, Valve001, m
ControlSend,, m, Counter-Strike
return |
All that appears in Counter-strike is a 'p'.
*edit*
something interesting that came up when trying other methods, I compiled the script and tried running it again with counterstike, didn't work, so I pulled up the folder with the script, changed some things and tried re-compiling it and got the message: Error: Error opening the destination file.
I tried again, no luck, I minimized counter-strike and it worked just fine... huh? what is counter-strike doing tested that multiple times and if I have counter-strike running in the background it won't let me compile a script.
I'm really not too smart with this stuff, so I have no idea what's going on =(. Currently I am looking through all the solutions other people have done with their games, still looking though. |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|