Search found 358 matches

by DataLife
28 May 2020, 06:03
Forum: Scripts and Functions
Topic: [Script] Task Manager with Filter and Multi-Kill-Process
Replies: 20
Views: 1518

Re: [Script] Task Manager with Filter and Multi-Kill-Process

Very nice...

unicode? ansi? Does this support both?

I like the filter, very useful.
by DataLife
22 May 2020, 08:10
Forum: Scripts and Functions
Topic: Simple GDI-Printing library -- SGDIPrint
Replies: 12
Views: 1827

Re: Simple GDI-Printing library -- SGDIPrint

The offsets for the DEVMODE structure used in the script in the OP are for DEVMODEA (ANSI). For dmOrientation , dmColor , and dmCopies you have to add 32 when using Unicode. thanks it works. I added 32 to each of these and it works under unicode. dmOrientation := NumGet(pDevModeOutput + 0, 44, "Sho...
by DataLife
22 May 2020, 07:13
Forum: Scripts and Functions
Topic: Simple GDI-Printing library -- SGDIPrint
Replies: 12
Views: 1827

Re: Simple GDI-Printing library -- SGDIPrint

just me wrote:
22 May 2020, 05:21
The offsets for the DEVMODE structure used in the script in the OP are for DEVMODEA (ANSI).


For dmOrientation, dmColor, and dmCopies you have to add 32 when using Unicode.
thanks, I will give that a try and report back.
by DataLife
21 May 2020, 12:44
Forum: Scripts and Functions
Topic: Simple GDI-Printing library -- SGDIPrint
Replies: 12
Views: 1827

Re: Simple GDI-Printing library -- SGDIPrint

gwarble thanks for the suggestion on the printed image size. I will try that when I get some free time. The other issue I am having is the function does not work properly on unicode. It does not obey the dmOrientation parameter. With Ansi it works properly. The details of this issue are in my 2nd p...
by DataLife
19 May 2020, 18:09
Forum: Scripts and Functions
Topic: Simple GDI-Printing library -- SGDIPrint
Replies: 12
Views: 1827

Re: Simple GDI-Printing library -- SGDIPrint

As far as I know the most recent version is in the first post of this thread.
It works very nicely on Ansi Autohotkey.
by DataLife
18 May 2020, 23:40
Forum: Scripts and Functions
Topic: Simple GDI-Printing library -- SGDIPrint
Replies: 12
Views: 1827

Re: Simple GDI-Printing library -- SGDIPrint

I was having trouble getting SGDIPrint to obey the dmOrientation parameter with Autohotkey Unicode. I could only get it to work by using Autohotkey Ansi. The original thread says it works on Ansi and Unicode but the code was removed due to protest. https://autohotkey.com/board/topic/76258-ahk-llibsi...
by DataLife
11 May 2020, 13:30
Forum: Tips and Tricks
Topic: Make Chrome use windows default printer
Replies: 1
Views: 589

Make Chrome use windows default printer

By design Chromes print preview selects the last printer that was used by chrome to print. If you want Chrome print preview to select windows default printer every time then add the registry key shown on this webpage. I looked for a long time for a solution and this is the only one I found that work...
by DataLife
04 May 2020, 14:18
Forum: Ask For Help
Topic: Text Alignment
Replies: 14
Views: 891

Re: Text Alignment

I wanted to add to your script but I didn't get a solution so I had to remove somethings and add others. I noticed that the second column is always first column +33 and when you move to new page it is also add +33 to last value of first column. Once you initialize with +33 difference it keeps it si...
by DataLife
03 May 2020, 20:32
Forum: Ask For Help
Topic: Text Alignment
Replies: 14
Views: 891

Re: Text Alignment

Right you are, Updated code above - it now loops until the end, which does of course add lots of empty lines to the output, so these are trimmed using RTrim, which means the last line may be missing the | if there is no value in column 2. 164 | 165 ; misses | thank you very much
by DataLife
03 May 2020, 12:25
Forum: Ask For Help
Topic: Text Alignment
Replies: 14
Views: 891

Re: Text Alignment

NumberOfRecords:=177 LinesPerPage:=33 ColBreak:=0 loop % NumberOfRecords ;this creates the variables for this example. I pull the variables from mulitiple locations Var%a_index% = %a_index% Loop, % NumberOfRecords { col1:=A_Index+ColBreak col2:=col1+LinesPerPage output .= Format("{:-45}", var%col1%...
by DataLife
03 May 2020, 11:32
Forum: Ask For Help
Topic: Text Alignment
Replies: 14
Views: 891

Re: Text Alignment

Smile_ wrote:
03 May 2020, 11:04
Waht you mean with next page? means below the first page or in right of it?
Below page 1 is page 2
by DataLife
03 May 2020, 10:45
Forum: Ask For Help
Topic: Text Alignment
Replies: 14
Views: 891

Text Alignment

I need to take a list of variables and position them in notepad in 2 columns and keep them in order as demostrated below. page1.JPG page2.JPG The below code does not work. It only records 66 variables in 2 columns. NumberOfRecords = 177 ;number of records will change loop %NumberOfRecords% ;this cre...
by DataLife
01 Mar 2020, 17:47
Forum: Ask For Help
Topic: Convert Function to Unicode Topic is solved
Replies: 4
Views: 415

Re: Convert Function to Unicode Topic is solved

teadrinker wrote:
01 Mar 2020, 15:13
Unicode symbol takes 2 bytes, so you need using StrLen(PCdata)*2 everywhere.
Fantastic. That worked.

thank you very much.
by DataLife
01 Mar 2020, 13:48
Forum: Ask For Help
Topic: Convert Function to Unicode Topic is solved
Replies: 4
Views: 415

Re: Convert Function to Unicode Topic is solved

@lmstearn
Thanks for the effort.

Maybe someone else can help convert the hex function to Unicode
by DataLife
01 Mar 2020, 08:48
Forum: Ask For Help
Topic: Help setting default printer (picking the right one if it moves) Topic is solved
Replies: 5
Views: 432

Re: Help setting default printer (picking the right one if it moves) Topic is solved

@whitenack Here you go. One line solution. Just put in the EXACT name of your printer. Put only this line in the autoexecute section of your script. RunWait, %WinDir%\System32\RUNDLL32.exe PRINTUI.DLL`,PrintUIEntry /y /n "Canon MG2500 series Printer" Only tested on Windows 10, Ansi and Unicode Autoh...
by DataLife
01 Mar 2020, 02:08
Forum: Forum Issues
Topic: Slow forum
Replies: 88
Views: 14769

Re: Slow forum

joedf wrote:
29 Feb 2020, 23:19
I FIXED IT!!!!!!!!!!!!!!!!! :DDDD
:dance:
Amazingly fast now.

Please tell us what fixed it?
by DataLife
01 Mar 2020, 01:29
Forum: Ask For Help
Topic: Convert Function to Unicode Topic is solved
Replies: 4
Views: 415

Convert Function to Unicode Topic is solved

I have been using SW copy protection by Laszlo for a couple of years now. I recently started using Unicode Autohotkey and found what appears to be the Hex function not working properly on Unicode Fingerprint1 and Fingerprint2 show to be the same on Unicode 32 bit, and works correctly on Ansi 32 bit....
by DataLife
21 Feb 2020, 19:18
Forum: Ask For Help
Topic: Change Title bar icon with GUI open Topic is solved
Replies: 3
Views: 256

Re: Change Title bar icon with GUI open Topic is solved

This is probably not the best way to do this and it is limited to 99 Gui's. But it works. Loop 99 { Gui %a_index%: +hwndgui%a_index% CurrentHWND := % Gui%a_index% hIcon := DllCall("LoadImage", uint, 0, str, a_scriptdir "\NewIcon.ico" , uint, 1, int, 0, int, 0, uint, 0x10) ; Type, Width, Height, Flag...
by DataLife
21 Feb 2020, 18:24
Forum: Ask For Help
Topic: Change Title bar icon with GUI open Topic is solved
Replies: 3
Views: 256

Re: Change Title bar icon with GUI open Topic is solved

thanks, the example in that post works. Now I need to make it change all open gui windows. I will work on that later tonight when I get time.

Go to advanced search