Jump to content

AutoRun

Members
  • Posts

    13
  • Joined

  • Last visited

Everything posted by AutoRun

  1. I made a static example for the select form, but it work correctly with both original and modified _FFFormOptionSelect function A problems are appear when the code works with the admin page. Engine's DLE (Data LifeEngine). I can't explain it more exactly. It's only that the modified function works under the real condition in that case and original is not. Also _FFFormCheckBox going well when it a static page and not working at all when it online.
  2. Is there a bug on line 1396 from FF.au3? Switch $sOptionMode Case "index" If Not IsInt($vOption) Then SetError(__FFError($sFuncName, $_FF_ERROR_InvalidDataType, "(int) $vOption: " & $vOption)) Return 0 EndIf $sOption = "position()=" & $vOption + 1 Case "text" $sOption = StringFormat("contains(.,'%s')", $vOption) Case "name", "id", "value" $sOption = StringFormat("@%s='%s'", $sOptionMode, $vOption) Case Else SetError(__FFError($sFuncName, $_FF_ERROR_InvalidValue, "(index|text|name|id|value) $sOptionMode: " & $sOptionMode)) Return 0 EndSwitch And the way to do it better: Case "text" __FFValue2JavaScript($vOption) $sOption = StringFormat("contains(text(),'%s')", $vOption) In that case the function __FFValue2JavaScript($vOption) gives to it more flexibility to select by an option text value with non-ASCII chars.
  3. My mistake was been that I was trying to find the start button in the Add-ons menu. Danp2, a big thanks. Now it work.
  4. I have got the same trouble. I even had trying to check MozRepl through a telnet, but it says In addons menu of FF 35.0.1 it seems like MozRepl was not installed properly. Because it doesn't have any other options, but a "Disable" and a "Remove" I was trying to install MozRepl from both the github and the add-ons for FF and with turned firewall off and disabled other extensions, you see.
  5. You are right my regexp is a little silly. My first idea was StringRegExp($_str, "(([A-z0-9]{4}-){4}[A-z0-9]{4})", 3) But it have a two capturing group. My regexp knowledge goes from JavaScript and before now I didn't know about the non-capturing group (? Thanks for it. And of course (?:[^W]{4}-) is better. Why you used "_" in [^W_]?
  6. #include <Array.au3> local $_str = "ndbs vsdvbnfA1B2-Y6W3-ASD5-JFG0-7WE2 SbubfUndbs vsdvbnfA1B2-Y1W3-ASD5-JFG0-7WE2 SbubfUndbs vsdvbnfA1Q2-Y6S3-ASD5-JFG0-7WS2 SbubfU" ; Your string local $_iStart = 1, $_arFoundExp[1], $i = 0 While @error = 0 And $_iStart <> 24 $_arMatches = StringRegExp($_str, "([A-z0-9]{4}-){4}[A-z0-9]{4}", 2, $_iStart) If @error <> 1 Then $_iStart = StringInStr($_str, $_arMatches[0], 0, 1, $_iStart) + 24 _ArrayAdd($_arFoundExp, $_arMatches[0]) $_arFoundExp[0] = $_arFoundExp[0] + 1 EndIf WEnd If $_arFoundExp[0] <> 0 Then ; If array with a found matches isn't empty _ArrayDisplay($_arFoundExp, "List of the Matches") ; They will be here EndIf Hello! Put it in your SciTE then change the variable $_str to your string and try
  7. Thank you guys for all tips and notes, but problem was resolved very easily. Just need to change a code with latin letters a "C" and a "V" to cyrillic a "С" and a "M" and now it work fine. Because as I wrote above the system has a cyrillic keyboard layout. computergroove, little fix and it working fine for me too.
  8. Well, all programs with exception for Rialtek sound driver and ATI Catalyst were deleted from startup. Then reboot. So… I do have installed antivirus KIS 2011. Although now I can launch it only manually, but can antivirus to block keys for an another program by anti-spy reason? Is sense to remove it?
  9. Sorry for delay with answer, my holiday was being without access to a network. Now the codes is tested and the first returned one error "invalid or set by another application" for "{|}" and the second for both "^v" and "^c" hotkeys. But I haven't idea for what reason it does an error If runing one more copy the script, it also says error for "{ESC}" hotkey.
  10. Yes it is, but keys are pressed when EN (USA) layout is choosed.
  11. AutoIt3Wrapper v.14.801.2025.0 SciTE v.3.4.4.0 But the system has different language and keyboard layouts: Keyboard:00000419 Language:0419 I think it cause problem with a capture letter keys (A-Z) for HotKeySet function. With a single letter "c" or a "!c" or any other letter script does not any action Not working: HotKeySet("c", "HotKeyPressed") What can I do that pressed letter keys were taken correctly?
  12. MsgBox's added. Only work with "!{ESC}" if any other hotkeys are pressed they call nothing Oh, thank you. I wrote that part code for «CTRL+V» combination when already was writing the topic
  13. Hello everybody! I'm newbie and faced the problem that my simple AutoIt3 script not working properly. When a hotkeys «Ctrl + C» or «Ctrl + V» is pressed nothing is happen. The script running under Windows 7 64bit I had try add #RequireAdmin to script but «Ctrl + C / V» also not give a MsgBox However hotkey "!{ESC}" or "!{HOME}" working fine Just example #include <Clipboard.au3> HotKeySet("^c", "HotKeyPressed") HotKeySet("!{ESC}", "HotKeyPressed") ; Abort script While 1 Sleep(100) WEnd Func HotKeyPressed() Switch @HotKeyPressed Case "^c" local $_clipboard = _ClipBoard_GetData($CF_UNICODETEXT) MsgBox(0, "From the clipboard", $_clipboard) Case "^v" MsgBox(0, "Just message", "HotKey Ctrl + V is pressed") Case "!{ESC}" Exit EndSwitch EndFunc
×
×
  • Create New...