Sign in to follow this  
Followers 0
Meerecat

Displaying information on a webpage

3 posts in this topic

Me again (mad dash as everyone runs from their computer)

My next project is a hotkey helper. Currently I'm creating html pages in dreamweaver, and calling them into my gui using this:

_IEErrorHandlerRegister ()

    $oIE = _IECreateEmbedded ()
    $hGUI = GUICreate("Hotkeys", 640, 580, _
            (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, _
            $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN)
    $GUIActiveX = GUICtrlCreateObj($oIE, 10, 40, 600, 360)
    $GUI_Button_Back = GUICtrlCreateButton("Back", 10, 420, 100, 30)


    GUISetState()       ;Show GUI
    WinSetOnTop($hGUI, "", 1)

    $oIE.navigate(@ScriptDir & "\Firefox.html")
    WinSetOnTop($hGUI, "", 0)

This works fine, but makes it hard for me to add extra hotkeys, or more importantly the user adding their own hotkeys.

I think a better way of doing it would be to have the hotkeys in a csv file, and then have my gui display this information on screen in a table.

Can AutoIT create a html table from a csv file automatically or is there a better way of doing it?

If it can, what functions in the help file should I be looking at?

Many Thanks


Lack of planning on your part does not constitute an emergency on my part.-The biggest idiot can ask questions the smartest man cannot answer.

Share this post


Link to post
Share on other sites



hi again ;),

To create a HTML table from a csv you can use FileWrite(),StringSplit()/StringRegExp().

However, you may want to checkout list views(a kind of tabular control) in the help file.

Perhaps you can experiment with storing your hot-key info in an Ini file with the Ini*() functions so it will be easier to retrieve later.

So lots of reading up in the help file for you :huh2:

Good luck,

-smartee

Share this post


Link to post
Share on other sites

Thanks Smartee

Plenty of bed time reading for me tonight :huh2:

Appreciate the pointers.


Lack of planning on your part does not constitute an emergency on my part.-The biggest idiot can ask questions the smartest man cannot answer.

Share this post


Link to post
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
Sign in to follow this  
Followers 0