Jump to content

Brian39

Members
  • Posts

    12
  • Joined

  • Last visited

Everything posted by Brian39

  1. I didn't think of that. Perfect solution to this problem. Thanks
  2. I have tried with hitting Alt + P. It works if I let the mouse cursor stay over the button before I press Alt + P. But as soon as the mouse is somewhere else on the screen while hitting Alt + P - it doesnt work. Strange..... I have never seen this before. Only with this Logitech Webcam Software.
  3. I tried that. But it only works if the mouse cursor is hold over the button. (when the mouse cursor is over the button - the button turns blue. And then ControlClick("Quick Capture", "", 1003) works. But I would like to activate the button without moving the mouse.
  4. I have tried with: ControlClick("Quick Capture", "", "[CLASSNN:Button1]") That didn't work Then ControlFocus ( "Quick Capture", "", "[CLASSNN:Button1" ) ControlClick("Quick Capture", "", "[CLASSNN:Button1]") That didn't work.
  5. Hi, Does anyone know why I have to move the mouse over the "Take Photo" button (button turns blue) before it will take picture? I use: ControlClick("Quick Capture", "", "Button1"). If the mouse is not put over the "Take Photo" button there is not taken any photo. I would like not to use the mouse. Then it will work at any resolution. I have attached picture of info window.
  6. Hi, I have made a script for SAP application. I use the "MouseClick" to click on the arrow left of "HR" to expand tree. Then "MouseClick" to double click on "Tidsregistrering". This work fine but I would like to use something like "ControlTreeView" to expand the "HR" folder and "ControlClick" to activate "Tidsregistrering". I have attached a screendump with "Autoit window info". But I cant get it to work. To expand the "HR" folder I use: ControlTreeView("SAP Easy Access", "", "[iD:100]", "Expand") To enter "Tidsregistrering" menu I use: ControlClick("SAP Easy Access", "", "[iD:100]") Hopefully someone could point me in the right direction
  7. Hi, I've done some more testing on my script. It seems to work fine, but.. I would like to use the script to send something else. The only different is the way the COM port is set up. I have another program (not AutoIT) that works fine. So I have compared it with Portmon. Only different from what I send with AutoIT is InSize/OutSize. It should both be 500. With AutoIT it is 4096/2048. Could someone please tell my how to change that, if possible. Also, I dont know if that's the actual problem. But it's the only different, as I can see it.
  8. GREAT!!!. Now it works fine. Thank you all for the help
  9. Yes I noticed.Then I need to change CommMG.au3? Or can I correct it in my script? Sorry, I'am quite a newbi at this.
  10. OK, I have tried the following: $data = ("4D 42") _CommSendString ($data, $iWait) But my portmonitor reads: 34 44 20 34 32 It should read: 4D 42 What am I doing wrong?
  11. Hi, I could really use some help on this. I can send one hex number (41) with the code below. But I dont know how to send a string ec 0x41, 0x42, 0x42, 0x41, 0x41, 0x42, 0x41, 0x42. Any help would be much appresiated ;Include the Serial UDF #include 'CommMG.au3' ;Internal for the Serial UDF Global $sportSetError = '' ;COM Vars ;_CommSetPort($iPort, ByRef $sErr, $iBaud = 9600, $iBits = 8, $iPar = 0, $iStop = 1, $iFlow = 0, $RTSMode = 0, $DTRMode = 0) Global $CMPort = 3 ; Port Global $CmBoBaud = 19200 ; Baud Global $CmboDataBits = 8 ; Data Bits Global $CmBoParity = "none" ; Parity Global $CmBoStop = 1 ; Stop Global $setflow = 2 ; Flow Global $RTSMode = 1 Global $DTRMode = 1 Global $iWait = 0 ;Start up communication _CommSetPort($CMPort, $sportSetError, $CmBoBaud, $CmboDataBits, $CmBoParity, $CmBoStop, $setflow, $RTSMode, $DTRMode) $byte = ("0x41") _CommSendByte($byte, $iWait)
×
×
  • Create New...