Jump to content

Fullerene

Members
  • Posts

    14
  • Joined

  • Last visited

Everything posted by Fullerene

  1. Looks like a batch mode of plink is what I need. Just a curiosity, is there a library for AUTOIT to do similar things without external utilities?
  2. I am interested in a possibility to connect to a remote linux host through SSH and execute some command on that host. Is there an easy solution of this task? With or without external ssh-clients usage.
  3. excellent example.
  4. Yeah... You're right.
  5. It would be a pity if no way exists. The main task is to manage UPS which is connected to the computer through USB. Is it possible with AUTOIT? P.S. The examples with the laptop battery were very useful to see anyway.
  6. Yashied Great code!
  7. I'm a complete novice. Could you please show how to use this function BOOL WINAPI GetSystemPowerStatus( __out LPSYSTEM_POWER_STATUS lpSystemPowerStatus ); using DllCall function in AUTOIT. I start with DllCall("kernel32.dll", "int", "GetSystemPowerStatus" ....) How to work with lpSystemPowerStatus? Thanks a lot!
  8. http://msdn.microsoft.com/en-us/library/aa373232(VS.85).aspx : It seems ACLineStatus variable is what I need. The only question is how to incorporate this in my AUTOIT! script.
  9. Please suggest what is the best way in AUTOIT! to find out if the computer currently works using electric grid or batteries (UPS device) ? I think there is some WINDOWS function responsible for such information but I didn't find anything in the help file. Thanks a lot!
  10. OK, you persuaded me.
  11. I currently use KODA of version 1.7.0.1. Do you mean it's better to switch to the ? I will try.
  12. Thanks, now everything is pretty clear.
  13. Thanks. The header works fine. I also tried to add #AutoIt3Wrapper_Add_Constants=y to the script but it gives the same error after compilation. Please let me know where I'm wrong here.
  14. I have a novice question. When using KODA editor, it generated the following code: #include <GUIConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 542, 319, 209, 110, $WS_POPUP, 0) $no = GUICtrlCreateEdit("", 56, 16, 433, 241) GUICtrlSetData(-1, "no") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Form1 EndSwitch WEnd I tried to run this piece of code but experience an error: How can one fix the problem? Should any one file except <GUIConstants.au3> be included? Thanks.
×
×
  • Create New...