Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/31/2013 in all areas

  1. detefon, There is a bug deep within the core AutoIt GUI code (and which will not be fixed any time soon) which means that colouring buttons leads to all sorts of problems - they trap the {ENTER} key and refuse many style changes (as you have discovered). I suggest you drop the idea of coloured buttons and perhaps use a border - like this: #include <Misc.au3> #include <GUIConstantsEx.au3> #include <ButtonConstants.au3> Global $hGui, $hMsg Global $color $hGui = GUICreate('title', 140, 80) $cLabel = GUICtrlCreateLabel("", 8, 8, 124, 24) GUICtrlSetBkColor($cLabel, 0xff0000) $hButton0 = GUICtrlCreateButton('button', 10, 10, 120, 20, $BS_LEFT) $hButton1 = GUICtrlCreateButton('change color', 10, 40, 120, 20) GUISetState(@SW_SHOWNORMAL) While 1 $hMsg = GUIGetMsg() Switch $hMsg Case $GUI_EVENT_CLOSE _exit() Case $hButton1 $color = _Iif($color == 0x00ff00, 0xff0000, 0x00ff00) GUICtrlSetBkColor($cLabel, $color) GUICtrlSetStyle($hButton0, $BS_LEFT);try coment and uncoment this line, and see the error... EndSwitch WEnd Func _exit() Exit EndFunc ;==>_exit How does that look to you? M23
    1 point
  2. 1 point
  3. Melba23

    HotkeySet for 2 keys

    EKY32, Given the past 2 threads you have started, reading the help file at least once before posting might be a better idea. M23
    1 point
  4. MadaraUchiha, I suggest you check whether the returned path has ":" as the second and third characters (StringMid will help here) and if it does not then you replace the string with "N/A". M23 P.S. And there is no need to use such language when you post.
    1 point
  5. I am a 24-carat, industrial strength moron. What do all your retained includes have in common? They are all Constants files. Your latest upload allowed me to check your CodeScanner settings. What do you have switched off? Include constants files. Now I haven't figured out how CodeScanner was able to process MetaCode with this switch off; it's automatically switched on whenever you set WriteMetaCode on. You didn't edit your CodeScanner.ini file by hand inbetween, did you? Anyway, I'll add some additional checks in CodeScanner to ensure that this will be impossible in future; expect an update in the near future. For now, just make sure you've got "Include Constants files" switched on in the Settings before you process your target source. That should fix it.
    1 point
  6. Mat

    MustDeclareVars=1 as Default

    Unless someone comes up with a compelling argument in the next couple of days I'm closing the trac ticket. As mentioned in the ticket I can't really see any benefit for changing the default, it would just break a lot of old scripts.
    1 point
  7. I Googled how to script PSP and found this documentation. It looks they use Python and have a "copyimage" function. .
    1 point
  8. I hate to open another thread but I could not find the answer through searching and documentation. I wanted to create a real-time log file in my script using GUICtrlSetData; however, when that function is used, it overwrites the old data. I've created an Array to handle such case but couldn't get the logic to work the way I'd imagined. Is there another function that I can use to append? The final result that I want is 1. Saving default password into XML Script. 2. Saving default password into XML Script. 3. Saving default password into XML Script. 4. Saving default password into XML Script. My retarded script #include <GUIConstantsEx.au3> #include <StaticConstants.au3> Local $i = 0 Local $log_label[4] GUICreate ("RIBCL XML Script Generator", 600, 400) GUISetState () For $i = 0 To 3 Step 1 $log_label[$i] = GUICtrlCreateLabel ("", 300, 40, 270, 280, $ss_sunken) GUICtrlSetFont (-1, 10, 800) GUICtrlSetData ($log_label[$i], $i & ". Saving default password into XML Script." & @CRLF) Sleep (1000) Next Thank you!
    1 point
  9. You're checking the list and not the control. You need to check the control within the loop (otherwise you won't know it changed). You can do this check in your function. I'm a fan of keeping as much stuff in local scope in the Functions so i'd pass the control to the function and have it check the control. #include <ComboConstants.au3> #include <GUIConstantsEx.au3> #include <EditConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form=Form1.kxf $Form1_1 = GUICreate("check cvv sony v1.1", 379, 155, 438, 309) $Combo1 = GUICtrlCreateCombo("", 32, 24, 161, 25,BitOR($WS_VSCROLL,$ES_READONLY,$CBS_DROPDOWNLIST,$CBS_AUTOHSCROLL)) GUICtrlSetBkColor(-1,0xFFFFFF) GUISetState(@SW_SHOW) $CHECK_NOW = GUICtrlCreateButton("CHECK", 264, 16, 81, 49) #EndRegion ### END Koda GUI section ### GUICtrlSetData($Combo1,"item1|item2|item3","item1") While 1 $MSG = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $MSG = $CHECK_NOW Check($Combo1) EndSelect WEnd Func Check($hCtrl) MsgBox(0, "Bang thong bao:", GUICtrlRead($hCtrl)) EndFunc
    1 point
  10. look for a software instead script. http://www.thewebblocker.com/
    1 point
×
×
  • Create New...