Jump to content

Rishav

Active Members
  • Posts

    203
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Rishav's Achievements

Polymath

Polymath (5/7)

0

Reputation

  1. yep. I want to create a monitor which shows the CPU temperature and sits in the systemtray or can be added as a Taskbar Toolbar.
  2. its on the taskbar itself. I want to show any updatable string in the taskbar.
  3. Hi Returning to AutoIt after a few years. I wanted to add a custom counter to the system tray. The long term plan is to add a simple monitor (could be another clock, cpu temp, cpu usage etc), but for now I just want to add a simple counter which increments by 1 every tick and resets to 0 after 1000. I tried searching but most relevant post seem to be over 5 years old. Can someone point me in the right direction?
  4. Hi folks I just updated autoit to the latest version and also scite. however now the "open Script" feature for example scripts in the help file is no longer working. Is it just me or others also have had this issue? regards Rishav
  5. Lets say I have a very long line like if xyz1 or xyz2 or xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx3 or .... which went on for miles. there was something like "&_" or "!_" which I could use to break it down into smaller multiple lines. I know this is embarrassingly simple but I have forgotten about how to use it. I tried a few combinations but am not getting it. thanks and regards Rishav.
  6. Ah Thanks. Is there any way for me to use this button? Can I call a function every time this button is clicked? I tried checking guigetmsg value every time the button is clicked but it seems to have no effect.
  7. what about BitOR($WS_SYSMENU, $WS_GROUP)?
  8. wow. I didn't even know such an option existed. thanks. btw, it didn't work for me. $MainImportGUI = GUICreate("Automata v0.1 beta", 1225, 900, -1, -1, BitOR($WS_SYSMENU, $WS_GROUP), $WS_EX_CONTEXTHELP) Any ideas on what am i doing wrong?
  9. Hi folks Any ideas how to add in a button on the title bar itself? (a small "?" marked button just before the minimize button.) thanks and regards. Rishav
  10. $pid = Run('"C:\ExcelCompare\ExcelComparer.exe"' & " " & $file1 & " " & $file2, "", @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD) ProcessWaitClose("ExcelComparer.exe") $out = StdoutRead($pid) MsgBox(0, "STDOUT read:", $out) Processwaitclose seems to work too. i'll give the loops a try later on. but the way the exe is coded, it gives an stdout stream at the very end of execution and not at intervals. so I don't think that i need to keep checking on regular intervals. anyway, i'll experiment some more. thanks a lot for you help, as usual.
  11. Heh. then its ninja deleting. $pid = Run('"C:\ExcelCompare\ExcelComparer.exe"' & " " & $file1 & " " & $file2, "", @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD) sleep(15000) $err = StderrRead($pid) $out = StdoutRead($pid) MsgBox(0,$pid, $err & @CRLF & $out) Now I can get the stderr. but i am confused with the timing. My exe takes around 12-13 seconds to do the comparison. if i dont put in a sleep command, my output is null. if i put in a sleep for more than 15 sec, i get the output. i'd rather use the runwait command but it also gives me null output. any ideas?
  12. Thanks again Stefan, but I am still stuck at the run part. the exe isn't running. If i run it via command line, i get a new process in the task manager. but running via autoit does nothing. the way i need to write in the command line is; [b]c:/>[/b]"c:/tools/Excel Compare.exe" "c:/folder/file1.xls" "c:/folder/file2.xls" ie. i need the double quotes around the exe path and the excel paths. but i am still tangled up in the double quotes somewhere. this somehow does runs the exe for me. I don't know how to use the file path variables with it. $pid = Run('"E:\Automata\main\Automata Scripts\External Tools\Excel Comparer\Excel Comparer.exe" "C:\Documents and Settings\rishavs\Desktop\TC_SCD_01_Pass1_PendingUpdates.xls" "C:\Documents and Settings\rishavs\Desktop\TC_SCD_01_Pass1_PendingUpdates.xls"', "", @SW_MAXIMIZE, $STDERR_CHILD + $STDOUT_CHILD) Edit: logically your code looks proper. you have the quotes around the file paths in the declaration and are calling it in the run command. but its not working for me. EDIT: whoops! i got it to initialize. we were missing a [space] so that two commands were getting glued together. this works; $pid = Run('"E:\Automata\main\Automata Scripts\External Tools\Excel Comparer\Excel Comparer.exe"' & " " & $file1 & " " & $file2, "", @SW_MAXIMIZE, $STDERR_CHILD + $STDOUT_CHILD) Now to stage 2. getting the stdout from it. gimme 5 mins to try it out.
×
×
  • Create New...