Menu

#141 CAPTURE2TEXT DIDNOT RUN IN AUTOIT

4.X
closed
nobody
None
2022-03-19
2020-04-13
HOANG
No

Dear my friend,

My problem is: When I do manual: Click: WIN + Q the Capture2text work very well. But then When I used autoit function: SEND("#Q"), it doesn't work?
Can you help me?
my version is Capture2Text_v4.6.2_64bit
my window is 10 Pro

Thanks you so much

Discussion

  • HOANG

    HOANG - 2020-04-16

    No body can help me?

     
  • Stefan D

    Stefan D - 2020-04-23

    I use Capture2Text with AHK, and it works fine.

    Send #{q}
    

    Seems to be a problem with AutoIt.

     
    👍
    2
  • HOANG

    HOANG - 2020-04-23

    Thanks pro. I will try and feedback. Many thanks

     
  • Diado Iotzo

    Diado Iotzo - 2020-05-14

    I use it with AutoIT, but the command line version like this :

    RunWait("C:\WINDOWS\system32\cmd.exe" & " /c " & 'Capture2Text_CLI.exe --clipboard --language English --screen-rect "477 371 1082 468" ', "C:\Capture2Text", @SW_HIDE)
    ...
    $text=_ClipBoard_GetData($CF_UNICODETEXT)
    
     
  • Diado Iotzo

    Diado Iotzo - 2020-05-14

    ...also, you shoud try using SEND("{LWIN}q") instead of SEND("#Q")
    https://www.autoitscript.com/autoit3/docs/functions/Send.htm

     
  • Diado Iotzo

    Diado Iotzo - 2020-05-15

    The easy way is to redefine Winkey+Q to F2 for example from settings/hotkeys menu and then send("{F2}"). Something like this :

    #include <AutoItConstants.au3>
    #include <MsgBoxConstants.au3>
    sleep(5000) ; this will give you 5sec. to position your mouse over some text
    Send('{F2}') ; redefine Winkey+Q to F2 for example from setting/hotkeys
    sleep(200)
    $pos=MouseGetPos()
    MouseMove($pos[0]+500,$pos[1]+50)
    MouseClick($MOUSE_CLICK_LEFT)
    $text=ClipGet()
    MsgBox($MB_SYSTEMMODAL, "", $text)
    
     
  • HOANG

    HOANG - 2020-05-20

    thanks pro.

     
  • cb4960

    cb4960 - 2022-03-19
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB