AutoHotkey Community

It is currently May 26th, 2012, 8:12 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: July 18th, 2009, 6:06 pm 
Offline

Joined: May 30th, 2009, 7:38 pm
Posts: 7
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 18th, 2009, 6:31 pm 
Offline

Joined: January 13th, 2009, 10:02 pm
Posts: 31
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 18th, 2009, 8:08 pm 
Offline

Joined: May 30th, 2009, 7:38 pm
Posts: 7
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'. :evil:

*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 :shock: 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.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: [VxE], BrandonHotkey, over21, SifJar, StepO and 68 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group