
Athfar
Members-
Posts
19 -
Joined
-
Last visited
Athfar's Achievements

Seeker (1/7)
0
Reputation
-
If WinExists("Save PDF File As", "&Yes") Then If $overwrite_file == 1 Then MsgBox(1,"True","Should click Yes") ;ControlClick("Save PDF File As", "&Yes", "Button1") ElseIf $overwrite_file == 0 Then MsgBox(1,"No","Should click No") ControlClick("Save PDF File As", "&Yes", "Button2") Else MsgBox(52,"Error","A file already exists! Do you wish to force overwrite for all files?") If @error == 6 Then $overwrite_file = 1 MsgBox(1,"True","Should click Yes") ;ControlClick("Save PDF File As", "&Yes", "Button1") Else $overwrite_file = 0 MsgBox(1,"No","Should click 1No") ;ControlClick("Save PDF File As", "&Yes", "Button2") EndIf EndIf EndIf Why is it when I hit Yes for MsgBox(52,"Er.... it doesn't make @error 6 thus setting $overwrite_file = 1?
-
Ok I'm confused now . (Can I|How can I) use the UDF Litex (LitexUDF.au3) and if not how do I install LiteX and will I have to install it on any machine I want to run my au3 script on? This is my first dabble with COM stuff so please bear with me
-
Awesome thanks! Do you think that the COM errors that are in the SQLite_Gui.au3 are caused by the updates in the GUI controls? I would like something that has an editable grid as an example
-
Also, the SQLite GUI seems like a pretty sweet example to work with but it throws COM exceptions (After loading either of the Excelcom.au3)... Has anyone had trouble with these? SQLite_Gui.au3
-
Also, the SQLite GUI seems like a pretty sweet example to work with but it throws COM examples (After loading either of the Excelcom.au3)... Has anyone had trouble with these?
-
Also, the SQLite GUI seems like a pretty sweet example to work with but it throws COM examples (After loading either of the Excelcom.au3)... Has anyone had trouble with these?
-
No I understand how SQLite works and have created a database (though I did miss the dll being packed with SQLite)... My problem lies with the examples provided with SQLite... example_browser.au3 in particular... The first error I get is GuiList.au3 cannot be found. I changed that to GuiListBox.au3 and now I get the error: _GUICtrlListClear ($gui_Tables). Unknown function name. I am just looking for an example as a quick start in order to start using SQLite with ListViews (editable if possible) and eventually saving SQLite to an Excel File. example_browser.au3
-
Sorry if I am just missing something simple... But I can't find the ".dll" or have any clue how to get the examples working here: http://www.autoitscript.com/forum/index.php?showtopic=17099 I have never used SQLite but my impression is it is just a text based database storage with some SQL functionality. Any help would be great... Thanks!
-
I am trying to populate a Combo with WinList() and am having trouble (I don't think I understand how to use arrays with AutoIt). Here's what I have so far. Func gui_set_window_list() Local $window = WinList() Local $visable_windows For $i = 1 to $window[0][0] ; Only display visble windows that have a title If $window[$i][0] <> "" AND check_win_visibilty($window[$i][1]) Then $visable_windows[] = $window[$i][0] EndIf Next GUICtrlSetData($gui_target_window_combo, _ArrayToString($visable_windows, "|")) EndFunc
-
I have it working with an IF statement but I am still interested to see if anyone has a better way of doing this. Just seems like alot of Spaghetti MAMAMEA! Is there a way to disable a group AND all of the controls within it?
-
Does anyone have an example of saving and then repopulating a GUI with an INI file? I am getting stuck on a simple radio button: Func read_settings() GUICtrlSetState($gui_send_to_window_radio, BitAND(IniRead($CB_SETTINGS_INI, "Target", "send_to_window", 1), $GUI_CHECKED)) GUICtrlSetState($gui_send_to_window_radio, BitAND(IniRead($CB_SETTINGS_INI, "Target", "send_to_csv", 0), $GUI_CHECKED)) EndFunc Func write_settings() IniWrite($CB_SETTINGS_INI, "Target", "send_to_window", BitAND(GUICtrlRead($gui_send_to_window_radio), $GUI_CHECKED)) IniWrite($CB_SETTINGS_INI, "Target", "send_to_csv", BitAND(GUICtrlRead($gui_send_to_csv_radio), $GUI_CHECKED)) EndFunc read_settings() While 1 $gui_message = GUIGetMsg() Switch $gui_message Case $gui_send_to_window_radio If GUICtrlRead($gui_send_to_window_radio) = 1 Then GUICtrlSetState($gui_target_window_group, $GUI_ENABLE) GUICtrlSetState($gui_target_window_label, $GUI_ENABLE) GUICtrlSetState($gui_target_window_combo, $GUI_ENABLE) GUICtrlSetState($gui_csv_target_label, $GUI_DISABLE) GUICtrlSetState($gui_csv_target_group, $GUI_DISABLE) GUICtrlSetState($gui_csv_target_combo, $GUI_DISABLE) GUICtrlSetState($gui_csv_target_view_btn, $GUI_DISABLE) GUICtrlSetState($gui_csv_target_browse_btn, $GUI_DISABLE) Else GUICtrlSetState($gui_target_window_group, $GUI_DISABLE) GUICtrlSetState($gui_target_window_label, $GUI_DISABLE) GUICtrlSetState($gui_target_window_combo, $GUI_DISABLE) GUICtrlSetState($gui_csv_target_label, $GUI_ENABLE) GUICtrlSetState($gui_csv_target_group, $GUI_ENABLE) GUICtrlSetState($gui_csv_target_combo, $GUI_ENABLE) GUICtrlSetState($gui_csv_target_view_btn, $GUI_ENABLE) GUICtrlSetState($gui_csv_target_browse_btn, $GUI_ENABLE) EndIf Case $gui_send_to_csv_radio If GUICtrlRead($gui_send_to_csv_radio) = 1 Then GUICtrlSetState($gui_target_window_group, $GUI_DISABLE) GUICtrlSetState($gui_target_window_label, $GUI_DISABLE) GUICtrlSetState($gui_target_window_combo, $GUI_DISABLE) GUICtrlSetState($gui_csv_target_label, $GUI_ENABLE) GUICtrlSetState($gui_csv_target_group, $GUI_ENABLE) GUICtrlSetState($gui_csv_target_combo, $GUI_ENABLE) GUICtrlSetState($gui_csv_target_view_btn, $GUI_ENABLE) GUICtrlSetState($gui_csv_target_browse_btn, $GUI_ENABLE) Else GUICtrlSetState($gui_target_window_group, $GUI_ENABLE) GUICtrlSetState($gui_target_window_label, $GUI_ENABLE) GUICtrlSetState($gui_target_window_combo, $GUI_ENABLE) GUICtrlSetState($gui_csv_target_label, $GUI_DISABLE) GUICtrlSetState($gui_csv_target_group, $GUI_DISABLE) GUICtrlSetState($gui_csv_target_combo, $GUI_DISABLE) GUICtrlSetState($gui_csv_target_view_btn, $GUI_DISABLE) GUICtrlSetState($gui_csv_target_browse_btn, $GUI_DISABLE) EndIf Case $GUI_EVENT_CLOSE write_settings() Exit EndSwitch WEnd How it should work: There are two radio buttons. If one radio is checked it enables one group and disables the other and vice versa. If I close the GUI it saves the state of the radio(s). If I reopen the GUI it reads the INI for the state of each radio to return it to it's previous state as well as enabling/disabling the group.
-
This gives me Unterminated string. Oh nm LOL grrrr I had it concated right the first time I just had another ".... Ignore me... But I still think the word Concatenation should be a topic.
-
First off the word concatenation should be in the user guide lol... Second how do you concatenate this properly? Send($longitude&"{TAB}"&$latitude")
-
NM I found it (but it's not alt-a)... All these Scite recorder apps should be shortcuts
-
I downloaded and installed http://www.autoitscript.com/cgi-bin/getfil...iTE4AutoIt3.exe No luck What am I doing wrong?