topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday May 9, 2024, 1:53 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Ath [ switch to compact view ]

Pages: prev1 ... 7 8 9 10 11 [12] 13 14 15 16 17 ... 145next
276
I've modified the original download from the Skrommel site to support your request, and also updated the documentation in the ini file (source and sample ini in the attached zip file)
No compiled exe is provided, so you'll have to have AutoHotKey installed on your computer.

Modification: The pixelcolor can now optionally be prefixed with an exclamation mark, like !FFFFFF, so the pixel is watched for being not-equal to that color. The message should probably be adjusted accordingly.

NB: There is no support for setting this option from using the Add alarm... option from the context menu, but it can easily be set as the ini file is opened after adding an alarm.

Code: Autohotkey [Select]
  1. ;PixelNotifier.ahk
  2. ; Watches a screen pixel for a specific color, and notifies the user when it occurs.
  3. ;Skrommel @2005
  4. ; 2019-03-02 Ath: Added inverted check by prefixing the pixelcolor with !
  5.  
  6.  
  7. SysGet,workarea,MonitorWorkArea
  8.  
  9. applicationname=PixelNotifier
  10.  
  11. Gosub,READINI
  12. Gosub,ACTIVATEALL
  13.  
  14. Loop,%alarmscount%
  15. {
  16.   Sleep,500
  17.   If active_%A_Index%=0
  18.     Continue
  19.   If triggered_%A_Index%=1
  20.     Continue
  21.   x:=alarms_%A_Index%_1
  22.   y:=alarms_%A_Index%_2
  23.   pixelcolor:=alarms_%A_Index%_3
  24.   StringLeft,invert,pixelcolor,1
  25.   If invert = !
  26.   {
  27.         checkInvert=1
  28.         StringTrimLeft,pixelcolor,pixelcolor,1
  29.   }
  30.   relative:=alarms_%A_Index%_4
  31.   If relative=1
  32.     CoordMode,Pixel,Screen
  33.   Else
  34.     CoordMode,Pixel,Relative
  35.   PixelGetColor,readpixelcolor,x,y,RGB
  36.   StringTrimLeft,readpixelcolor,readpixelcolor,2
  37.   If checkInvert = 1
  38.   {
  39.         If readpixelcolor=%pixelcolor%
  40.           Continue
  41.   }
  42.   else
  43.   {
  44.         If readpixelcolor<>%pixelcolor%
  45.           Continue
  46.   }
  47.   triggered_%A_Index%=1
  48.   message:=alarms_%A_Index%_5
  49.   fullscreencolor:=alarms_%A_Index%_6
  50.   Gui,%A_Index%:+Owner -Resize -SysMenu -MinimizeBox -MaximizeBox -Disabled +Caption +Border -ToolWindow
  51.   Gui,%A_Index%:Color,%fullscreencolor%
  52.   Gui,%A_Index%:Add,Button,X320 Y240 Default GOK_%A_Index%,%message%
  53.   Gui,%A_Index%:Show,X-4 Y-4 W%workareaRight% H%workareaBottom%,%applicationname% %A_Index%
  54.   SetTimer,TRIGGERED_%A_Index%,5000
  55.   Gosub,TRIGGERED_%A_Index%    
  56. }
  57.  
  58.  
  59. TRIGGERED_9:
  60. triggered=9
  61. Goto,TRIGGERED
  62. TRIGGERED_8:
  63. triggered=8
  64. Goto,TRIGGERED
  65. TRIGGERED_7:
  66. triggered=7
  67. Goto,TRIGGERED
  68. TRIGGERED_6:
  69. triggered=6
  70. Goto,TRIGGERED
  71. TRIGGERED_5:
  72. triggered=5
  73. Goto,TRIGGERED
  74. TRIGGERED_4:
  75. triggered=4
  76. Goto,TRIGGERED
  77. TRIGGERED_3:
  78. triggered=3
  79. Goto,TRIGGERED
  80. TRIGGERED_2:
  81. triggered=2
  82. Goto,TRIGGERED
  83. TRIGGERED_1:
  84. triggered=1
  85. Goto,TRIGGERED
  86. TRIGGERED:
  87. sound:=alarms_%triggered%_7
  88. SoundPlay,%sound%
  89. ;WinSet,Top,,%applicationname% %triggered%
  90. WinActivate,%applicationname% %triggered%
  91. Return
  92.  
  93.  
  94. OK_9:
  95. ok=9
  96. OK_8:
  97. ok=8
  98. OK_7:
  99. ok=7
  100. OK_6:
  101. ok=6
  102. OK_5:
  103. ok=5
  104. OK_4:
  105. ok=4
  106. OK_3:
  107. ok=3
  108. OK_2:
  109. ok=2
  110. OK_1:
  111. ok=1
  112. SetTimer,TRIGGERED_%ok%,Off
  113. active_%ok%=0
  114. Gosub,TRAYMENU
  115. Return
  116.  
  117.  
  118. TOGGLE_9:
  119. TOGGLE_8:
  120. TOGGLE_7:
  121. TOGGLE_6:
  122. TOGGLE_5:
  123. TOGGLE_4:
  124. TOGGLE_3:
  125. TOGGLE_2:
  126. TOGGLE_1:
  127. menu:=A_ThisMenuItemPos-2
  128. If active_%menu%=0
  129. {
  130.   active_%menu%=1
  131.   triggered_%menu%=0
  132.   Gosub,TRAYMENU
  133. }
  134. Else
  135. {
  136.   Gosub,OK_%menu%
  137. }
  138. Return
  139.  
  140.  
  141. Gosub,DEACTIVATEALL
  142. {
  143.   CoordMode,Pixel,Screen
  144.   CoordMode,Mouse,Screen
  145.   MouseGetPos,sx,sy
  146.   PixelGetColor,readpixelcolor,sx,sy,RGB
  147.   StringTrimLeft,readpixelcolor,readpixelcolor,2
  148.   CoordMode,Mouse,Relative
  149.   ToolTip,Color:`t%readpixelcolor%`nScreenCoord:`t%sx% %sy%`nWindowCoord:`t%x% %y%`n`nPress`tto add`n1=`tScreenCoord`n2=`tWindowCoord`nEsc=Cancel
  150.   GetKeyState,screen,1,P
  151.   If screen=D
  152.   {
  153.     FileAppend,`n%sx%`,%sy%`,%readpixelcolor%`,1`,Message`,FFFFFF`,C:\Windows\Ding.wav,%applicationname%.ini
  154.     ToolTip,
  155.     Gosub,SETTINGS
  156.     Break  
  157.   }
  158.   GetKeyState,window,2,P
  159.   If window=D
  160.   {
  161.     FileAppend,`n%x%`,%y%`,%readpixelcolor%`,2`,Message`,FFFFFF`,C:\Windows\Ding.wav,%applicationname%.ini
  162.     ToolTip,
  163.     Gosub,SETTINGS
  164.     Break  
  165.   }
  166.   GetKeyState,esc,Esc,P
  167.   If esc=D
  168.   {
  169.     ToolTip,
  170.     Break
  171.   }
  172. }
  173. Return
  174.  
  175.  
  176. SETTINGS:
  177. Gosub,DEACTIVATEALL
  178. Gosub,READINI
  179. Run,%applicationname%.ini
  180. Return
  181.  
  182.  
  183. READINI:
  184. IfNotExist,%applicationname%.ini
  185. {
  186. ini=`;%applicationname%.ini
  187. ini=%ini%`n`;
  188. ini=%ini%`n`;Syntax:
  189. ini=%ini%`n`;
  190. ini=%ini%`n`;x,y,pixelcolor,relative,message,fullscreencolor,sound
  191. ini=%ini%`n`;
  192. ini=%ini%`n`; x                               Horizontal positon of the pixel to watch
  193. ini=%ini%`n`; y                               vertical positon of the pixel to watch
  194. ini=%ini%`n`; pixelcolor=[!]000000-FFFFFF     RGB-color of the pixel to watch
  195. ini=%ini%`n`;                                 If the RGB color is optionally prefixed with an exclamation mark,
  196. ini=%ini%`n`;                                 like !FFFFFF, the pixel is watched for being not-equal to that color
  197. ini=%ini%`n`; relative=1,2                    Find pixel relative to 1=the screen or 2=the active window
  198. ini=%ini%`n`; message                         The message to display
  199. ini=%ini%`n`; fullscreencolor=000000-FFFFFF   Color of the fullscreen notification
  200. ini=%ini%`n`; sound                           Path to the WAV-file
  201. ini=%ini%`n`;
  202. ini=%ini%`n`;Example:
  203. ini=%ini%`n`;
  204. ini=%ini%`n`;0,0,FFFFFF,White color detected!,0,0000FF,C:\Windows\Media\Ding.wav
  205. ini=%ini%`n`;  Watches the screenposition 0,0 for the color white and plays a sound and
  206. ini=%ini%`n`;  displays a blue message window with the text White color detected!
  207. ini=%ini%`n
  208. ini=%ini%`n200,200,FFFFFF,1,White color detected!,0000FF,C:\Windows\Media\Ding.wav
  209. ini=%ini%`n400,400,FFFFFF,1,White color detected!,FF0000,C:\Windows\Media\Ding.wav
  210. FileAppend,%ini%,%applicationname%.ini
  211. ini=
  212. }
  213. alarmscount=0
  214. Loop,Read,%applicationname%.ini
  215. {
  216.     Continue
  217.     Continue
  218.   alarmscount+=1
  219.   StringSplit,alarms_%alarmscount%_,A_LoopReadLine,`,
  220. }
  221. Return
  222.  
  223.  
  224. TRAYMENU:
  225. Menu,Tray,NoStandard
  226. Menu,Tray,DeleteAll
  227. Menu,Tray,Add,%applicationname%,TOGGLE
  228. Menu,Tray,Add,
  229. Loop,%alarmscount%
  230. {
  231.   message:=alarms_%A_Index%_5
  232.   Menu,Tray,Add,&%A_Index%:%message%,TOGGLE_%A_Index%
  233.   If active_%A_Index%=1
  234.     Menu,Tray,Check,&%A_Index%:%message%
  235. }
  236. Menu,Tray,Add,
  237. Menu,Tray,Add,&Enable All,ACTIVATEALL
  238. Menu,Tray,Add,&Disable All,DEACTIVATEALL
  239. Menu,Tray,Add,
  240. Menu,Tray,Add,&Add alarm...,Add
  241. Menu,Tray,Add,&Edit alarms...,SETTINGS
  242. Menu,Tray,Add,
  243. Menu,Tray,Add,&About...,ABOUT
  244. Menu,Tray,Add,E&xit,EXIT
  245. Menu,Tray,Default,%applicationname%
  246. Menu,Tray,Tip,%applicationname%
  247. Return
  248.  
  249.  
  250. TOGGLE:
  251. Pause,Toggle
  252. Return
  253.  
  254.  
  255. ACTIVATEALL:
  256. Loop,%alarmscount%
  257. {
  258.   active_%A_Index%=1
  259.   triggered_%A_Index%=0
  260.   Gosub,TRAYMENU
  261. }
  262. Return
  263.  
  264.  
  265. DEACTIVATEALL:
  266. Loop,%alarmscount%
  267. {
  268.   SetTimer,TRIGGERED_%A_Index%,Off
  269.   Gui,%A_Index%:Destroy
  270.   active_%A_Index%=0
  271.   triggered_%A_Index%=0
  272.   Gosub,TRAYMENU
  273. }
  274. Return
  275.  
  276.  
  277. ABOUT:
  278. Gui,99:Margin,20,20
  279. Gui,99:Add,Picture,xm Icon1,%applicationname%.exe
  280. Gui,99:Font,Bold
  281. Gui,99:Add,Text,x+10 yp+10,%applicationname% v1.0
  282. Gui,99:Add,Text,y+10,Watches a screen pixel for a specific color, and notifies the user when it occurs.
  283. Gui,99:Add,Text,y+5,- Change settings using Settings in the tray menu
  284. Gui,99:Add,Text,y+5,- Shows a message, plays a sound and fills the whole screen with color
  285.  
  286. Gui,99:Add,Picture,xm y+20 Icon5,%applicationname%.exe
  287. Gui,99:Font,Bold
  288. Gui,99:Add,Text,x+10 yp+10,1 Hour Software by Skrommel
  289. Gui,99:Add,Text,y+10,For more tools, information and donations, please visit
  290. Gui,99:Font,CBlue Underline
  291. Gui,99:Add,Text,y+5 G1HOURSOFTWARE,www.1HourSoftware.com
  292.  
  293. Gui,99:Add,Picture,xm y+20 Icon7,%applicationname%.exe
  294. Gui,99:Font,Bold
  295. Gui,99:Add,Text,x+10 yp+10,DonationCoder
  296. Gui,99:Add,Text,y+10,Please support the contributors at
  297. Gui,99:Font,CBlue Underline
  298. Gui,99:Add,Text,y+5 GDONATIONCODER,www.DonationCoder.com
  299.  
  300. Gui,99:Add,Picture,xm y+20 Icon6,%applicationname%.exe
  301. Gui,99:Font,Bold
  302. Gui,99:Add,Text,x+10 yp+10,AutoHotkey
  303. Gui,99:Add,Text,y+10,This tool was made using the powerful
  304. Gui,99:Font,CBlue Underline
  305. Gui,99:Add,Text,y+5 GAUTOHOTKEY,www.AutoHotkey.com
  306.  
  307. Gui,99:Show,,%applicationname% About
  308. hCurs:=DllCall("LoadCursor","UInt",NULL,"Int",32649,"UInt") ;IDC_HAND
  309. OnMessage(0x200,"WM_MOUSEMOVE")
  310. Return
  311.  
  312. 1HOURSOFTWARE:
  313.  Run,http://www.1hoursoftware.com,,UseErrorLevel
  314. Return
  315.  
  316. DONATIONCODER:
  317.  Run,http://www.donationcoder.com,,UseErrorLevel
  318. Return
  319.  
  320. AUTOHOTKEY:
  321.  Run,http://www.autohotkey.com,,UseErrorLevel
  322. Return
  323.  
  324. 99GuiClose:
  325.  Gui,99:Destroy
  326.   OnMessage(0x200,"")
  327.   DllCall("DestroyCursor","Uint",hCur)
  328. Return
  329.  
  330. WM_MOUSEMOVE(wParam,lParam)
  331. {
  332.   Global hCurs
  333.   MouseGetPos,,,,ctrl
  334.   If ctrl in Static9,Static13,Static17
  335.     DllCall("SetCursor","UInt",hCurs)
  336.   Return
  337. }
  338. Return
  339.  
  340.  

277
The problem is that i can't trust in any supplier. I prefer to trust in customers . So I am delaying the decission until I find a really understanding customer.
Sorry if I sound a little harsh (and I may be repeating myself...), but why are you asking for approval (that's what it sounds like to me, instead of advice), and already order the goods without waiting for or taking any of the tips you can have here?
If that's you way of proceeding, then just tell us what you bought, including photos, and why,
Spoiler
without cluttering the forum with endless rants and irrelevant info.

>:(

278
Living Room / Re: Looking for smartphone
« on: February 27, 2019, 01:06 AM »
if he travels outside the EU, in this case a dual SIM phone comes in handy
That's one of the features of the Nokia 6.1, and it has a Qualcomm (Snapdragon 630) soc ;)

279
Living Room / Re: Looking for smartphone
« on: February 26, 2019, 01:32 PM »
I've been quite happy with the Nokia 6.1 (64 GB model) I bought last year. I searched on amazon.de and found the 32 GB model here that should fit the budget. I assume you can pick a different color for a similar price, if desired.
It has a decent processor and quit fair battery life (2+ days on light use), and all modern stuff like usb-c, 3.5mm audioplug, no notch and a (fast) fingerprint scanner on the back.

280
Living Room / Re: When you make your 100'th Post
« on: February 25, 2019, 12:45 PM »
How the hell do you guys find this stuff?

Well, you have to find joy in spotting special numbers and see the synchronicity displayed in them ;D



I'll post my own 3333rd post in style

Screenshot - 25-02-2019 , 19_47_09.png

281
Living Room / Re: When you make your 100'th Post
« on: February 24, 2019, 03:02 AM »
A couple of matching numbers, while posting in the same thread, and signed up in the same year, but also one notable difference...

Screenshot - 24-02-2019 , 09_57_27.png

282
I want to learn.
I was aiming for 'learning by example', but ok:

You should probably use the mail merge feature of Word, it involves getting the data from Excel sheet(s). There are plenty manuals/guides available on the internet, you can use google to find one.
You might want to add some calculated fields in your Excel sheet that hold the counts/calculations you requested, and you already seem to know the formulas involved.

283
Can you attach a real sample of the xls file here, so we can determine the structure, and you describe what exact elements you need the report to operate on?

284
Living Room / Re: Review Pendrive Microdrive usb 3.0 128 GB
« on: February 15, 2019, 12:39 PM »
H2testw is the way to go, read this review of that and similar tools.

285
Well, Windows 10 puts a default transparent shadow around any non-maximized window of ca. 5-10 pixels. That is most likely what you are seeing. You probably can't 'fix' it as it isn't broken, but designed that way.

286
General Software Discussion / Re: Full Windows 10 on Raspberry Pi 3!
« on: February 14, 2019, 12:50 PM »
Well, MS has been working on an ARM version of Windows since Windows-RT, and we all saw how successful that was... not. :'(

287
General Software Discussion / Re: Full Windows 10 on Raspberry Pi 3!
« on: February 14, 2019, 01:28 AM »
Maybe speeds will improve as better drivers are released for faster access to the SD card or possible GPU acceleration.
Well, after I tried one of the first IoT releases of Windows, specifically made for the RPi, I found it to be so dreadfully slow that I gave up on it. So while I appreciate your efforts, I'm not inclined to even try to get it working. And about the anticipated speed improvements: Keep on dreaming hoping :up:

288
Post New Requests Here / Re: NetTraffic xml export to Excel
« on: February 13, 2019, 03:17 PM »
Well, I mocked up a batchfile, using xmlstarlet to be downloaded here, that converts all "NetTraffic <date-time>.xml" files of current directory into a single NetTrafficAll.csv file.

(Used the PowerShell highlighter as Batch isn't supported by the board)
You'll need to adjust the path to the xml.exe file, and check the other settings as 'documented'
NOTE: No data-conversions done here, Excel can do that better and easier
Code: PowerShell [Select]
  1. @echo off
  2. :: Set the relative path to your xmlstarlet install:
  3. set XML=..\Downloads\XML\xmlstarlet-1.6.1\xml.exe
  4. :: Change filemask if desired
  5. set "FILEMASK=NetTraffic 2*.xml"
  6. :: Change result outputfile as desired, keep the .csv extension, when adding spaces, surround with quotes like FILEMASK
  7. set OUTFILE=NetTrafficAll.csv
  8. :: Add StatHour to this list if desired
  9. set "ELEMENTS=StatYear StatMonth StatDay"
  10. :: Choose csv separator, either , (comma) or ; (semicolon)
  11. set CSVSEP=;
  12.  
  13. set XMLARG1=sel -T -t -m NetTraffic/
  14. set XMLARG2=/key -v "concat('
  15. set XMLARG3=%CSVSEP%',@ts,'%CSVSEP%',@tm,'%CSVSEP%',@dl,'%CSVSEP%',@ul,'%CSVSEP%',@dx,'%CSVSEP%',@dy)" -n
  16.  
  17. :: Write header
  18. echo Period%CSVSEP%ts%CSVSEP%tm%CSVSEP%dl%CSVSEP%du%CSVSEP%dx%CSVSEP%dy>"%OUTFILE%"
  19. :: Loop all files from FILEMASK
  20. for %%F in ("%FILEMASK%") do (
  21. echo File: %%F
  22. :: Fetch all configured elements
  23. for %%G in (%ELEMENTS%) do (
  24. %XML% %XMLARG1%%%G%XMLARG2%%%G%XMLARG3% "%%F" >>"%OUTFILE%"
  25. )
  26. )

NOTE2: The csv file will be fully replaced each run of the script!

289
Post New Requests Here / Re: NetTraffic xml export to Excel
« on: February 13, 2019, 01:44 PM »
Thanks for sharing. And I'm happy my educated guess about the ts field was quite close :-[

Can you attach an original xml file to a reply? Scraping it from your messages doesn't provide the original structure, you seem to have taken clips from a webbrowser (the dashes in front of the <Stat elements give it away ;)) (Finally downloaded NetTraffic and did a testrun 8))

290
N.A.N.Y. 2019 / Re: NANY 2019: TextWorx - Universal Text Manipulator
« on: February 13, 2019, 01:33 PM »
Ath - I've added your base64 encode string function.
And it works like a charm, thanks :Thmbsup:

291
Use sed, the Stream EDitor, known from Linux, but also available for Windows. And here is a SO answer with details

The Windows download can be found here: http://gnuwin32.sour...net/packages/sed.htm

292
Let me guess: You're on Windows 10?

293
LaunchBar Commander / Re: LBC - Loop Send Keys
« on: February 11, 2019, 01:20 PM »
I would like to loop the {DOWN} x 10
You could run my tool WinSendKeys, that is created in, and supports, the AutoIt3 syntax, like {DOWN 10} to repeat the {DOWN} keystroke 10 times (might need surrounding quotes when used on a command-line). It also has options to direct the keystrokes to a specific window or application, read keystrokes from a (script)file, execute mouse clicks and moves, and a whole plethora of related stuff.
Haven't tried myself to start it from LBC, as I'm not an LBC user, but it is designed for tasks like that.

294
Living Room / Re: Refurbished or used internal hard disks 3½ 6TB-12TB
« on: February 09, 2019, 05:08 AM »
Ejem. What do you think about this ?

https://es.aliexpres...1.0.0.274263c0ZRWOJH

Real or imaginary ?

It's real, but not suitable as main storage.
And how long you'll have a device that will support micro-USB? My current phone has (and most newer phones will have) USB-C connector...

295
Post New Requests Here / Re: NetTraffic xml export to Excel
« on: February 09, 2019, 05:02 AM »
Well, I tried a couple of possibilities, and the closes guess I have is that 'ts' is related to 1/1/0000, in seconds, but with a factor 100 off. Guess that's close enough for determining the data.
ul and dl are quite self explanatory (million bytes).

Best advice would probably be to contact the developer and ask for documentation.

296
Post New Requests Here / Re: NetTraffic xml export to Excel
« on: February 08, 2019, 10:26 AM »
Excel can open an xml file just fine as a worksheet:
  • Start Excel (2007 or later I'd advise)
  • Use File-Open to fetch the xml file
  • Choose either the 1st 'As an XML table' or 2nd 'As a readonly workbook' option when prompted
    • The 1st option will induce a message about a missing schema, just continue with OK
    • The 2nd option will include some of the metadata as column headers, it can be removed if desired
  • Process & massage the data as required/desired

297
Skwire Empire / Re: Release: sWeather (tray-based weather app)
« on: February 07, 2019, 01:55 PM »
as 7z or zip package
Attaching files to posts, or inserting screenshots (png's) into the message, has never been an issue here, using Palemoon, Firefox or Chrome browsers.

298
And use the <Win>-(cursor-keys) hotkeys to move and resize the current window...

299
Living Room / Re: DC on Discord :O
« on: February 05, 2019, 12:26 PM »
because nobody ever talks on the DC IRC
I'd want to write on IRC, but I can't, as by default the 'voice' flag is off, so I can't even ask there to turn it on... :-[

300
Splasm: https://www.splasm.com/products/
Thanks Curt, but my aim was to educate the OP in formulating a more complete question, but maybe that's to much to ask for drive-by posters :-[

Pages: prev1 ... 7 8 9 10 11 [12] 13 14 15 16 17 ... 145next