Jump to content

Descention

Members
  • Posts

    10
  • Joined

  • Last visited

Everything posted by Descention

  1. I think you for this. It came up in a google search for gps nmea reading and has helped me greatly.
  2. Here's what i did, though it doesn't work completely yet and it MUST be compiled as a console application: #include <Constants.au3> HotKeySet('`',"_read"); hit this button to read your input after hitting enter(tilde button) $user = "";username $pass = "";password $host = "";host $plink = Run("plink.exe -P 22 -l "&$user&" -pw "&$pass&" -ssh "&$host,@ScriptDir, @SW_HIDE, $STDIN_CHILD + $STDERR_CHILD + $STDOUT_CHILD) $read = False while 1 $msg = StdoutRead($plink) if @error then ExitLoop if $msg <> "" Then ConsoleWrite($msg) EndIf if $read Then StdinWrite($plink,ConsoleRead()) $read=False EndIf sleep(25) WEnd StdioClose($plink) func _read() $read = True EndFunc
  3. Nevermind, I found i had an accidental clearing of the $connectionSocket... it works now.
  4. I have done a few searches and have not found any information on this yet, and the help file isn't helping me on this problem so i'll ask. Is it possible to send and recieve through the same socket connection? From what I understand, you have a server and client, server listens until a client connects. Server then waits for any messages, client sends one, server is happy and jumps for joy... but i also want the server to send informaion back to the client. I would like if i could do this without opening another connection, but my ways of doing this so far have not worked. Maybe I do need a second connection temporarily... Anyone able to help, many thanks to you.
  5. thank you, but im still not sure exatcly how the "_IEFormGetObjByindex" is supposed to be used. what is the "0" for in "_IEFormGetObjByindex($ie,0)"?
  6. question: how do i use objects within a form if the form does not have a name on it? http://pandorabots.com/botmaster/en/home i want to use the "login" feature of this library, but i am not sure what to do because the source does not show a name for the form. thanks in advance -Scott
  7. many many thanks, didnt know i had to turn beta active.
  8. Lalim Parallel Port Control Basic 3.4 http://www.download.com/Lalim-Parallel-Por...ml?tag=lst-0-10 that's the link to the dowload page Edit: i tried testing _IsPressed, but i keep getting an error... "Line 65 (File "C:\blah blah\Misc.au3"): Local $p = DllStructCreate ($struct) Local $p = ^ ERROR Error: Uknown function name."
  9. I am not sure where to start with this, but i need a script that will check a box when key is pressed and uncheck it when it is not being pressed, but a little bit more... such as... when "w" is held, boxes 1 to 4 are checked and the set button is pushed, then when it is released, they are all unchecked and the set button is pushed. And, if "w" and "a" are pressed at the same time, only boxes 2 and 4 are checked and set... this script is going to be controlling a different program that controls my parallel (printer) output. Much Thanks, -Scott
  10. I very much would like to create my own Dungeons and Dragons Character Sheet using the Au3 Gui. I started making one, copy and pasting and a lil editing to make it the way i want. So far so good, but i need some help with things like knowing if i can get the progress bar to update while the Gui is running. i want to add a number to an existing variable and have it read that number out in a tab and show progress on the progress bar... maybe if you check it out it'll make more sense, cuz i dont think my talking does. ; Script Start - Add your code below here #include <GuiConstants.au3> ; GUI GuiCreate("Dungeons & Dragons", 400, 400) $totalexp = 0 $needexp = 1000 $exptotal = $totalexp/$needexp*100 If $totalexp > -1 OR $totalexp < 1000 Then $level = 1 EndIf GuiGetMsg( ; TAB GuiCtrlCreateTab(0, 0, 400, 390) GuiCtrlCreateTabItem("Page One") GuiCtrlCreateLabel("Level: " & $level,5,55) GuiCtrlCreateInput("Name Here", 5, 25, 130, 20) GuiCtrlCreateTabItem("Page Two") GuiCtrlCreateLabel("Exp: " & $totalexp & "/" & $needexp ,5,25) GuiCtrlCreateProgress(5, 45, 300, 20) GuiCtrlSetData(-1, $exptotal) $addexp = GuiCtrlCreateInput("Add Exp", 310, 45, 50, 20) $addok = GuiCtrlCreateButton("+", 370, 45, 20, 20) GuiCtrlCreateTabItem("Skills") GuiCtrlCreateLabel("Skills",5,25) GuiCtrlCreatecombo("Sample Combo", 250, 80, 120, 100) GuiCtrlCreateTabItem("Spells") GuiCtrlCreateLabel("Spells",5,25) $treeOne = GuiCtrlCreateTreeView(5, 50, 200, 390) $treeItem = GuiCtrlCreateTreeViewItem("Spells", $treeOne) $abjuration = GuiCtrlCreateTreeViewItem("Abjuration", $treeItem) $conjuration = GuiCtrlCreateTreeViewItem("Conjuration", $treeItem) $SM1 = GuiCtrlCreateTreeViewItem("Summon Monster I", $conjuration) $SM2 = GuiCtrlCreateTreeViewItem("Summon Monster II", $conjuration) GuiCtrlSetState($treeone, $GUI_EXPAND) $spellname = GuiCtrlRead("15") GuiCtrlCreateLabel( $spellname & $treeone, 210, 50 ) Global $defaultstatus = "Ready" Global $status $filemenu = GUICtrlCreateMenu ("&File") $fileitem = GUICtrlCreateMenuitem ("Open",$filemenu) GUICtrlSetState(-1,$GUI_DEFBUTTON) $helpmenu = GUICtrlCreateMenu ("Help") $saveitem = GUICtrlCreateMenuitem ("Save",$filemenu) GUICtrlSetState(-1,$GUI_ENABLE) $infoitem = GUICtrlCreateMenuitem ("Info",$helpmenu) $exititem = GUICtrlCreateMenuitem ("Exit",$filemenu) $recentfilesmenu = GUICtrlCreateMenu ("Recent Files",$filemenu,1) GUICtrlSetState(-1,$GUI_CHECKED) GUICtrlSetState(-1,$GUI_FOCUS) GUISetState () While 1 $msg = GUIGetMsg() If $msg = $fileitem Then $file = FileOpenDialog("Choose file...",@AppDataDir,"All (*.*)") If @error <> 1 Then GUICtrlCreateMenuitem ($file,$recentfilesmenu) EndIf If $msg = $addok Then $totalexp = $totalexp+$addexp EndIf If $msg = $GUI_EVENT_CLOSE Or $msg = $exititem Then ExitLoop If $msg = $infoitem Then Msgbox(0,"Info","Only a test...") WEnd GUIDelete() Thank you for checking it out and it's not done yet, this is from 2 hours of playing around.
×
×
  • Create New...