Jump to content

CyberMax

Active Members
  • Posts

    28
  • Joined

  • Last visited

CyberMax's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Ok, I can confirm one thing, scite.exe is not a valid win32 application also applies to computer with winxp sp3 too. And its not because of windows xp sp2 or windows xp sp3 and also not because of vb runtime 2013(tested that too). So whats the problem then?
  2. It's not that I didnt try upgrading to SP3, but it always ended up in bsod upon reboot. After that, I have to restore from a backup image file. Can someone else confirm its actually working in windows xp sp3?
  3. The new scilexer.dll is ok but the new scite.exe is not a valid win32 application error.
  4. I setup the system base on the minimum os on the deployment system. If its because of xp sp2 then I'll stick with the current release version instead of beta, or if I want use the beta, I'll use the previous beta scite dll then.
  5. I'm using windows xp sp2 32bit.
  6. Well, I'm using windows xp, and replacing the SciLexer.dll beta(latest) with an older version, then the error msg no longer appear so I'm not sure what the problem is.
  7. Using the latest scite.exe and SciLexer.dll beta gives me error loading scintilla but replacing SciLexer.dll with an older beta version works fine.
  8. It's your choice guinness, but do remember alot of people still use windows 2000 or even Windows NT 4.0, especially in factory or manufacturing plant, changing an OS means changing the entire machinery. The cost is huge and it isnt cost effective at all.
  9. This code sometimes compiled without error, sometimes compiled with error in "If Not $bFound Then $sDiff &= _IIf($sDiff = "", "", @CRLF) & "Ended : " & $aPL1[$i][0]" with error : _IIf(): undefined function. Any ideas why? I didnt change the code but scite sometimes gives me this error above, other times, it compiled without error. I even use 3.3.10.2 and 3.3.11.4, using latest scite and I even include the updated beta files, but still giving me this problem. Eg. I compiled 10 times, 8 times have this error without even changing anything in the code.
  10. Thanks I understand now, I only need the centre title for specific windows OS for now. It'll do for now.
  11. Hi trancexx, Is there a method to read the last 1024 bytes of some file? Thanks
  12. Thanks Melba23. After countless trial and error, this code below works , and I can't figure why, any explaination for this? #include <GUIConstantsEx.au3> #include <WinAPI.au3> #include "StringSize.au3" ; Find half title width $sTitle = "Test of centring" $aSize = _StringSize($sTitle) $iHalf = Int($aSize[2] / 2) $hGUI = GUICreate("", 500, 500,-1,-1,0x00C00000) GUISetState() ; Find width of GUI buttons $iWidth = _WinAPI_GetSystemMetrics(29) ; SM_CXSIZE ; Calculate mid point of available title bar (3 buttons + icon) $iMiddle = (500 - (4 * $iWidth)) / 2 ; Add spaces until midpoint is reached $sAdd = "" Do $sAdd &= " " $aSize = _StringSize($sAdd) Until $aSize[2] + $iHalf > $iMiddle ; Set GUI title WinSetTitle($hGUI, "", $sAdd & $sTitle) While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd I'm not sure what you mean by self centered, check os etc,Mat? I thought everyone likes perfect alignment including me, unless I'm wrong. Usually I would use alot of spacing(type in manually) before the title text to made perfect alignment but sometimes it just didnt work out for some windows titles and I'm tired of doing it over and over again(manually spacing the title) everytime.
  13. Hi Melba23, Using your first example below #include <GUIConstantsEx.au3> #include "StringSize.au3" $sText = " I am a very long line and I am not formatted in any way so that I will not fit within the width of the GUI that surrounds me!" $hGUI = GUICreate("Test", 500, 500) ; A label with no width or height set GUICtrlCreateLabel($sText, 10, 10) GUICtrlSetBkColor(-1, 0xFF8080) ; A label with no height set GUICtrlCreateLabel($sText, 10, 50, 200) GUICtrlSetBkColor(-1, 0xC0C0FF) ; A label sized by StringSize $aSize = _StringSize($sText, Default, Default, Default, Default, 200) GUICtrlCreateLabel($aSize[0], 10, 90, $aSize[2], $aSize[3]) GUICtrlSetBkColor(-1, 0x80FF80) GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Could you show me how to centre the gui title "test" pls? Thank you.
  14. Hi, I got a problem here, I want to use the old autoitx dll which support registry and ini files function and also the latest autoitx dll too. Can I register both dlls in my computer? If yes, how to do it, and also how to call each dll differently in vbscript. Thank you.
  15. Well, today October 20, 2013, more than a year now, any solution to my problem above. Thank you.
×
×
  • Create New...