diff --git a/DbicQueryTool.ahk b/DbicQueryTool.ahk new file mode 100644 index 0000000..25fad04 --- /dev/null +++ b/DbicQueryTool.ahk @@ -0,0 +1,23 @@ +#include FcnLib.ahk +#include thirdParty/CmdRet.ahk + +;a spiffy little DBIC query tool +;by camerb + +filename =C:\code\epms\script\epms_workbench2.pl +filename_tpl=C:\code\epms\script\epms_workbench_tpl.pl + +code := prompt("Input your DBIC query") +if NOT code + ExitApp + +FileCopy(filename_tpl, filename, "overwrite") +;FileAppendLine("warn 'joe';", filename) +;FileAppendLine("Dwarn $schema->resultset('Survey')->search({ campaign_id => 11 })->count", filename) +FileAppendLine(code, filename) + +;TODO maybe we could have this output to a csv file and then use openoffice to view it +; OR we could output to CSV and make an AHK CSV viewer + +results := CmdRet_RunReturn("perl " . filename) +debug(results) diff --git a/DebugAgain.ahk b/DebugAgain.ahk index 1d51faa..66925ca 100644 --- a/DebugAgain.ahk +++ b/DebugAgain.ahk @@ -16,6 +16,7 @@ Loop, read, DebuggerCommands.txt ;{{{ Set some variables depending upon what mode we are in (project, refresh server, live/not) ;find out if we are in the mode to refresh the server refreshServerMode:=GetKeyState("ScrollLock", "T")=="D" +refreshServerMode:=true ;find out if we're in live site mode FileRead, filecontents, C:\code\bench\fl_bench.json @@ -189,17 +190,22 @@ Run, RefreshIfProblemLoadingPage.ahk ;{{{ Refresh if we're using firefox if ForceWinFocusIfExist("Ellis Partners in Mystery Shopping: Customer Interface - Mozilla Firefox", "Exact") { - ;This section is for testing out EPMS Customer Interface (Survey Graphing) - Click(13,13) - if ClickIfImageSearch("images\firebug\phosphorusAddress.bmp", "Control") || ClickIfImageSearch("images\firebug\phosphorusAddressHighlighted.bmp", "Control") + ;This section is for testing out EPMS Customer Interface (Initially for Survey Graphing / Reporting) + Sleep, 500 + Click(50,13) + SysGet, MonitorCount, MonitorCount + if (MonitorCount = 1) ClickIfImageSearch("images\firebug\reloadButton.bmp") - SleepSeconds(8) + if (MonitorCount = 2) + if ClickIfImageSearch("images\firebug\phosphorusAddress.bmp", "Control") || ClickIfImageSearch("images\firebug\phosphorusAddressHighlighted.bmp", "Control") + ClickIfImageSearch("images\firebug\reloadButton.bmp") + SleepSeconds(7) Click(173, 352, "Control") - Sleep, 500 + Sleep, 700 Click(173, 376, "Control") - Sleep, 500 + Sleep, 700 Click(173, 385, "Control") - Sleep, 500 + Sleep, 700 Click(260, 280, "Control") ExitApp } diff --git a/FcnLib.ahk b/FcnLib.ahk index 2be4b30..36295d4 100644 --- a/FcnLib.ahk +++ b/FcnLib.ahk @@ -1323,3 +1323,6 @@ getXmlElementContents(xmlPage, nameOfXmlElement) ;WRITEME make jira workmorrow post to dropbox public url, not an email + +;WRITEME hotkey that moves windows to 10, 10 so that I can see them while VPNed (some are trapped on the other screen) + diff --git a/ForceReloadAll.ahk b/ForceReloadAll.ahk index e9359d4..36a25e5 100644 --- a/ForceReloadAll.ahk +++ b/ForceReloadAll.ahk @@ -34,4 +34,5 @@ while true ;} ;debug("about to run main ahk files again") -RunAhk("StartIdleAhks.ahk") +;RunAhk("""C:\My Dropbox\AHKs\StartIdleAhks.ahk""", ) +Run, C:\My Dropbox\AHKs\StartIdleAhks.ahk, C:\My Dropbox\AHKs diff --git a/ForceReloadAll.exe b/ForceReloadAll.exe index d2eae26..34a5c11 100644 Binary files a/ForceReloadAll.exe and b/ForceReloadAll.exe differ diff --git a/MorningStatus-GatherData.ahk b/MorningStatus-GatherData.ahk index e80bd6b..092c7ff 100644 --- a/MorningStatus-GatherData.ahk +++ b/MorningStatus-GatherData.ahk @@ -15,7 +15,8 @@ if (A_ComputerName = "PHOSPHORUS") message=Dropbox: %dropboxSize% of 3 GB used FileAppendLine(message, filename) - message=The screen width on Phos is %A_ScreenWidth%. If less than 2000, the compy is probably locked from a recent VPN access. + SysGet, MonitorCount, MonitorCount + message=The monitor count on Phos is %MonitorCount% FileAppendLine(message, filename) } diff --git a/SelfDestruct.ahk b/SelfDestruct.ahk index b279525..f1ee58c 100644 --- a/SelfDestruct.ahk +++ b/SelfDestruct.ahk @@ -1,2 +1,2 @@ Sleep 100 -FileDelete, C:\My Dropbox\AHKs\Scheduled-20110203073629.ahk \ No newline at end of file +FileDelete, C:\My Dropbox\AHKs\Scheduled-20110209164803.ahk \ No newline at end of file diff --git a/StartIdleAhks.ahk b/StartIdleAhks.ahk index 1f4596b..7105790 100644 --- a/StartIdleAhks.ahk +++ b/StartIdleAhks.ahk @@ -1,4 +1,5 @@ #include FcnLib.ahk +;msgbox, %A_WorkingDir% ;if it isn't a VM, we'll run these ahks ; but wait, do we really want to run these on Toshimi? diff --git a/ahkvariables.ahk b/ahkvariables.ahk index 6958670..726d1f6 100644 --- a/ahkvariables.ahk +++ b/ahkvariables.ahk @@ -1 +1 @@ -Run, http://www.autohotkey.com/docs/Variables.htm +Run, http://www.autohotkey.com/docs/Variables.htm#BuiltIn diff --git a/temporary9.ahk b/temporary9.ahk index 8f0175a..b6e34a7 100644 --- a/temporary9.ahk +++ b/temporary9.ahk @@ -1,3 +1,4 @@ #include FcnLib.ahk - +Run, thirdParty/SnapDB/SnapDB.exe "C:\import_files\survey\Concord Resident Data_2011-02.txt" +Run, thirdParty/SnapDB/SnapDB.exe "C:\import_files\survey\Concord Resident Data_2011-02.txt" diff --git a/MouseDistance.ahk b/thirdParty/MouseDistance.ahk similarity index 100% rename from MouseDistance.ahk rename to thirdParty/MouseDistance.ahk diff --git a/MouseKeyboardCounter.ahk b/thirdParty/MouseKeyboardCounter.ahk similarity index 100% rename from MouseKeyboardCounter.ahk rename to thirdParty/MouseKeyboardCounter.ahk diff --git a/thirdParty/SnapDB/SnapDB.dcupdate b/thirdParty/SnapDB/SnapDB.dcupdate new file mode 100644 index 0000000..b8fe909 --- /dev/null +++ b/thirdParty/SnapDB/SnapDB.dcupdate @@ -0,0 +1,24 @@ + + + + + + + SnapDB.exe + + + + 1.1.8.1 + http://skwire.dcmembers.com/apps/snap_db/versioninfo.xml + + + + + http://skwire.dcmembers.com/wb/pages/software/snap-db.php + + + unzip + SnapDB.exe + http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip + + \ No newline at end of file diff --git a/thirdParty/SnapDB/SnapDB.exe b/thirdParty/SnapDB/SnapDB.exe new file mode 100644 index 0000000..f47302e Binary files /dev/null and b/thirdParty/SnapDB/SnapDB.exe differ diff --git a/thirdParty/SnapDB/SnapDB_ANSI.exe b/thirdParty/SnapDB/SnapDB_ANSI.exe new file mode 100644 index 0000000..f47302e Binary files /dev/null and b/thirdParty/SnapDB/SnapDB_ANSI.exe differ diff --git a/thirdParty/SnapDB/changelog.txt b/thirdParty/SnapDB/changelog.txt new file mode 100644 index 0000000..837d76d --- /dev/null +++ b/thirdParty/SnapDB/changelog.txt @@ -0,0 +1,155 @@ ++ added +* changed +- deleted +! bug fixed + +v1.1.8 - 2011-02-09 + + Passing in a CSV or TSV/TXT file via the commandline is now supported. + (Thanks, camerb) + +v1.1.7 - 2011-02-09 + ! Fixed a small graphical glitch with the enable filter checkbox. + +v1.1.6 - 2011-02-04 + * Changed how the clipboard-copy delimiter information is entered. Please + use the help button to see how the tokens work. If you had spaces or tabs + in your string, you will have to change it. + +v1.1.5 - 2011-02-02 + + Snap DB is now Unicode capable. Notes: + # This version is supported by WinXP and up. Older operating systems + will need to use the SnapDB_ANSI.exe file instead. + # Database files are read and written in UTF-8 format. + + Added Ctrl-Shift-O hotkey for opening the Options dialog. + * Changed the clipboard-copy delimiter to allow more than just one + character. (Thanks, Winkie) + ! Fixed GUI glitches with Add/Update/Insert and Options dialogs. (Thanks, + Winkie) + +v1.1.4 - 2011-02-01 + * Improved the matching logic when using the 'Run' buttons. (Thanks, + Winkie) + +v1.1.3 - 2011-02-01 + + Added 'Run' and 'Clipboard' buttons to the Add/Update/Insert dialog. The + 'Run' feature will attempt to execute data that meet the following + criteria: + # A file or folder e.g.: c:\path\to\my.exe, c:\path\to\image.png + # A URI/URL with "://" in it e.g. http://www.site.com + # 'mailto:' links e.g. mailto:skwire@dcmembers.com + + Added row-copying capabilities. You can set a custom delimiter to use + under Options. There are three ways to invoke this feature: + # Edit menu. + # Ctrl-C hotkey. + # Toolbar button. + + Added Ctrl-V hotkey to paste in a tab-delimited block. This will allow + you to copy rows with Ctrl-C and paste them in directly so long as you + have 'Tab' set for the delimiter to use when copying rows (under Options). + + Added 'Duplicate record' toolbar button. (Thanks, Winkie) + + Added "Sum columns" feature and toolbar button. This feature will attempt + to sum any columns containing numbers. It will ADD two extra + lines/records at the end of the list with the totals. YOU are + responsilble for deleting these lines or keeping them by saving. If + present, these new lines/records are considered in the next invocation of + the 'Sum columns' feature. In other words, Snap DB has no idea if those + records are totals or regular data. (Thanks, Beth UK) + * Add/Update/Insert fields will now appear in the same order as the columns. + (Thanks, Winkie) + * Changed 'Options' toolbar icon. + ! Duplicating a record now sets modified state to true. + ! If you closed out of an Update window, you could no longer insert records. + ! Stale data was kept after closing out of an Add/Update/Insert window. + (Thanks, Winkie) + ! Filter drop-down list no longer resets when updating records, only when + adding or deleting a column. (Thanks, alexsan01) + +v1.1.2 - 2011-01-28 + + Column orders are now saved per database. + + "Convert row data to header names" added to the Edit menu. This is useful + after importing a CSV file. + + Added custom CSV delimiter option under the Options dialog. (Thanks, + DeVamp) + + Added "Import" toolbar button. + + Added "Options" toolbar button. + + CSV exports should be more adherent to the CSV standard with regards to + double-quotes and commas within the data bits. + + The column order for CSV exports didn't match up with the listview column + order. (Thanks, bob99) + + Closing and saving a Snap DB database while in filter mode, and with a + modified database, would result in Snap DB erroneously saving the filtered + data view instead of the full, changed database. (Thanks, TalksToPCs) + +v1.1.1 - 2011-01-14 + + Added an "Edit record" menu item. Also, the F2 hotkey will invoke this. + (Thanks, Nikita) + + Added a "Duplicate record" menu item. Also, the F5 hotkey will invoke + this. (Thanks, TalksToPCs) + +v1.0.9 - 2011-01-12 + + Added "Append column" toolbar button. + * Due to some screwy listview bugs, I changed the "Insert column + before/after" menu items to a single "Append column" item. This will add + a column to the end of your current columns. Once added, simply drag the + column to the position you want. + +v1.0.8 - 2011-01-12 + + Dropping CSV & TSV/TXT files on the list now works. (Thanks, Stoic Joker) + + Double-clicking a "non-row" area in the listview will trigger the "Add + Record" dialog. This is the area below the last record in the list. + (Thanks, Beth UK) + + Added a "Sum column" option to the listview header menu. This will + attempt to sum any numbers found in the column, display the total and + offer to copy the total to the user's clipboard. (Thanks, Beth UK) + * Improved the CSV/TSV/TXT import to automatically add new columns if + needed. This applies to the pasting in of tab-delimited data as well. + +v1.0.7 - 2011-01-12 + + Made the add/update/insert button default when adding a record so you can + press Enter instead of having to click it. (Thanks, Nikita) + +v1.0.6 - 2011-01-11 + + The listview font face, style and color are now configurable under the + 'View > Options' dialog. + + Made the "Load last database" feature an option under View > Options. + + Option to keep a .bak backup after saving a database. (Thanks, mouser) + +v1.0.5 - 2011-01-10 + * Made Snap DB's save routine more robust and fault-tolerant. (Thanks, + mouser) + * You can now pass .snp files to the SnapDB.exe and it will load them. + * Snap DB now allows multiple instances of the viewer to run. + + If the Last_File value is invalid, SnapDB will still automatically load + the first .snp file found in the the SnapDB.exe folder. (Thanks + alexsan01) + +v1.0.4 - 2011-01-10 + + Added an extra choice in the Filter dropdown called "Any column." This + will allow you filter using a string that matches any column. + + Added ability to save chosen filter per-database. This means, to make use + of this feature, you will need to set the filter and then save the + database file on each database you wish to use this on. (Thanks, + alexsan01) + + Added ctrl-f hotkey to toggle Filter mode. (Thanks, mouser) + + Added View > Filter mode menu option. + +v1.0.3 - 2011-01-07 + + Added tab-delimited text file import. + + Added CSV file import. + + Added ability to paste in tab-delimited data directly from the "Edit" + menu. + ! Last saved file didn't work from the "Recent" menu. + +v1.0.2 - 2010-12-28 + + Last loaded database is automatically loaded after application startup. + + Snap DB will automatically load an .snp file if both of the following are + true: + 1) No config.ini file is present. + 2) There is a .snp file in the same folder as the SnapDB.exe file. + + This allows you to bundle the SnapDB.exe file and a .snp database file + together for easy viewing. (Thanks, mouser) + +v1.0.1 - 2010-12-28 + ! Fixed toolbar glyph issue under Windows 7. (Thanks, mouser) + +v1.0.0 - 2010-12-26 + + First release. diff --git a/thirdParty/SnapDB/config.ini b/thirdParty/SnapDB/config.ini new file mode 100644 index 0000000..8d5c7f6 Binary files /dev/null and b/thirdParty/SnapDB/config.ini differ