Jump to content

Syntax changes.... mind to list out ?


friends
 Share

Recommended Posts

Well.... I just downloaded the latest v103 (23 Sept 2004), whereby the previous

v103 was not the 23 Sept 2004 beta released one.

I found out that the latest v103 has a huge changes, especially the GUI part. :ph34r:

Due to a sudden changes (too many), I wonder if someone could list out the

previous and the latest syntax for my reference ?

OLD NEW

---------------------------------------

Eg. GUIShow() = GUISetState()

That would be very helpful cos I'm still trying to catch up the latest GUI syntax.

Somehow, it takes time for me to look for which one to be used. :(

Link to comment
Share on other sites

jpm sent me the following info. I'm not sure about GuiPeekMsg, but the rest should accurate

----------------------- SPLITTED -----------------------
GuiCreateEx
    replace by GuiSetHelp, GuiSetBkColor, GuiSetIcon

GuiSetControl ("XXX", ...
    replace by GuiCtrlCreateXXX where XXX can be :
        Button, Checkbox, Combo, Date, Edit, Group, Input, Label, List, Pic, Radio
    new controls ContextMenu, TrayMenu, Menu, MenuItem, TreeView, TreeViewItem

    unused parameters have been suppressed in the following controls
   GuiCtrlCreateUpdown       ( inputcontrolid] )
   GuiCtrlCreateProgress     ( left, top [,width [,height [,style [,exStyle]]] )
   GuiCtrlCreateTab          ( left, top [,width [,height [,style [,exStyle]]] )
   GuiCtrlCreateTabItem      ( "text" )

    definition of the subid is no more in the "text" param extra parameter
   GuiCtrlCreateAvi          ( filename, subfileid, left, top [,width [,height [,style [,exStyle]]] )
   GuiCtrlCreateIcon         ( filename, iconid, left, top [,width [,height [,style [,exStyle]]] )

   GuiCtrlCreateCombo, GuiCtrlCreateList
    the "text" parameter is set if not "" in the combo/list control
    the GuiCtrlSetData will append

GuiSetControl ( controlid, ...
    replace by GuiCtrlSetImage, GuiCtrlSetPos, GuiCtrlSetStyle

GuiSetControlEx
    replace by GuiCtrlSetState, GuiCtrlSetBkColor, GuiCtrlSetColor, 
        GuiCtrlSetLimit, GuiCtrlSetResizing, GuiCtrlSetTip

GuiWrite
    replace by GuiCtrlSetState, GuiCtrlSetData

----------------------- CHANGED -----------------------
GuiDefaultFont
    replace by GuiSetFont
    font and attribute are interchanged

GuiShow, GuiHide
    replace by GuiSetState
    no more timeout defined, use GuiPeekMsg with the timeout parameter
GuiMsg(0)
    replace by GuiPeekMsg
    a timeout can be defined if needed
GuiMsg() GuiMsg(timeout)
    replace by GuiGetMsg ([timeout] )

GuiSetControlFont
    replace by GuiCtrlSetFont
    Font and attribute are interchanged. Default values are those set by GuiSetFont

----------------------- RENAMED -----------------------
GuiGetControlState
    replace by GuiCtrlGetState
GuiSetControlData
    replace by GuiCtrlSetData
GuiSetControlNotify
    replace by GuiCtrlSetNotify
GuiSetGroup
    replace by GuiStartGroup

---------------------- UNCHANGED ----------------------
    GuiCreate, GuiDelete, GuiRead, GuiRecvMsg, GuiSendMsg, GuiSetCoord, GuiSetCursor, GuiGetCursorPos
Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Link to comment
Share on other sites

Thanks CS and JPM for providing such information !

@CS, thanks for fast respond.... very appreciated !

Cos I need to convert my current AutoIT3 program to the latest syntax.

Anyway, I've downloaded your Converter (from old to new syntax),

just haven't tested it out.

I'll post my feedback to your thread when I'm back to this forum next time.

very appreciate you guys works......

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...