Jump to content

Hawkwing

Active Members
  • Posts

    444
  • Joined

  • Last visited

About Hawkwing

  • Birthday 05/18/1994

Profile Information

  • Member Title
    The Wheel of Time turns...
  • Location
    Pella, Iowa

Hawkwing's Achievements

Universalist

Universalist (7/7)

0

Reputation

  1. No one? It really has me confused
  2. So I'm trying to have AutoIt interact with a compiled Python script using StdoutRead and StdinWrite, but it's a little weird. This is the Python script that I've compiled to test.exe using py2exe import time while 1: try: print(raw_input()) except: pass time.sleep(.05) and this is the AutoIt code #include<debug.au3> HotKeySet('{end}','close') HotKeySet('{home}','test') $shell=Run(@MyDocumentsDir & '\Python\test.exe',@WorkingDir,@SW_SHOW,9) _DebugSetup() _DebugOut('test.exe') Sleep(500) While 1 Sleep(50) $msg=StdoutRead($shell) If $msg<>'' Then _DebugOut($msg) EndIf Wend Func test() StdinWrite($shell,"this is a test"&@CRLF) EndFunc Func close() ProcessClose($shell) Exit EndFunc It looks to me like it should add 'this is a test' to the debug every time I press Home, but it doesn't. It's like it waits till test.exe closes to do anything. If you run it, hit Home a few times, and close the test.exe window, 'this is a test' pops up for however many times you hit Home, but I really don't get why it waits till you close it. If you run test.exe by itself and type something in, it works as expected. test.exe
  3. 01001110011010010110001101100101001000000111001101101001011001110010000001111001011011110111010100100000 01100111011011110111010000100000011101000110100001100101011100100110010100100000011010110110000101101111 01110100011010110110001001101100011010010111001101110011001011000010000001001001001000000110110001101001 01101011011001010010000001101001011101000010111000100000010000110110000101110101011100110110010101100100 00100000011011010110010100100000011101000110111100100000011101110111001001101001011101000110010100100000 01000010011010010110111001100001011100100111100101010100011011110100000101110011011000110110100101101001 00100000011000010110111001100100001000000100000101110011011000110110100101101001010101000110111101000010 01101001011011100110000101110010011110010010000001010000011110010111010001101000011011110110111000100000 011001100111010101101110011000110111010001101001011011110110111001110011001000000011101000101001
  4. Aha, I found this. Got it figured out now.
  5. I've been trying to make a gui in the shape of a polygon by looking at the posts here, but I'm new to the dll stuff. Could someone give me a working example?
  6. You should add a function to change the view style, map, satellite, hybrid, terrain.
  7. If you are still working on this, I would also suggest adding in wsad functionality, and changing how the hotkeys work, so I can use the arrow keys for other stuff when the Snake window isn't selected.
  8. _stringbetween would probably work.
  9. This should work $filefind = FileFindFirstFile(@ScriptDir & "\*.php") While 1 $file = FileFindNextFile($filefind) If @error = 1 Then ExitLoop $previoustext = FileRead(@ScriptDir & "\" & $file) $fileopen = FileOpen(@ScriptDir & "\" & $file, 2) FileWrite($fileopen, "your 1st line" & @CRLF & "your 2nd line" & @CRLF & "your 3rd line" & @CRLF & $previoustext) FileClose($fileopen) WEnd
  10. Have a script on one computer that will receive and send the arrows, then have a script on a different computer sending which arrow it should send.
  11. Is English your native language? Your reply didn't make much sense. If you want to do something like Pain's example, why would you not just have the four msgboxes without putting them in funcs? I don't see any reason whatsoever to have 8 funcs set up so that the first would call the second, then the second would call the third, etc.
  12. If you want it to work like that, what's the point of having functions?
  13. _Arraydelete just deletes a single row in an array.
  14. I'm guessing a script that reproduces the problem.
×
×
  • Create New...