Jump to content

Writing a variable to a targeted window


Recommended Posts

Can autoit it write a variable to a targeted window?

This happens to be my first real question since i joined here lol.

I have been messing with this and cannot see how i can do it.

These variables are what i need to pass to the target window because this is in the game script.

launchLogan = 0

main.releasePower = 200

main.fishPull = 0

Can someone help me out here?

I do know doing it like this it doesnt work :S. Thank You.

#Include <Misc.au3>
Opt("WinWaitDelay", 100)
Opt("WinTitleMatchMode", 4);1=start, 2=subStr, 3=exact, 4=advanced, -1 to -4=Nocase
Opt("WinDetectHiddenText", 1)
Opt("PixelCoordMode", 2)      ;1=absolute, 0=relative, 2=client
Opt("MouseCoordMode", 2)      ;1=absolute, 0=relative, 2=client

WinWait("classname=Shell_TrayWnd", "")
If Not WinActive("classname=Shell_TrayWnd", "") Then WinActivate("classname=Shell_TrayWnd", "")
WinWaitActive("classname=Shell_TrayWnd", "")

WinWait("http://www.gaiaonline.com - Gaia Fishing", "")
If Not WinActive("http://www.gaiaonline.com - Gaia Fishing", "") Then WinActivate("http://www.gaiaonline.com - Gaia Fishing", "")
WinWaitActive("http://www.gaiaonline.com - Gaia Fishing", "")
Sleep(100)

launchLogan = 0
main.releasePower = 200
main.fishPull = 0

$rare = 1

While $rare = 1
;~ Hold End Key to Stop
    MouseClick("left", 546, 241, 1)
    Sleep(900)
    If _IsPressed("23") Then $rare = 0
WEnd
Edited by £åߥ®Ñth
Link to comment
Share on other sites

Can autoit it write a variable to a targeted window?

This happens to be my first real question since i joined here lol.

I have been messing with this and cannot see how i can do it.

These variables are what i need to pass to the target window because this is in the game script.

launchLogan = 0

main.releasePower = 200

main.fishPull = 0

Can someone help me out here?

I do know doing it like this it doesnt work :S. Thank You.

#Include <Misc.au3>
Opt("WinWaitDelay", 100)
Opt("WinTitleMatchMode", 4);1=start, 2=subStr, 3=exact, 4=advanced, -1 to -4=Nocase
Opt("WinDetectHiddenText", 1)
Opt("PixelCoordMode", 2)     ;1=absolute, 0=relative, 2=client
Opt("MouseCoordMode", 2)     ;1=absolute, 0=relative, 2=client

WinWait("classname=Shell_TrayWnd", "")
If Not WinActive("classname=Shell_TrayWnd", "") Then WinActivate("classname=Shell_TrayWnd", "")
WinWaitActive("classname=Shell_TrayWnd", "")

WinWait("http://www.gaiaonline.com - Gaia Fishing", "")
If Not WinActive("http://www.gaiaonline.com - Gaia Fishing", "") Then WinActivate("http://www.gaiaonline.com - Gaia Fishing", "")
WinWaitActive("http://www.gaiaonline.com - Gaia Fishing", "")
Sleep(100)

launchLogan = 0
main.releasePower = 200
main.fishPull = 0

$rare = 1

While $rare = 1
;~ Hold End Key to Stop
    MouseClick("left", 546, 241, 1)
    Sleep(900)
    If _IsPressed("23") Then $rare = 0
WEnd
I'm not sure if I understand your question but is this what you're looking for ?

CODE
Send($launchLogan)
Ralph
Link to comment
Share on other sites

$LL = "launchLogan = 0"

$Mrp = "main.releasePower = 200"

$Mfp = "main.fishPull = 0"

Send($LL & " " & $Mrp & " " & $Mfp)

Is this the kind of thing you mean?

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Link to comment
Share on other sites

Im not sure, ill try this and let you know. Thank you.

Well that doesnt work :S.

The file that holds those variables is a swf file.

So im trying to write to it with autoit.

If autoit targets the window the swf file is loaded on, im trying to write a variable to the window and alter game play.

Edited by £åߥ®Ñth
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...