Jump to content
Sign in to follow this  
Zertx

Is it possible to display a timer over a fullscreen game?

Recommended Posts

Zertx

I have tried many scripts, programs and other things but nothing seems to work. The best I have got is autoit tooltip blinking a few times every few seconds. I am talking about fullscreen not fullscreen windowed.

I am wanting the timer to display in fullscreen not windowed fullscreen. I already got it working in windowed fullscreen but I can hardly even run the game in fullscreen and I think.... windowed fullscreen lags you more.

After googling a lot it seems the only way is to directx inject which I have no idea about.. so before trying to learn how to do that I am wondering if anyone has had success with this. I have read multiple posts from googling autoit and the scripts ppl posted saying they work worked in windowed fullscreen but not the normal fullscreen for me at least..

Share this post


Link to post
Share on other sites
water

I understand the rules that game automation isn't allowed. But simply displaying a timer over a game window shouldn't be against the rules.

Can you please explain what you want the "timer" for?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
mLipok
EDIT: I figured it out. I thought about the concept.
Although no longer play the game, the same approach is also interesting for me.
 
I will try to do a description.
 
How to display: time, free memory, CPU usage,
in a window or other graphical element, but so specific that:
displays information will always appear on top, for example, in the upper right corner of the screen,
regardless of what is currently doing on the system, it can be while watching a movie or while playing games.
 
 
EDIT:
btw.
 
@Zertx  
welcome to the forum
 
EDIT2:
This solution can be regarded as a tester, computer performance.
This will allow for ongoing monitoring of important parameters of the system during the operation of other applications.
Edited by mlipok

Signature beginning:   Wondering who uses AutoIT and what it can be used for ?
* GHAPI UDF - modest begining - comunication with GitHub REST API Forum Rules *
ADO.au3 UDF     POP3.au3 UDF     XML.au3 UDF    How to use IE.au3  UDF with  AutoIt v3.3.14.x  for other useful stuff click the following button

Spoiler

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

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST APIErrorLog.au3 UDF - A logging Library
 

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF SMTP Mailer UDF * Dual Monitor resolution detection *

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * 

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskScheduler

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2018-10-15

Share this post


Link to post
Share on other sites
water

By "I figured it out" do you mean you know how to do it? Because thats the meaning of "I figured it out" according to my dictionary.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
Zertx

Well.. to time lol. Pretty much it is for speedrunning. Most streamers have a clock / timer overlay thing but I think that is from xsplit or something or maybe they are doing windows fullscreen. I went to http://speedrunslive.com/tools/ and the timers they have I think only showup in windows fullscreen. Right now I am using windows fullscreen to practice with those timers but I would never do it an actual race because the loading is noticeably slower.

Below is one of the scripts I tried from googling. It displays time exactly how I want it to very small but it does not work in just normal fullscreen. Bigger would be okay, a clock with seconds would be okay etc... the timer does not matter just the fact that it can display over the fullscreen game is what is important. But if I was able to choose what script I would use it would definitely be this one.

#include <Date.au3> ; used for _TicksToTime() 
HotKeySet("{PAUSE}", "Quit") ; to exit 
HotKeySet("{F2}", "start_timer") ; Start or Reset timer 
;Set and unset Pause and Resume hotkeys, eliminates multi pressing of pause or resume.
Global $Init0, $PausedTimer, $iHours, $iMins, $iSecs
While 1     
   Sleep(10) ; Small sleep to lower cpu usage 
WEnd 

; The function that starts or resets the stopwatch 
Func start_timer()     
   HotKeySet("{NUMPADMULT}") ;disable resume timer 
   HotKeySet("{NUMPADSUB}", "pause_timer") ;enable pause timer
   $PausedTimer = 0
   $Init0 = TimerInit()
   AdlibRegister("show_timer", 60)

   
EndFunc   ;==>start_timer 

; The function that pauses the stopwatch 
Func pause_timer()
   HotKeySet("{NUMPADSUB}") ;disable pause timer
   HotKeySet("{NUMPADMULT}", "resume_timer") ;enable resume timer
   $PausedTimer += Int(TimerDiff($Init0))     
   AdlibUnRegister() 
EndFunc   ;==>pause_timer 

; The function that resumes the stopwatch
Func resume_timer()     
   HotKeySet("{NUMPADMULT}") ;disable resume timer
   HotKeySet("{NUMPADSUB}", "pause_timer") ;enable pause timer
   $Init0 = TimerInit()
   AdlibRegister("show_timer", 60) 
EndFunc   ;==>resume_timer 

Func show_timer()     ; _TicksToTime to get hours, mins, seconds
   _TicksToTime(Int(TimerDiff($Init0) + $PausedTimer), $iHours, $iMins, $iSecs)

   ;StringFormat to display the time as HH:MM:SS
   ToolTip("HH:MM:SS = " & StringFormat("%02i:%02i:%02i", $iHours, $iMins, $iSecs), 0, 0, "Timer")   
EndFunc   ;==>show_timer 

; Exit 
Func Quit()     
   Exit
EndFunc   ;==>Quit
Edited by Zertx

Share this post


Link to post
Share on other sites
mLipok

 

I figured it out.

 

I mean: I thought about the concept.

sorry if I using incorrect wording.


Signature beginning:   Wondering who uses AutoIT and what it can be used for ?
* GHAPI UDF - modest begining - comunication with GitHub REST API Forum Rules *
ADO.au3 UDF     POP3.au3 UDF     XML.au3 UDF    How to use IE.au3  UDF with  AutoIt v3.3.14.x  for other useful stuff click the following button

Spoiler

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

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST APIErrorLog.au3 UDF - A logging Library
 

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF SMTP Mailer UDF * Dual Monitor resolution detection *

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * 

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskScheduler

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2018-10-15

Share this post


Link to post
Share on other sites
water

If you need a timer why don't you put a stopwatch next to your screen?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
Zertx

If you need a timer why don't you put a stopwatch next to your screen?

 

I dont have one lol.. will buy one if I can not get this working.

Share this post


Link to post
Share on other sites
AutID

If you find a solution besides injecting your window please let me know. I run in a similar problem lately and can't seem to find an answer. Not with a timer of course

Edit: the solution i got for the moment is changing from fullscreen to windowed fullscreen and then displaying the gui on my window. I made it a child window to the main window so i could use the right coords and gui would fit to the application i am using but still can't make it work on a fullscreen :/

Edited by AutID

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×