Jump to content

Help with simple script


Recommended Posts

Hi i`m newbie so sorry for silly question but maybe someone can help me with this one:

Global $tablename = "Options"

Run("notepad.exe")

WinWaitActive("Untitled - Notepad")

Send(GetAction())

Func GetAction()

WinActivate ("Generator of """ & $tablename)

if (PixelGetColor ( 1151 , 59 ) == 16711680) then

return 1

WinActivate($tablename)

elseif (PixelGetColor ( 1152 , 69 ) == 16776960) then

return 2

WinActivate($tablename)

elseif (PixelGetColor ( 1151, 79 ) == 65535) then

return 3

WinActivate($tablename)

elseif ((PixelGetColor ( 1153 , 89 )) == 65280) then

return 4

WinActivate($tablename)

endif

EndFunc

The prob is that it gets till here (WinActivate ("Generator of """ & $tablename)) but then stops and does nothing

Thanks

Sorry if i posted it in the wrong dir :whistle:

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...