Jump to content
Sign in to follow this  
SaintedRogue

Trouble with Tabs

Recommended Posts

SaintedRogue

I am having trouble with Tabs in my code. I create tabs, and each tab has a series of check boxes or labels read from a file. However, the first tab doesn't show anything until you click into the other tab and then click back into it.

Any ideas on how to fix this issue?

Code is a bit hard to post because I'm basically writing a GUI for a different tool and it needs specific set of files to run and then read from.

Any help would be appreciated.

Kind Regards

Share this post


Link to post
Share on other sites
BrewManNH

Create a small script that reproduces the problem, because there's no way to tell you what is happening in your code if we can't see how you're doing it. We can make some educated guesses, but that's all they'd be.


If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Share this post


Link to post
Share on other sites
SaintedRogue

That's kind of the trouble... the same, seemingly, same implementation works. However, for this it does not. My code is below for my implementation.

VolGUI()

Func VolGUI()

$imgpath = FileOpenDialog("Location of Memory Dump", @MyDocumentsDir, "Image Files (*.img)")

GUICreate("Volatility", 250, 50)

$processmsg = GUICtrlCreateLabel("Processing Memory Image Info", 60, 20)

GUISetState()

$GUIimginfo = RunWait('cmd /c ' & @ScriptDir & 'vol.exe -f ' & $imgpath & ' imageinfo > ' & @ScriptDir & 'ImageInfo.txt', "", @SW_HIDE)

GUIDelete()

GUICreate("Volatility Frontend", 800, 400)

$filemenu = GUICtrlCreateMenu("File")

$fmexit = GUICtrlCreateMenuItem("Exit", $filemenu)

$helpmenu = GUICtrlCreateMenu("Help")

$hmdoc = GUICtrlCreateMenuItem("Documenation", $helpmenu)

$hmabout = GUICtrlCreateMenuItem("About", $helpmenu)

$close = GUICtrlCreateButton("Close", 762, 350)

$img = GUICtrlCreateInput($imgpath, 5, 8, 500, 22)

$profile = GUICtrlCreateInput("Profile Settings", 595, 8, 200, 22)

$voltab = GUICtrlCreateTab(5, 35, 792, 315)

$imgidtab = GUICtrlCreateTabItem("Image ID")

$iiFile = FileOpen(@ScriptDir & 'ImageInfo.txt')

$H = 70

For $i = 3 to 14 Step 1
$iiString = FileReadLine($iiFile, $i)
$imgString = StringStripWS($iiString, 1)
$gui_imgid = GUICtrlCreateLabel($imgString, 30, $H)
$H = $H + 20
Next

$processtab = GUICtrlCreateTabItem("Processes and DLLs")

$gui_pslist = GUICtrlCreateCheckbox("pslist", 15, 70)
$guih_pslist = GUICtrlSetTip($gui_pslist, "Print active processes by following the _EPROCESS list")

$gui_pstree = GUICtrlCreateCheckbox("pstree", 15, 90)
$guih_pstree = GUICtrlSetTip($gui_pstree, "Print process list as a tree")

$gui_psscan = GUICtrlCreateCheckbox("psscan", 15, 110)
$guih_psscan = GUICtrlSetTip($gui_psscan, "Scan Physical memory for _EPROCESS pool allocations")

$gui_psdispscan = GUICtrlCreateCheckbox("psdispscan", 15, 130)
$guih_psdispscan = GUICtrlSetTip($gui_psdispscan, "Scan Physical memory for _EPROCESS objects based on Dispatch Headers (Windows XP x86 only)")

$gui_dlllist = GUICtrlCreateCheckbox("dlllist", 15, 150)
$guih_dlllist = GUICtrlSetTip($gui_dlllist, "Print list of loaded DLLs for each process")

$gui_dlldump = GUICtrlCreateCheckbox("dlldump", 15, 170)
$guih_dlldump = GUICtrlSetTip($gui_dlldump, "Dump DLLs from a process address space")

$gui_handles = GUICtrlCreateCheckbox("handles", 15, 190)
$guih_handles = GUICtrlSetTip($gui_handles, "Print list of open handles for each process")

$gui_getsids = GUICtrlCreateCheckbox("getsids", 15, 210)
$guih_getsids = GUICtrlSetTip($gui_getsids, "Print the SIDs owning each process")

$gui_verinfo = GUICtrlCreateCheckbox("verinfo", 15, 230)
$guih_verinfo = GUICtrlSetTip($gui_verinfo, "Print a PE file's version information")

$gui_enumfunc = GUICtrlCreateCheckbox("enumfunc", 15, 250)
$guih_enumfunc = GUICtrlSetTip($gui_enumfunc, "Enumerate a PE file's imports and exports")

$gui_envars = GUICtrlCreateCheckbox("envars", 15, 270)
$guih_envars = GUICtrlSetTip($gui_envars, "Display process environment variables")

$gui_cmdscan = GUICtrlCreateCheckbox("cmdscan", 15, 290)
$guih_cmdscan = GUICtrlSetTip($gui_cmdscan, "Extract command history by scanning for _COMMAND_HISTORY")

$gui_consoles = GUICtrlCreateCheckbox("consoles", 15, 310)
$guih_consoles = GUICtrlSetTip($gui_consoles, "Extract command history by scanning for _CONSOLE_INFORMATION")

$procmemtab = GUICtrlCreateTabItem("Process Memory")

$gui_memmap = GUICtrlCreateCheckbox("memmap", 15, 70)
$guih_memmap = GUICtrlSetTip($gui_memmap, "Print the memory map")

$gui_memdump = GUICtrlCreateCheckbox("memdump", 15, 90)
$guih_memdump = GUICtrlSetTip($gui_memdump, "Dump the addressable memory for a process")

$gui_procexedump = GUICtrlCreateCheckbox("procexedump", 15, 110)
$guhprocexedump = GUICtrlSetTip($gui_procexedump, "Dump a process to an executable file")

$gui_procmemdump = GUICtrlCreateCheckbox("procmemdump", 15, 130)
$guih_procmemdump = GUICtrlSetTip($gui_procmemdump, "Dump a process to an executable memory sample")

$gui_vadwalk = GUICtrlCreateCheckbox("vadwalk", 15, 150)
$guih_vadwalk = GUICtrlSetTip($gui_vadwalk, "Walk the VAD tree")

$gui_vadtree = GUICtrlCreateCheckbox("vadtree", 15, 170)
$guih_vadtree = GUICtrlSetTip($gui_vadtree, "Walk the VAD tree and display in tree format")

$gui_vadinfo = GUICtrlCreateCheckbox("vadinfo", 15, 190)
$guih_vadinfo = GUICtrlSetTip($gui_vadinfo, "Dump the VAD info")

$gui_vaddump = GUICtrlCreateCheckbox("vaddump", 15, 210)
$guih_vaddump = GUICtrlSetTip($gui_vaddump, "Dumps out the vad sections to a file")

$gui_evtlogs = GUICtrlCreateCheckbox("evtlogs", 15, 230)
$guih_evtlogs = GUICtrlSetTip($gui_evtlogs, "Parse XP and 2003 event logs from memory")

$kerntab = GUICtrlCreateTabItem("Kernel Memory and Objects")

$gui_modules = GUICtrlCreateCheckbox("modules", 15, 70)
$guih_modules = GUICtrlSetTip($gui_modules, "Print list of loaded modules")

$gui_modscan = GUICtrlCreateCheckbox("modscan", 15, 90)
$guih_modscan = GUICtrlSetTip($gui_modscan, "Scan Physical memory for _LDR_DATA_TABLE_ENTRY objects")

$gui_moddump = GUICtrlCreateCheckbox("moddump", 15, 110)
$guih_moddump = GUICtrlSetTip($gui_moddump, "Extract a kernel driver to disk")

$gui_ssdt = GUICtrlCreateCheckbox("ssdt", 15, 130)
$guih_ssdt = GUICtrlSetTip($gui_ssdt, "Print the Native and GDI System Service Descriptor Tables")

$gui_driverscan = GUICtrlCreateCheckbox("driverscan", 15, 150)
$guih_driverscan = GUICtrlSetTip($gui_driverscan, "Scan physical memory for _DRIVER_OBJECT objects")

$gui_filescan = GUICtrlCreateCheckbox("filescan", 15, 170)
$guih_filescan = GUICtrlSetTip($gui_filescan, "Scan physical memory for _FILE_OBJECT objects")

$gui_mutantscan = GUICtrlCreateCheckbox("mutantscan", 15, 190)
$guih_mutantscan = GUICtrlSetTip($gui_mutantscan, "Scan physical memory for _KMUTANT objects")

$gui_symlinkscan = GUICtrlCreateCheckbox("symlinkscan", 15, 210)
$guih_symlinkscan = GUICtrlSetTip($gui_symlinkscan, "Scans for symbolic link objects")

$gui_thrdscan = GUICtrlCreateCheckbox("thrdscan", 15, 230)
$guih_thrdscan = GUICtrlSetTip($gui_thrdscan, "Scan physical memory for _ETHREAD objects")

$nettab = GUICtrlCreateTabItem("Networking")

$gui_connections = GUICtrlCreateCheckbox("connections", 15, 70)
$guih_connections = GUICtrlSetTip($gui_connections, "Print open connections (XP and 2003 only)")

$gui_connscan = GUICtrlCreateCheckbox("connscan", 15, 90)
$guih_connscan = GUICtrlSetTip($gui_connscan, "Scan Physical memory for _TCPT_OBJECT objects (XP and 2003 only)")

$gui_sockets = GUICtrlCreateCheckbox("sockets", 15, 110)
$guih_sockets = GUICtrlSetTip($gui_sockets, "Print open sockets (XP and 2003 only)")

$gui_sockscan = GUICtrlCreateCheckbox("sockscan", 15, 130)
$guih_sockscan = GUICtrlSetTip($gui_sockscan, "Scan Physical memory for _ADDRESS_OBJECT (XP and 2003 only)")

$gui_netscan = GUICtrlCreateCheckbox("netscan", 15, 150)
$guih_netscan = GUICtrlSetTip($gui_netscan, "Scan physical memory for network objects (Vista, 2008, and 7)")

$regtab = GUICtrlCreateTabItem("Registry")

$gui_hivescan = GUICtrlCreateCheckbox("hivescan", 15, 70)
$guih_hivescan = GUICtrlSetTip($gui_hivescan, "Scan Physical memory for _CMHIVE objects")

$gui_hivelist = GUICtrlCreateCheckbox("hivelist", 15, 90)
$guih_hivelist = GUICtrlSetTip($gui_hivelist, "Print list of registry hives")

$gui_printkey = GUICtrlCreateCheckbox("printkey", 15, 110)
$guih_printkey = GUICtrlSetTip($gui_printkey, "Print a registry key, and its subkeys and values")

$gui_hivedump = GUICtrlCreateCheckbox("hivedump", 15, 130)
$guih_hivedump = GUICtrlSetTip($gui_hivedump, "Recursively prints all keys and timestamps in a given hive")

$gui_hashdump = GUICtrlCreateCheckbox("hashdump", 15, 150)
$guih_hashdump = GUICtrlSetTip($gui_hashdump, "Dumps passwords hashes (LM/NTLM) from memory (x86 only)")

$gui_lsadump = GUICtrlCreateCheckbox("lsadump", 15, 170)
$guih_lsadump = GUICtrlSetTip($gui_lsadump, "Dump (decrypted) LSA secrets from the registry (XP and 2003 x86 only)")

$gui_userassist = GUICtrlCreateCheckbox("userassist", 15, 190)
$guih_userassist = GUICtrlSetTip($gui_userassist, "Parses and output User Assist keys from the registry")

$gui_shimcache = GUICtrlCreateCheckbox("shimcache", 15, 210)
$guih_shimcache = GUICtrlSetTip($gui_shimcache, "Parses the Application Compatibility Shim Cache registry key")

$gui_getservicesids = GUICtrlCreateCheckbox("getserviceids", 15, 230)
$guih_getserviceids = GUICtrlSetTip($gui_getservicesids, "Calculate SIDs for windows services in the registry")

$maltab = GUICtrlCreateTabItem("Malware")

$gui_malfind = GUICtrlCreateCheckbox("malfind", 15, 70)
$guih_malfind = GUICtrlSetTip($gui_malfind, "Find hidden and injected code")

$gui_svcscan = GUICtrlCreateCheckbox("svcscan", 15, 90)
$guih_svcscan = GUICtrlSetTip($gui_svcscan, "Scan for Windows services")

$gui_ldrmodules = GUICtrlCreateCheckbox("ldrmodules", 15, 110)
$guih_ldrmodules = GUICtrlSetTip($gui_ldrmodules, "Detect unlinked DLLs")

$gui_impscan = GUICtrlCreateCheckbox("impscan", 15, 130)
$guih_impscan = GUICtrlSetTip($gui_impscan, "Scan for calls to imported functions")

$gui_apihooks = GUICtrlCreateCheckbox("apihooks", 15, 150)
$guih_apihooks = GUICtrlSetTip($gui_apihooks, "Detect API hooks in process and kernel memory (x86 only)")

$gui_idt = GUICtrlCreateCheckbox("idt", 15, 170)
$guih_idt = GUICtrlSetTip($gui_idt, "Dumps the Interrupt Descriptor Table (x86 only)")

$gui_gdt = GUICtrlCreateCheckbox("gdt", 15, 190)
$guih_gdt = GUICtrlSetTip($gui_gdt, "Dumps the Global Descriptor Table (x86 only)")

$gui_threads = GUICtrlCreateCheckbox("threads", 15, 210)
$guih_threads = GUICtrlSetTip($gui_threads, "Investigate _ETHREAD and _KTHREADs")

$gui_callbacks = GUICtrlCreateCheckbox("callbacks", 15, 230)
$guih_callbacks = GUICtrlSetTip($gui_callbacks, "Print system-wide notification routines (x86 only)")

$gui_driverirp = GUICtrlCreateCheckbox("driverirp", 15, 250)
$guih_driverirp = GUICtrlSetTip($gui_driverirp, "Driver IRP hook detection")

$gui_devicetree = GUICtrlCreateCheckbox("devicetree", 15, 270)
$guih_devicetree = GUICtrlSetTip($gui_devicetree, "Show device tree")

$gui_psxview = GUICtrlCreateCheckbox("psxview", 15, 290)
$guih_psxview = GUICtrlSetTip($gui_psxview, "Find hidden processes with various process listings")

$gui_timers = GUICtrlCreateCheckbox("timers", 15, 310)
$guih_timers = GUICtrlSetTip($gui_timers, "Print kernel timers and associated module DPCs (x86 only)")

$guitab = GUICtrlCreateTabItem("Win32k/GUI Memory")

$gui_sessions = GUICtrlCreateCheckbox("sessions", 15, 70)
$guih_sessions = GUICtrlSetTip($gui_sessions, "List details on _MM_SESSION_SPACE (user logon sessions)")

$gui_wndscan = GUICtrlCreateCheckbox("wndscan", 15, 90)
$guih_wndscan = GUICtrlSetTip($gui_wndscan, "Pool scanner for tagWINDOWSTATION (window stations)")

$gui_deskscan = GUICtrlCreateCheckbox("deskscan", 15, 110)
$guih_deskscan = GUICtrlSetTip($gui_deskscan, "Poolscaner for tagDESKTOP (desktops)")

$gui_atomscan = GUICtrlCreateCheckbox("atomscan", 15, 130)
$guih_atomscan = GUICtrlSetTip($gui_atomscan, "Pool scanner for _RTL_ATOM_TABLE")

$gui_atoms = GUICtrlCreateCheckbox("atoms", 15, 150)
$guih_atoms = GUICtrlSetTip($gui_atoms, "Print session and window station atom tables")

$gui_clipboard = GUICtrlCreateCheckbox("clipboard", 15, 170)
$guih_clipboard = GUICtrlSetTip($gui_clipboard, "Extract the contents of the windows clipboard")

$gui_eventhooks = GUICtrlCreateCheckbox("eventhooks", 15, 190)
$guih_eventhooks = GUICtrlSetTip($gui_eventhooks, "Print details on windows event hooks")

$gui_gathi = GUICtrlCreateCheckbox("gathi", 15, 210)
$guih_gathi = GUICtrlSetTip($gui_gathi, "Dump the USER handle type information")

$gui_messagehooks = GUICtrlCreateCheckbox("messagehooks", 15, 230)
$guih_messagehooks = GUICtrlSetTip($gui_messagehooks, "List desktop and thread window message hooks")

$gui_screenshot = GUICtrlCreateCheckbox("screenshot", 15, 250)
$guih_screenshot = GUICtrlSetTip($gui_screenshot, "Save a pseudo-screenshot based on GDI windows")

$gui_userhandles = GUICtrlCreateCheckbox("userhandles", 15, 270)
$guih_userhandles = GUICtrlSetTip($gui_userhandles, "Dump the USER handle tables")

$gui_windows = GUICtrlCreateCheckbox("windows", 15, 290)
$guih_windows = GUICtrlSetTip($gui_windows, "Print Desktop Windows (verbose details)")

$gui_wintree = GUICtrlCreateCheckbox("wintree", 15, 310)
$guih_wintree = GUICtrlSetTip($gui_wintree, "Print Z-Order Desktop Windows Tree")


GUISetState(@SW_SHOW)

While 1

$msg = GUIGetMsg()

If $msg = $GUI_EVENT_CLOSE Then ExitLoop

If $msg = $fmexit Then ExitLoop

If $msg = $close Then ExitLoop

WEnd

EndFunc

Share this post


Link to post
Share on other sites
Melba23

SaintedRogue,

You never close the tab structure - which often leads to problems. Add:

GUICtrlCreateTabItem(""); end tabitem definition

just before the GUISetState line and see if that helps. :)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
SaintedRogue

And that is why I love the AutoIt forums! Solution found in 20 minutes. Thanks so much M! You save me again.

Share this post


Link to post
Share on other sites
Melba23

SaintedRogue,

My pleasure as always. :)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

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  

  • Similar Content

    • nacerbaaziz
      By nacerbaaziz
      Hi dears
      I've got a question in creating tabs in autoit
      Usually in other programs you can move between tabs by pressing ctrl + tab or ctrl + shift + tab
      I tried to create a window  which have a multy  tab but when i press one of the shortcuts
      it does not move between the tabs
      Is there an option to enable or disable this
      Greetings
      this is the example i tryed

      #include <GUIConstants.au3> #include <MsgBoxConstants.au3> #include <TabConstants.au3> #include <ComboConstants.au3> #include <WindowsConstants.au3> #include <GuiComboBox.au3> effectsSettings() func effectsSettings() local $echoCombo[6], $reverbCombo[5],  $CHORUSCombo[8], $flangerCombo[8], $paramEQCombo[4], $distortionCombo[6], $gargleCombo[3] $EffWindow = GUICreate("efects settings", 400, 400, -1, -1, $WS_TABSTOP) local $BtOK = GUICtrlCreateButton("ok", 5, 360, 50, 30, 0x01) GUIStartGroup("") local $BTCancel = GUICtrlCreateButton("cancel", 340, 360, 50, 30) GUIStartGroup("") local $effectTabs =     GUICtrlCreateTab(10, 10, 380, 70) GUICtrlSetState(-1, $GUI_focus)     GUICtrlCreateTabItem("echo") GUICtrlCreateLabel("fWetDryMix", 50, 100, 100, 60) $echoCombo[1] = GUICtrlCreateCombo("", 60, 110, 80, 40) GUICtrlCreateLabel("fFeedback", 180, 100, 100, 60) $echoCombo[2] = GUICtrlCreateCombo("", 190, 110, 80, 40) GUICtrlCreateLabel("fLeftDelay", 290, 100, 100, 60) $echoCombo[3] = GUICtrlCreateCombo("", 300, 110, 80, 40) GUICtrlCreateLabel("fRightDelay", 50, 180, 100, 60) $echoCombo[4] = GUICtrlCreateCombo("", 60, 190, 80, 40) GUICtrlCreateLabel("lPanDelay", 180, 180, 100, 60) $echoCombo[5] = GUICtrlCreateCombo("", 190, 190, 80, 40)     GUICtrlCreateTabItem("reverb") GUICtrlCreateLabel("fInGain", 50, 100, 100, 60) $ReverbCombo[1] = GUICtrlCreateCombo("", 60, 110, 80, 40) GUICtrlCreateLabel("fReverbMix", 180, 100, 100, 60) $ReverbCombo[2] = GUICtrlCreateCombo("", 190, 110, 80, 40) GUICtrlCreateLabel("fReverbTime", 290, 100, 100, 60) $ReverbCombo[3] = GUICtrlCreateCombo("", 300, 110, 80, 40) GUICtrlCreateLabel("fHighFreqRTRatio", 50, 180, 100, 60) $ReverbCombo[4] = GUICtrlCreateCombo("", 60, 190, 80, 40)     GUICtrlCreateTabItem("chorus") GUICtrlCreateLabel("fWetDryMix", 50, 100, 100, 60) $ChorusCombo[1] = GUICtrlCreateCombo("", 60, 110, 80, 40) GUICtrlCreateLabel("fDepth", 180, 100, 100, 60) $ChorusCombo[2] = GUICtrlCreateCombo("", 190, 110, 80, 40) GUICtrlCreateLabel("fFeedback", 290, 100, 100, 60) $ChorusCombo[3] = GUICtrlCreateCombo("", 300, 110, 80, 40) GUICtrlCreateLabel("fFrequency", 50, 180, 100, 60) $ChorusCombo[4] = GUICtrlCreateCombo("", 60, 190, 80, 40) GUICtrlCreateLabel("lWaveform", 180, 180, 100, 60) $ChorusCombo[5] = GUICtrlCreateCombo("", 190, 190, 80, 40) GUICtrlCreateLabel("fDelay", 290, 180, 100, 60) $ChorusCombo[6] = GUICtrlCreateCombo("", 300, 190, 80, 40) GUICtrlCreateLabel("lPhase", 50, 260, 100, 60) $ChorusCombo[7] = GUICtrlCreateCombo("", 60, 270, 80, 40)     GUICtrlCreateTabItem("flanger") GUICtrlCreateLabel("fWetDryMix", 50, 100, 100, 60) $FlangerCombo[1] = GUICtrlCreateCombo("", 60, 110, 80, 40) GUICtrlCreateLabel("fDepth", 180, 100, 100, 60) $FlangerCombo[2] = GUICtrlCreateCombo("", 190, 110, 80, 40) GUICtrlCreateLabel("fFeedback", 290, 100, 100, 60) $FlangerCombo[3] = GUICtrlCreateCombo("", 300, 110, 80, 40) GUICtrlCreateLabel("fFrequency", 50, 180, 100, 60) $FlangerCombo[4] = GUICtrlCreateCombo("", 60, 190, 80, 40) GUICtrlCreateLabel("lWaveform", 180, 180, 100, 60) $FlangerCombo[5] = GUICtrlCreateCombo("", 190, 190, 80, 40) GUICtrlCreateLabel("fDelay", 290, 180, 100, 60) $FlangerCombo[6] = GUICtrlCreateCombo("", 300, 190, 80, 40) GUICtrlCreateLabel("lPhase", 50, 260, 100, 60) $FlangerCombo[7] = GUICtrlCreateCombo("", 60, 270, 80, 40)     GUICtrlCreateTabItem("paramatric eq") GUICtrlCreateLabel("fCenter", 50, 100, 100, 60) $parameqCombo[1] = GUICtrlCreateCombo("", 60, 110, 80, 40) GUICtrlCreateLabel("fBandwidth", 180, 100, 100, 60) $ParamEqCombo[2] = GUICtrlCreateCombo("", 190, 110, 80, 40) GUICtrlCreateLabel("fGain", 290, 100, 100, 60) $parameqCombo[3] = GUICtrlCreateCombo("", 300, 110, 80, 40)     GUICtrlCreateTabItem("distortion") GUICtrlCreateLabel("fGain", 50, 100, 100, 60) $distortionCombo[1] = GUICtrlCreateCombo("", 60, 110, 80, 40) GUICtrlCreateLabel("fEdge", 180, 100, 100, 60) $distortionCombo[2] = GUICtrlCreateCombo("", 190, 110, 80, 40) GUICtrlCreateLabel("fPostEQCenterFrequency", 290, 100, 100, 60) $distortionCombo[3] = GUICtrlCreateCombo("", 300, 110, 80, 40) GUICtrlCreateLabel("fFrequency", 50, 180, 100, 60) $distortionCombo[4] = GUICtrlCreateCombo("", 60, 190, 80, 40) GUICtrlCreateLabel("fPostEQBandwidth", 180, 180, 100, 60) $distortionCombo[5] = GUICtrlCreateCombo("", 190, 190, 80, 40)     GUICtrlCreateTabItem("gargle") GUICtrlCreateLabel("dwRateHz", 50, 100, 100, 60) $gargleCombo[1] = GUICtrlCreateCombo("", 60, 110, 80, 40) GUICtrlCreateLabel("dwWaveShape", 180, 100, 100, 60) $gargleCombo[2] = GUICtrlCreateCombo("", 190, 110, 80, 40) GUISetState(@sw_show, $EffWindow) While 1 Switch GUIGetMSG() case $GUI_Event_close, $BTCancel exit EndSwitch Wend return "" endFunc
    • nassausky
      By nassausky
      Hi all,
       
      Anyone have any idea how to close all open tabs except a specific one I manually open.  Assuming I don't know what is open in all the tabs except just the one I want to keep open.
       
      I didn't want to use sendkeys and I was trying to use the following code to list the title (or url) of the 3 open tabs and  after I got that part working I would just close the other 2. This sample only displays the title of the first open tab
      #include <IE.au3> Const $ie_new_in_tab = 0x0800 $oIE = _IECreate("https://www.autoitscript.com") __IENavigate($oIE, "https://www.autoitscript.com/forum/", 1, $ie_new_in_tab) ;(obj,url,wait,param) __IENavigate($oIE, "https://www.google.com/", 1, $ie_new_in_tab) ;(obj,url,wait,param) Local $aIE[1] $aIE[0] = 0 Local $i = 1, $oIE While 1     $oIE = _IEAttach("", "instance", $i)     If @error = $_IEStatus_NoMatch Then ExitLoop     ConsoleWrite(_IEPropertyGet($oIE, "title") & @CRLF)     ReDim $aIE[$i + 1]     $aIE[$i] = $oIE ;each item holds object     $aIE[0] = $i ;first item holds count     $i += 1 WEnd MsgBox($MB_SYSTEMMODAL, "Browsers Found", "Number of browser instances in the array: " & $aIE[0]) ; This doesn't return the list of tabs in the console just the first tab  
      Thanks for any and all help
    • Miliardsto
      By Miliardsto
      Hello I got these tabs
       
      Global $TabMain = GUICtrlCreateTabItem("Main") Global $Action = GUICtrlCreateTabItem("Actions") Global $TabThings = GUICtrlCreateTabItem("Things") As we know to change tab we have to click with mouse on tab name like here it looks like below.
      Is there possibility to change tab without click on the tab but change by click on button for example?

    • kawliga751
      By kawliga751
      I am trying to script the opening of multiple tabs in IE with each tab having a separate login/password. I have been able to make a successful script that will open 3 separate IE sessions with the correct webpage and login or a script that will open 3 tabs in one session (which I want) but will not login. I have tried _IECreate, IEAttach etc. This is the script I am currently using . 
      #include <IE.au3> Const $navOpenInNewTab = 0x0800 Dim $oIE = _IECreate('http://asag.xxxxxxx.com/AAAA/index.htm') ;$o_IE.Navigate2('http://asag.xxxxxxx.com/apps/yyyyyyy/LogInSAG/login.asp', $navOpenInNewTab) ;$o_IE.Navigate2('http://asag.xxxxxxx.com/apps/yyyyyyy/LogInSAG/login.asp', $navOpenInNewTab) Call ("YYYYYYYSignIn") Func YYYYYYYSignIn () Local $username = _IEGetObjByName ($oIE,"uname") Local $password = _IEGetObjByName ($oIE,"pword") $oIE.Navigate2('http://asag.xxxxxxx.com/apps/xxxxxxx/LogInSAG/login.asp',2048) _IEFormElementSetValue ($username, "xxxxxxx") _IEFormElementSetValue ($password, "xxxxxxx") Send('{Enter}') EndFunc Call ("xxxxxxxSignIn") Func xxxxxxxSignIn () __IENavigate($oIE, "https://soa1gui.xxxxxxx.biz/gateway/NFServlet;jsessionid=1E3B8F6520DE0A1EC914A8ABB7E86341?NFH_MessageId=&NFH_Page=%2fpages%2fsearch%2fsearch.jsp", 1, 0x800) Local $domain = _IEGetObjByName ($oIE,"NF_CustomerID") Local $User_Name = _IEGetObjByName ($oIE,"NF_UserName") Local $Password = _IEGetObjByName ($oIE,"NF_Password") _IEFormElementSetValue ($domain, xxxxxxx") _IEFormElementSetValue ($User_Name, "xxxxxxx") _IEFormElementSetValue ($Password, "xxxxxxx") ;Send('{Enter}') EndFunc  
    • Skeletor
      By Skeletor
      Hi Guys,
      I've been reading this post ...
      When I came accross the examples, non of them had what I was looking for.
      I basically want to "snapshot" my GUI's multiple tabs and send them into the pdf.
      A little nudge from you guys would be great.
      Im really stuck with this one, therefore I have no code.
      Lets discuss or point me in a right direction... thanks alot
       

×