Jump to content

Working while game fullscreen


Recommended Posts

Hi,

I wanted to know if it was possible to make autoit work while the game (here TQ) is in fullscreen. Cause it doesn't seem to work.

I just want to make a simple "pickit" script...I'm playing single player and I'm getting tired of always "ALT-look for good items-click"...lol...and also because I wanted to practice with autoit.

Anyway...

The script by itself is simple...

I look for a certain color pixel then I click on this coord...and you set that in a function so you can use hotkeys... but that's not my problem...It's because I'm not able to make autoit work in Fullscreen.

Is this possible?

Link to comment
Share on other sites

Which game? And autoit does work in fullscreen. What do you mean by work in fullscreen?

TQ...Titan Quest.

What I mean by it doesn't work in fullscreen is that when I start the script it works when the game is running 1024*768 (windowed) but it doesn't work when it fullscreen...it doesn't do anything...just like if there was not any script running...

Link to comment
Share on other sites

Look...this is my script...why it doesn't work?

;;; Options;;;
Opt("MouseCoordMode", 0)
Opt("PixelCoordMode", 0)
Opt("MouseClickDelay",0)
Opt("MouseClickDownDelay",0)
;;;;;;;;;;;;;;;;;;
;;; Set HotKey;;;
HotKeySet("{0}", "Search" )
HotKeySet("{ESCAPE}" , "_Exit")

;;; Body;;;
While 1
    Sleep (0)
WEnd
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Start Searching for pixel;;;
Func Search()
    While 1
        Send("{ALT down}")
        $coord = PixelSearch(800, 200, 905, 228, 0xFFF52B, 4, 3)
        If Not @error Then
            MouseMove($coord[0],$coord[1],0)
            MouseClick('left')
        EndIf
        Send("{ALT up}")
    WEnd
EndFunc
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;  
Func _Exit()
    Exit
EndFunc
Edited by EliTe_ThuT
Link to comment
Share on other sites

$coord = PixelSearch(800, 200, 905, 228, 0xFFF52B, 4, 3)

EndFunc

Curious if you get a hit with PixelSearch with small screen on 0xFFF52B

BTW- Use $coord = PixelSearch(800, 200, 905, 228, 0xFFF52B, 4)

Then when in full screen - what color does PixelGetColor return at that location?

Edited by 1905russell
Link to comment
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
 Share

  • Recently Browsing   0 members

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