Search found 625 matches

by rommmcek
28 Jun 2019, 14:47
Forum: Ask For Help
Topic: Help to adjust a script to trigger an interface button Topic is solved
Replies: 4
Views: 282

Re: Help to adjust a script to trigger an interface button Topic is solved

I installed Xara trial. ControlClick is working fine. However not with !x hotkey. You have to choose another hotkey e.g.: #IfWinActive, ahk_exe DesignerPro.exe f::ControlClick, cc_BitmapButton6, ahk_exe DesignerPro.exe ; f - forward (next photo) d::ControlClick, cc_BitmapButton7, ahk_exe DesignerPro...
by rommmcek
27 Jun 2019, 23:13
Forum: Ask For Help
Topic: Help to adjust a script to trigger an interface button Topic is solved
Replies: 4
Views: 282

Re: Help to adjust a script to trigger an interface button Topic is solved

Some apps doesn't respond to ControlClick consistently. You can try: ControlSend, cc_BitmapButton17, {Enter}, ahk_exe DesignerPro.exe ;or less agressive ControlSend, cc_BitmapButton17, {Space}, ahk_exe DesignerPro.exe ;or ControlFocus, cc_BitmapButton17, ahk_exe DesignerPro.exe Send, {Enter} ;or les...
by rommmcek
27 Jun 2019, 21:43
Forum: Ask For Help
Topic: RHCP Classmemory
Replies: 6
Views: 568

Re: RHCP Classmemory

It seems you encountered "null terminated string" problem. So you should consider other methods to parse your data. If you don't have other options try e.g. something like this: Mf:="A_Full_Valid_Script_Path_And_Name" if FileExist(mF) FileRead, mData, % "*c " mF else { MsgBox File doesn't exist! Exi...
by rommmcek
27 Jun 2019, 20:26
Forum: Ask For Help
Topic: Finding Excel File. Loop, Files Topic is solved
Replies: 14
Views: 717

Re: Finding Excel File. Loop, Files Topic is solved

You have to debug your script! Currently the loop does just one cycle! Start replacing it with e.g.: Loop, Files, % ... "*".xlsl , FD { MsgBox % FoundFile := A_LoopFileFullPath ;if (expression) ;break } If you get expected info, then make corresponding if statement and so on... P.s.: Je veux des fra...
by rommmcek
27 Jun 2019, 09:13
Forum: Scripts and Functions
Topic: [Library] Fnt v3.0 - Do Stuff With Fonts
Replies: 27
Views: 11230

Re: [Library] Fnt v3.0 - Do Stuff With Fonts

Just made custom color options for ToolTipFnt().
Fresh code, very little tested though!
by rommmcek
27 Jun 2019, 09:07
Forum: Scripts and Functions
Topic: ToolTipFont / ToolTipColor - options for the ToolTip command
Replies: 45
Views: 16299

Re: ToolTipFont / ToolTipColor - options for the ToolTip command

Sorry, didn't see your post!
At the time I made ToolTipFnt() didn't know how to do it. Today I looked into just me's ToolTipEx() and it was fairly easy. See here!
by rommmcek
17 Jun 2019, 17:32
Forum: Ask For Help
Topic: Change values in listview Topic is solved
Replies: 4
Views: 401

Re: Change values in listview Topic is solved

You are near, for the first part. ControlGet, ColItems, List, col3, SysListView321, Format Strategy ;MsgBox % colItems loop, parse, colItems, `n { if (A_Index = 2) { col3row2:=A_LoopField break } } MsgBox % col3row2 I think, more directly would be via sending a message LVM_GETITEMTEXT . That way you...
by rommmcek
14 Jun 2019, 04:44
Forum: Ask For Help
Topic: AHK won't recognize Chrome Page Elements?
Replies: 5
Views: 388

Re: AHK won't recognize Chrome Page Elements?

May be this will give you some idea: #Include Chrome.ahk ChromeInst := new Chrome("ChromeProfile") PgInst := ChromeInst.GetPage() PgInst.Call("Page.navigate", {"url": "https://www.autohotkey.com/boards/ucp.php?mode=login"}) PgInst.WaitForLoad() send, {Tab 3} ; not needed, just for demo PgInst.Evalua...
by rommmcek
04 Jun 2019, 17:48
Forum: Ask For Help
Topic: Change Background Color of a Gui Hotkey Control. Topic is solved
Replies: 13
Views: 807

Re: Change Background Color of a Gui Hotkey Control. Topic is solved

Possible fix: #NoEnv #SingleInstance,Force global ShiftDown ; ... OnMessage(0x0F, "HotkeyCtrlEvent") ; WM_PAINT = 0x0F OnMessage(0x100, "Wm_KeyDown") OnMessage(0x101, "Wm_KeyUp") Return Wm_KeyDown(wp) { (wp=16)? ShiftDown:=1: "" } Wm_KeyUp(wp) { if (wp=9) { GuiControlGet, CFoc, Focus if (CFoc = "Edi...
by rommmcek
04 Jun 2019, 11:37
Forum: Ask For Help
Topic: Change Background Color of a Gui Hotkey Control. Topic is solved
Replies: 13
Views: 807

Re: Change Background Color of a Gui Hotkey Control. Topic is solved

Now sometimes focus sticks at overlaying Edit control, thus having unwanted effect.
Besides Sys key (Alt) invokes on my OS ugly system sound.
by rommmcek
04 Jun 2019, 10:52
Forum: Ask For Help
Topic: Change Background Color of a Gui Hotkey Control. Topic is solved
Replies: 13
Views: 807

Re: Change Background Color of a Gui Hotkey Control. Topic is solved

@iPhilip: Great condensed rewrite!

One thing remains: In a Gui with multiple controls can underlaying Hotkey control quite often pop up when manually changing the focus (via Tab key or mouse click)!
by rommmcek
03 Jun 2019, 09:34
Forum: Ask For Help
Topic: Change Background Color of a Gui Hotkey Control. Topic is solved
Replies: 13
Views: 807

Re: Change Background Color of a Gui Hotkey Control. Topic is solved

This code is simple and works pretty good. #NoEnv #SingleInstance,Force Gui, +hwndHw Gui, Color, d0c060, 4444444 Gui, Font, s14 cffff00 TAhoma Gui,Add,Hotkey, W280 x10 y6 vEdt1 gEdt1 hwndHedt1 Gui,Add,Edit, x10 y6 w280 vEdt2 hwndHedt2 Background00ffff, None Gui,Show, x1300 y150 OnMessage(0x133, "Foc...
by rommmcek
02 Jun 2019, 23:20
Forum: Ask For Help
Topic: Change Background Color of a Gui Hotkey Control. Topic is solved
Replies: 13
Views: 807

Re: Change Background Color of a Gui Hotkey Control. Topic is solved

Looks like nobody is interested. I guess it's wrong season (examens and pre-holydays time). It was just a (one) hint how could be done. But the script itself seems not to detect multiple keys when pressed (almost) simultaneously. That's why I attempted to assign all possible Hotkeys, but before fini...
by rommmcek
30 May 2019, 20:15
Forum: Ask For Help
Topic: Change Background Color of a Gui Hotkey Control. Topic is solved
Replies: 13
Views: 807

Re: Change Background Color of a Gui Hotkey Control. Topic is solved

Hi Hellbend! Your Gui designs are fantastic! iPhilip suggested using Edit Control. I found the script I believe has a potential to replace Hotkey Control with Edit. I don't have time (and knowledge) to finish it, but with help of other members might be doable. CoordMode, ToolTip, Screen SetFormat, I...
by rommmcek
29 May 2019, 17:57
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 331
Views: 86666

Re: FindText - Capture screen image into text and then find it Topic is solved

I estimated the width value too low!
I captured a. The pic was 11 pixels in width. (gray difference mode value 50)
I reduced width to 7 pixels and incremented gray difference mode value to 255.
I managed to detect 50 spaces between two words.
by rommmcek
29 May 2019, 17:15
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 331
Views: 86666

Re: FindText - Capture screen image into text and then find it Topic is solved

Oh, no! Don't use my def of Space! I use s14 size... besides the physical size of the monitor matters too!
To create your own definition just capture e.g. s reduce the width to 1/3 or the like (need to experiment) and use for gray difference mode value 255. That should do the trick!
by rommmcek
29 May 2019, 05:24
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 331
Views: 86666

Re: FindText - Capture screen image into text and then find it Topic is solved

Thank you feiyue for the fix of the Pic() and FindText() as a whole! It's so easy to use that I didn't understand many advanced features. Now I learned a lot. If I got it correctelly the function, after initial match, for certain width ignores any undiffined character. That is conveniant for spaces ...
by rommmcek
28 May 2019, 17:46
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 331
Views: 86666

Re: FindText - Capture screen image into text and then find it Topic is solved

There was a bug. Run the code, type in e.g. : zba and press Search Gui, +AlwaysOnTop Gui, Font, s14 Gui, Add, Edit, w295 vFindName Gui, Add, Button, w295 gSearch, Search Gui, Show, x1400 y150 `t Gui, Show, x1400 y150 `t a:=Ord("a"), Txt_%a%:="|<a>*136$10.7lzq3MA0lzTzUw3sRznvU" b:=Ord("b"), Txt_%b%:=...
by rommmcek
28 May 2019, 17:06
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 331
Views: 86666

Re: FindText - Capture screen image into text and then find it Topic is solved

Just made edit on the previous page. Take a look how to distinguish them! Edit2!!! (Sorry, I'm helping you with one eye - not concentrated) parsing edited & than use Joint wich : loop, parse, % Trim(StrReplace(FindName, " ")) ; parse each character Text.=Txt_%Ord(A_LoopField)% if (ok:=FindText(0, 0,...
by rommmcek
28 May 2019, 16:40
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 331
Views: 86666

Re: FindText - Capture screen image into text and then find it Topic is solved

Try this idea (e.g. a_Code is: 177$9.DXyMs3DvzsS7zvvU etc. ;~ ... Gui, Show, x1400 y150 `t Txt_a:="|<a>*a_Code" Txt_b:="|<b>*b_Code" ;~ ... Txt_z:="|<z>*z_Code" Txt_A:="|<A>*A_Code" Txt_B:="|<B>*B_Code" ;~ ... Txt_Z:="|<Z>*Z_Code" ;~ ... ;~ etc. return Search: Text:="" GuiControlGet, FindName loop, ...

Go to advanced search