Jump to content

Windows Seven + Autoit


Recommended Posts

Hello everyone ~

Well, i have currently some troubles with autoit, my script worked fine in windows xp, i tried on windows seven, nothing worked ...

I added this line :

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****

#AutoIt3Wrapper_UseX32=y

#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****

Still not work ~

Thanks for you help and have a good day ~

Kind Regards -

Link to comment
Share on other sites

Hey ~

I have no error when i launch my script (exe or iu3)

that just doesnt work, hotkey doesnt work, nothing work.

Here is my code :

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_UseX32=y
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
Opt("GUIOnEventMode", 1)


HotKeySet("{a}", "stop")
HotKeySet("{b}", "start")


$process = True
$blabla = 2
$color = "000000"
$limit = 100

; Dod
; until $blabla = 0
While 1
    Sleep(1000)
WEnd


Func stop()
    $process = False
EndFunc


Func start()
    $success = 0
    $process = True
    Do
        Do

                $var2 = Hex(PixelGetColor(100 ,100), 6)
                $cast = Hex(PixelGetColor($limit ,100), 6)
            Until $var2 = "FFFFFF" OR $var2= "000000" ;...
            
        if $process = False Then
            Return False
        EndIf

        if  $cast = $color Then

                  send("1")

            $success = 1
        Endif
    Until $success = 1

Endfunc

(I checked for pixelget color and stuff, everything is good, good position and stuff so its not a code prob but dunno why it really doesnt work on windows seven)

(my script worked pretty fine on xp 32x, then i have no segment issues, i also tried the compatibility prog from windows seven and he just said to me "problem solved, but your program is not compatibily)

thanks ~

Edited by bingbing
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...