Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/08/2021 in all areas

  1. Hi, A word to the wise - enough talk of decompilers. M23
    3 points
  2. Take a look also for _wd_sleep()
    2 points
  3. The standard windows part is multi select by using Ctrl, but it indeed doesn't mean all windows programs support the functionality. Explorer supports the multi selecting by using Ctrl ...right?
    1 point
  4. Jokerman

    ISN AutoIt Studio

    Question 1: You can get those markers by enabling the "In addition, add a marker to the line" in ISN AutoIt Studio's Settings (after you select "Script Editor" in Navigation it's under "Write settings"). Question 2: The markers not highlighting everything visible is the issue that I ran into (that, until I made the video, I was failing horribly to explain 🤣). ISI360 has confirmed the issue so now it'll come down to how they implemented intellimark. You're right - if the code relies heavily on Scintilla's implementation it may not be easily fixable, if at all. But if ISI360's intellimark functionality is custom code (and it may be considering the massive intellimark performance optimization they introduced in 1.13) I have faith ISI360 will figure it out. 🤞 Btw, huge respect and thanks to you, mLipok. Your posts and guidance have helped me immensely over the years. 🙏
    1 point
  5. Ensure you return from test() to keep on reading the messages from the GUI! Show us a piece of runnable code that shows the issue so we can help you modify it. Jos
    1 point
  6. No problem, if you have any more questions, feel free to ask
    1 point
  7. Hey, it is working with [ACTIVE], but I must run script as administrator. If I don't run it as administrator it don work. Thank you very much for your fast help
    1 point
  8. As a workaround you can use MouseClick() to click (and focus) on the textbox, and use regular Send() to send the text you want. Something like this: MouseClick("left", x, y) Send("test") Replace the x and y with the coordinates of the textbox. You can find the coordinates on the Mouse tab of the AutoIt Window Info. More info: https://www.autoitscript.com/autoit3/docs/functions/MouseClick.htm
    1 point
  9. You might also use a regular expression to do the job in one shot $txt = " MoveJ [[-320.62,-132.78,227.68],[0.998219,0.0444207,-0.0168298,0.0360765],[-1,-1,-1,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]],v300,fine,Out_Ciseau\WObj:=rep_refil;" & @crlf & _ " Set S_lames;" & @crlf & _ " MoveL [[-257.19,-178.26,187.01],[0.952349,-0.0379082,-0.0440127,0.299429],[0,0,-1,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]],v300,fine,Out_Ciseau\WObj:=rep_refil;" & @crlf & _ " coupe_G;" & @crlf & _ " SetAO Effort,30 * Coeff_JE;" & @crlf & _ " MoveL [[-262.75,-132.35,192.71],[0.053336,-0.998395,-0.009298,-0.016629],[0,-1,0,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]],V_approche,z10,refilat\WObj:=rep_refil;" & @crlf & _ " SetAO Effort,30 * Coeff_JE;" & @crlf & _ " MoveL [[-256.91,-165.70,186.64],[0.0536583,-0.976169,-0.206382,-0.0402727],[0,-1,-1,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]],V_rapide,Z_refil,refilat\WObj:=rep_refil;" & @crlf & _ " MoveL [[-232.36,-161.50,188.68],[0.0352275,-0.978176,-0.201269,-0.0377103],[0,-1,-1,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]], V_rapide, Z_Refil, refilat\WObj:=rep_refil;" $s = Execute("'" & StringRegExpReplace($txt, "(?m)^\h*Move[JL]\h\[\[(?:[\d.-]+,){2}\K(\d+)", "' & $1-3 & '") & "'") Msgbox(0,"", $s) Edit : comments (?m) : multiline option ^ : start of line \h*Move[JL]\h\[\[(?:[\d.-]+,){2} : describe the beginning of the concerned line (in regex syntax ) \K : but don't touch it ! (\d+) : the integer part of the number to match
    1 point
  10. mikeqf, it is not just you: M23
    1 point
  11. Use StringInStr() to get position of your brackets and then use StringMid() to get left/mid/right piece of string at that position ...
    1 point
  12. shutch00, Please read the Forum Rules regarding "log-in" scripts and do not ask for help on that part. In fact I would suggest in future not even posting code which mentions it. As to how to read the combo - just wait for the selection to fire a message like this, ;GUI opens with list of locations #include <GUIConstantsEx.au3> ; Here is the array Global $aArray[5] = ["Dallas", "Houston", "Austin", "San Antonio", "Plano"] ; And here we get the elements into a list $sList = "" For $i = 0 To UBound($aArray) - 1 $sList &= "|" & $aArray[$i] Next ; Create a GUI #include <GUIConstantsEx.au3> $hGUI = GUICreate("Test", 250, 200) ; Create the combo $hCombo = GUICtrlCreateCombo("", 10, 10, 200, 20) ; And fill it GUICtrlSetData($hCombo, $sList) GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit Case $hCombo $sLocation = GUICtrlRead($hCombo) ExitLoop EndSwitch WEnd ; Now action the choice MsgBox(0, "You chose:", $sLocation All clear? M23
    1 point
×
×
  • Create New...