Jump to content

Recommended Posts

Posted

So I've combined three methods to make my GUI to be on top... but it just isn't working, and I don't know why.

I have created a tool which shows my APM (Actions Per Minute) in the new RTS - Starcraft II. I want that little GUI to show my APM (just some numbers) on my Starcraft II screen while I'm playing.

Well for some reason, SC2 is forcing it to be on top when active, and it's completely ignoring my GUI's states to be on top.

Here are the three combinations I have used:

WinSetOnTop("Average APM Tool", "", 1)

;---------------

GUICtrlSetState($Form1, $GUI_ONTOP)

;----------

While 1
    GUISetState(@SW_SHOW, $Form1)


;----------

All three are working fine when I am navigating on my Firefox, opening other programs, etc... but just not SC2.

Any ideas on how to absolutely FORCE this?

Posted

I don't think this is possible to accomplish easily using Au3. You would have to create an overlay for SC2, by hooking into the game etc. Just like the Steam overlay or XFire. Complicated stuff.

You could play SC2 windowed? A lot of games permits this by using command line arguments like "-window".

;)

Posted

  On 10/3/2010 at 7:07 PM, 'Encoded said:

I don't think this is possible to accomplish easily using Au3. You would have to create an overlay for SC2, by hooking into the game etc. Just like the Steam overlay or XFire. Complicated stuff.

You could play SC2 windowed? A lot of games permits this by using command line arguments like "-window".

;)

Yeah, but 50% of the population plays Full Screen... I know I do.

I did find an exact similar program that actually uses the Starcraft II APM Counter that is used in Replays (but not in-game)... They hooked on to it and displayed in live in the game.

Would anyone want to help me in converting the VS code to AutoIt? :/

http://github.com/tec27/APMAlert2

All files are archived at that link... I'm not much of programmer other than AutoIt, so I really don't know what's going on in that code.

A lot of the files there are for customizing the font color/size, which I do not need... So that could narrow down a lot to convert.

  • 2 weeks later...
  • Moderators
Posted

UnknownWarrior,

Have you read this? Might explain why you are getting no replies. ;)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted

  On 10/12/2010 at 7:52 AM, 'Melba23 said:

UnknownWarrior,

Have you read this? Might explain why you are getting no replies. ;)

M23

It's not an automation or bot of any kind. It's a tool to help aide in any game. What if your English teacher assigns you to write a 500 word essay and Microsoft Word didn't tell you how many words you have typed... Wouldn't that just be a pain in the arse?

That's exactly what I am doing here. People want to know how fast they are playing, it measures, to an extent, how well they are doing. Not knowing it is a 'pain in the arse' just like in the example above.

I guess take it for what it's worth. It is not in any way automating anything in a game at all. It could even be used for non-game use if someone would find the use for that. Ex: WPM (Words Per Minute) tool.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...