Jump to content

tbird2340

Members
  • Posts

    13
  • Joined

  • Last visited

tbird2340's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Wow, aren't you a douche. With that many posts it's hard to believe you're a troll but you surely are in this thread.
  2. Please provide the best way to do it then, please. Thanks
  3. So then use this for the complete task? ShellExecute("cmd.exe","","","open",@SW_HIDE) _WinWaitActivate("[CLASS:ConsoleWindowClass]","") Send("MODE COM1 96,n,8,1") Send("{ENTER}") Send("TYPE CON>COM1") Send("{ENTER}") Send("^g") Send("{ENTER}") Func _WinWaitActivate($title,$text,$timeout=0) WinWait($title,$text,$timeout) If Not WinActive($title,$text) Then WinActivate($title,$text) WinWaitActive($title,$text,$timeout) EndFunc Local $PID = ProcessExists("Excel.exe") If $PID Then ProcessClose($PID)
  4. This is for popping a cash drawer.. A client of mine switched softwares and his new software doesn't pop his cash drawer after completing a sale.. Doing those commands pops the drawer and the new software has a spot for entering an EXE to pop the drawer so that's what I'm doing.. I should probably kill the cmd.exe with WinKill after as well.. Thanks guys.
  5. When I use that the text doesn't get added.. ShellExecute ( "C:\Windows\system32\cmd.exe", "", "", "", @SW_HIDE) Sleep(500) ControlSend("[CLASS:ConsoleWindowClass]", "", "", "Hello World") Sleep(500) ShellExecute ( "C:\Windows\system32\cmd.exe", "", "", "", @SW_SHOW)
  6. OK.. I got it working but wondering if there is some better way to do it.. Run("cmd.exe") Send("MODE COM1 96,n,8,1{ENTER}") Send("TYPE CON>COM1{ENTER}") Send("^G{ENTER}") I want to make sure it sends the text to the correct window but the below isn't working: Run("cmd.exe") ControlSend("[CLASS:ConsoleWindowClass]", "", "Edit1", "MODE COM1 96,n,8,1{ENTER}") I also want it to be hidden and this isn't working for me: Run("cmd.exe") WinSetState("[CLASS:ConsoleWindowClass]", "", @SW_HIDE) Thanks
  7. OK.. I'm trying it out and stuck.. This works: Opt("WinTitleMatchMode", 2) Run("notepad.exe") WinWait("[TITLE:Notepad]") ControlSetText("[TITLE:Notepad]", "", "Edit1", "New Text Here" ) This opens cmd prompt but no text is entered: Run("cmd.exe") WinWait("[TITLE:cmd]") ControlSetText("[TITLE:cmd]", "", "Edit1", "New Text Here" )
  8. Geez fellas.. If it is something incredibly easy for experienced users I just figured someone could whip it up real quick.. I'm not a coder and trying to learn languages is tough for me.. I'll dig into the documentation (some more) and try to get something together. Thanks
  9. So with 25 views and no replies should I take it as it's not easy or not possible?
  10. Here is what I do from inside Windows but want to get this in an EXE to accomplish.. 1. Enter cmd prompt. 2. Type: MODE COM1 96,n,8,1 3. On the next line type: TYPE CON>COM1 4. After that, on the next line hold down Ctrl and hit G. Then, hit Enter. That's it.. Any takers? Thanks!!
  11. Anyone figure out this error when populating the general / all tabs? --------------------------- AutoIt Error --------------------------- Line 0 (File "C:\RASExecutable\RAS.exe"): $nMemory = $objItem.Capacity & "MB" $nMemory = ^ ERROR Error: Variable used without being declared. --------------------------- OK ---------------------------
  12. Do you have a list of what the result codes mean? Thanks
×
×
  • Create New...