Search found 124 matches

by ivill
04 Oct 2016, 07:32
Forum: Ask for Help (v1)
Topic: Winwait sound file played to trigger actions (Pushbullet) Topic is solved
Replies: 8
Views: 2141

Re: Winwait sound file played to trigger actions (Pushbullet) Topic is solved

Definitely use the API as jNizM suggested. But I still think you should be able to find info on that window. Just don't click on it. You could use a script like this: DetectHiddenText, On Loop { MouseGetPos, X, Y, ID WinGetTitle, Title, ahk_id %ID% WinGetClass, Class, ahk_id %ID% WinGet, Process, P...
by ivill
04 Oct 2016, 07:28
Forum: Ask for Help (v1)
Topic: Winwait sound file played to trigger actions (Pushbullet) Topic is solved
Replies: 8
Views: 2141

Re: Winwait sound file played to trigger actions (Pushbullet) Topic is solved

jNizM wrote:With the Pushbullet API (Mirrored Notifications)
i was wrong, Pushbullet for Windows is much better, i'm gonna have a try on it. thanks anyway
by ivill
04 Oct 2016, 07:27
Forum: Ask for Help (v1)
Topic: Winwait sound file played to trigger actions (Pushbullet) Topic is solved
Replies: 8
Views: 2141

Re: Winwait sound file played to trigger actions (Pushbullet) Topic is solved

boiler wrote:The Pushbullet window has to at least have a process name. Can you post a picture of the info in the Window Spy tool for that popup window?
i was wrong, Pushbullet for Windows is much better, i'm gonna have a try on it. thanks anyway
by ivill
04 Oct 2016, 07:01
Forum: Ask for Help (v1)
Topic: Winwait sound file played to trigger actions (Pushbullet) Topic is solved
Replies: 8
Views: 2141

Re: Winwait sound file played to trigger actions (Pushbullet) Topic is solved

The Pushbullet window has to at least have a process name. Can you post a picture of the info in the Window Spy tool for that popup window? unfortunately, it's unclickable, once it was clicked, the window will disapear, but i can click&hold to select the text field (and copy the text) note that: th...
by ivill
04 Oct 2016, 05:11
Forum: Ask for Help (v1)
Topic: Winwait sound file played to trigger actions (Pushbullet) Topic is solved
Replies: 8
Views: 2141

Winwait sound file played to trigger actions (Pushbullet) Topic is solved

Hi, im using Pushbullet(both installed on Chrome browser extension and my android phone), there's a feature "Notificaion Mirroring", it can push notifications from the phone to PC, i want to use it to trigger script: when new notification popup window (as the first image in the below)on PC, copy tex...
by ivill
03 Oct 2016, 07:04
Forum: Ask for Help (v1)
Topic: Simple quick math (535 to 530) problem Topic is solved
Replies: 4
Views: 1214

Re: Simple quick math (535 to 530) problem Topic is solved

Try this: Input := "535|495|2016|1039|2050" Loop, Parse, Input, | MsgBox, % SubStr(A_LoopField, 1, -1) "0" I hope that helps. Input := Clipboard Loop, Parse, Input, | MsgBox, % SubStr(A_LoopField, 1, -1) "0" it works, For a single numberic in clipboard, thanks! it's all i need. anyway, it will not ...
by ivill
03 Oct 2016, 06:31
Forum: Ask for Help (v1)
Topic: Simple quick math (535 to 530) problem Topic is solved
Replies: 4
Views: 1214

Simple quick math (535 to 530) problem Topic is solved

Code: Select all

MsgBox, % Round(535, -1)
In this Round command, The result is 540.

How can i get the result as the examples on the below ?

535 > 530

495 > 490

2016 > 2010

1039 > 1030

2050 > 2050 ; no change at all, can i use if statement?

Best Regards
by ivill
26 Sep 2016, 07:31
Forum: Ask for Help (v1)
Topic: Laptop Lid State (open/close) action
Replies: 2
Views: 1484

Re: Laptop Lid State (open/close) action

I found this is useful especially i'm not in the front of my laptop & the lid closed , while im remote controlling my pc, in case if the lid opened by someone, i can check the current lid state (maybe get some notification) on the homescreen
by ivill
26 Sep 2016, 07:25
Forum: Ask for Help (v1)
Topic: Laptop Lid State (open/close) action
Replies: 2
Views: 1484

Laptop Lid State (open/close) action

/* By Linear Spoon 7/28/2013 This script should work for Vista+ Details: Use Start_LidWatcher to begin monitoring the lid state. r := Start_LidWatcher() When the state changes, the function "LidStateChange" will be called. LidStateChange should have the following format: LidStateChange(newstate) { ...
by ivill
25 Sep 2016, 20:10
Forum: Ask for Help (v1)
Topic: Avoid specific chars while generate random string Topic is solved
Replies: 8
Views: 2049

Re: Avoid specific chars while generate random string Topic is solved

pList .= RndStr(7,7,3) ; <--- 17 digit random string MsgBox % pList RndStr(L,N,U) { Loop, 3 { param:=A_Index=1?("L",val:=L):A_Index=2?("N",val:=N):("U",val:=U) Loop % val Loop { if InStr(P,R:=Chr(Rnd(param)),1) continue else { P .= R . "#" break } } } Sort,P,Random D# Return StrReplace(P,"#") } Rnd...
by ivill
25 Sep 2016, 20:09
Forum: Ask for Help (v1)
Topic: Avoid specific chars while generate random string Topic is solved
Replies: 8
Views: 2049

Re: Avoid specific chars while generate random string Topic is solved

MsgBox, % RandStr(10000, 10000, 10000) return RandStr(L := 0, N := 0, U := 0) { While(L || N || U){ Random, type, % N ? 1 : (L ? 2 : 3), % U ? 3 : (L ? 2 : 1) null := type = 1 ? N-- : (type = 2 ? L-- : U--) Random, R, % type = 1 ? 0 : (type = 2 ? 65 : 97), % type = 1 ? 9 : (type = 2 ? 90 : 122) if(...
by ivill
25 Sep 2016, 20:06
Forum: Ask for Help (v1)
Topic: Avoid specific chars while generate random string Topic is solved
Replies: 8
Views: 2049

Re: Avoid specific chars while generate random string Topic is solved

wolf_II wrote::oops: just noticed: OP wants to avoid double letters in any position, not just at the start of the random string.
Please ignore my previous two posts. Sorry.
Yes,
not just at the start of the random string.
:) but thanks anyway.
by ivill
25 Sep 2016, 12:17
Forum: Ask for Help (v1)
Topic: Avoid specific chars while generate random string Topic is solved
Replies: 8
Views: 2049

Avoid specific chars while generate random string Topic is solved

RandStr( L=0,N=0,U=0 ) { ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Loop % (L+(Z:=0)) { Random,R,97,122 P.=Chr(R) Z } Loop %N% { Random,R,1,9 ; RandStr( 10 ) 10 character all lower case P.=R Z ; RandStr( 0,10,0 ) 10 character numeric string } Loop %U% { ; RandStr( 0,0,10 ) 10...
by ivill
25 Sep 2016, 11:37
Forum: Ask for Help (v1)
Topic: Sort Clipboard numbers from lowest to greatest (F1+F2+F3+ … F100) Topic is solved
Replies: 7
Views: 1549

Re: Sort Clipboard numbers from lowest to greatest (F1+F2+F3+ … F100) Topic is solved

Between F213 and F214 as well as F299 and F300 are two instances of ++. I'm not sure how Excel handles that, if it treats it as plus zero plus and basically ignores the issue. We could resolve it by doing a StringReplace , clipboard, clipboard, ++, +, 1 . Solved! Im sorry, my bad, i have to admit, ...
by ivill
25 Sep 2016, 11:09
Forum: Ask for Help (v1)
Topic: Sort Clipboard numbers from lowest to greatest (F1+F2+F3+ … F100) Topic is solved
Replies: 7
Views: 1549

Re: Sort Clipboard numbers from lowest to greatest (F1+F2+F3+ … F100) Topic is solved

Could you give a quick copy and paste of the unsorted string, so I can get that into my clipboard? My suspicion had been maybe there was a stray ++ in your string. But that would need two instances of what to produce what you're seeing. It would be interesting to also note if any particular cell co...
by ivill
25 Sep 2016, 10:33
Forum: Ask for Help (v1)
Topic: Sort Clipboard numbers from lowest to greatest (F1+F2+F3+ … F100) Topic is solved
Replies: 7
Views: 1549

Re: Sort Clipboard numbers from lowest to greatest (F1+F2+F3+ … F100) Topic is solved

Clipboard:="=F4+F14+F16+F24+F25+F26+F30+F31+F22+F29" If (SubStr(clipboard,1,1)="=") StringTrimLeft, clipboard, clipboard, 1 ; removes the = sign out from, we'll add it back in later Sort, clipboard, D+ P2 N ; the D+ means sort substrings between the +, and the P2 means compare by the 2nd character ...
by ivill
25 Sep 2016, 09:34
Forum: Ask for Help (v1)
Topic: Sort Clipboard numbers from lowest to greatest (F1+F2+F3+ … F100) Topic is solved
Replies: 7
Views: 1549

Re: Sort Clipboard numbers from lowest to greatest (F1+F2+F3+ … F100) Topic is solved

Clipboard:="=F4+F14+F16+F24+F25+F26+F30+F31+F22+F29" If (SubStr(clipboard,1,1)="=") StringTrimLeft, clipboard, clipboard, 1 ; removes the = sign out from, we'll add it back in later Sort, clipboard, D+ P2 N ; the D+ means sort substrings between the +, and the P2 means compare by the 2nd character ...
by ivill
25 Sep 2016, 07:59
Forum: Ask for Help (v1)
Topic: Sort Clipboard numbers from lowest to greatest (F1+F2+F3+ … F100) Topic is solved
Replies: 7
Views: 1549

Sort Clipboard numbers from lowest to greatest (F1+F2+F3+ … F100) Topic is solved

im ahk newbie here, this is a cell in one of my daily use excel sheet, with increasing values (=F4+F14+F16+F24+F25+F26+F30+F31) while new cells added, it will going to be like this =F4+F14+F16+F24+F25+F26+F30+F31+ F22 + F29 I`m looking for a way to sort it to assending order =F4+F14+F16+ F22 +F24+F2...
by ivill
17 Jun 2016, 07:07
Forum: Ask for Help (v1)
Topic: Excel Find keyword from clipboard (Loop until not found)
Replies: 2
Views: 817

Re: Excel Find keyword from clipboard (Loop until not found)

rommmcek wrote:Split the code in multiple sections, find sections which doesn't work as you expect and if you don't find a solution ask short question just about this (small) section!
Thanks for your suggestion, this is a good idea, gonna have a try
by ivill
17 Jun 2016, 06:05
Forum: Ask for Help (v1)
Topic: Excel Find keyword from clipboard (Loop until not found)
Replies: 2
Views: 817

Excel Find keyword from clipboard (Loop until not found)

Hi AHKer im a newbie here, i use this to find text from clipboard in Excel, if keyword find in Column.B, copy specific cells, then loop until not found, but however Not working...at all, could someone do me a favor? how to make it work ? thanks! #SingleInstance force Ignore off SetDefaultMouseSpeed,...

Go to advanced search