Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 1,001
» Latest member: MacroMarco
» Forum threads: 6,348
» Forum posts: 34,249

Full Statistics

Online Users
There are currently 7 online users.
» 0 Member(s) | 7 Guest(s)

Latest Threads
Combining findrx and Levn...
Forum: General
Last Post: Imagez
Yesterday, 03:52 PM
» Replies: 0
» Views: 32
Limit OpenSaveDialog to a...
Forum: General
Last Post: Gintaras
01-21-2018, 03:42 PM
» Replies: 1
» Views: 46
Dialog Style
Forum: General
Last Post: Gintaras
01-20-2018, 06:21 AM
» Replies: 1
» Views: 69
Match word letter by lett...
Forum: General
Last Post: Gintaras
01-19-2018, 04:29 PM
» Replies: 1
» Views: 46
Running macro on backgrou...
Forum: General
Last Post: Gintaras
01-15-2018, 01:08 PM
» Replies: 2
» Views: 205
Find, click in search res...
Forum: Wish List
Last Post: r0n
01-15-2018, 10:38 AM
» Replies: 2
» Views: 69
Background send message, ...
Forum: General
Last Post: ilya1111
01-08-2018, 06:07 PM
» Replies: 2
» Views: 300
Hotkeys doesnt work
Forum: Bug Reports
Last Post: Gintaras
01-07-2018, 07:50 AM
» Replies: 1
» Views: 85
find only first image
Forum: General
Last Post: ilya1111
01-04-2018, 01:00 PM
» Replies: 3
» Views: 153
wait for image problem
Forum: General
Last Post: john_b
12-28-2017, 08:42 PM
» Replies: 1
» Views: 100

 
  Help to activate and close the correct folder.
Posted by: ScottF - 12-10-2017, 07:57 PM - Forum: Programming - Replies (5)

If I have C:\Windows\System and C:\Windows\SystemApps open,
and I want to activate C:\Windows\System using a string, the code will activate
C:\Windows\SystemApps instead. The string is populated by an input.

So the input is "C:\Windows\System" (No Quotes) and both windows are inactive, When I use the code:
Macro OC

Code:
str s1
int w1=act(win(sFolder "CabinetWClass"))

It always activates C:\Windows\SystemApps instead.
This must be a flaw of windows, but is there a work around?
Need to activate and close the correct folder.
Is there a way to figure out the difference between the two folders for certainty??

Much thanks in advance.

Print this item

  func key with a member of class
Posted by: alsk - 12-09-2017, 01:00 AM - Forum: Programming - Replies (1)

Hi

I try to learn how to use a class and i have an issue with a single cmd:
why i can t use a.login with key ?

Code:
class testC
    str login
    str pass

testC a

a.login="mylogin"
a.pass="mypass"

key (a.login);;<-- is not good

str login="mylog2"

key (login) ;;<-- is good

Print this item

  QUESTION: macro to save & reopen all active applications
Posted by: kentatkoylia - 12-07-2017, 11:55 PM - Forum: Programming - No Replies

GOOD EVENING!
Does anyone know if 'anyone' has created a Quick Macros macro to 'save & then reopen' all applications that are active.
OR does anyone know of an application or program that will do this?

Thanks for any help!!!

Print this item

  Set/Change Dialog Image
Posted by: BJ - 12-05-2017, 05:01 PM - Forum: General - Replies (3)

I know the basics of displaying an image in a dialog, but Is it possible to make a button in the dialog or an outside macro change the path of the specified image so that the image will change?

Function dialog_image
Trigger F12     Help - how to add the trigger to the macro

Code:
;\Dialog_Editor

str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 248 152 "Set Image"
;3 Static 0x5400000E 0x0 16 16 96 96 ""
;4 Static 0x5400000E 0x4 136 16 96 96 ""
;7 Button 0x54032000 0x0 12 128 48 14 "Set 1"
;8 Button 0x54032000 0x0 68 128 48 14 "Set2"
;9 Button 0x54032000 0x0 132 128 48 14 "Set 1"
;10 Button 0x54032000 0x0 188 128 48 14 "Set2"
;5 Button 0x54020007 0x0 8 4 114 117 ""
;6 Button 0x54020007 0x0 128 4 112 117 ""
;END DIALOG
;DIALOG EDITOR: "" 0x2040500 "*" "" "" ""

str controls = "3 4"
str sb3 sb4
sb3 = "$desktop$\img\1.png"
sb4 = "$desktop$\img\2.png"
if(!ShowDialog(dd &sub.DlgProc &controls)) ret


#sub DlgProc
function# hDlg message wParam lParam

sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam

,case 7
,out "Change to img\2"

,case 8
,out "Change to img\1"

,case IDOK
,case IDCANCEL
ret 1

Print this item

  Application Window
Posted by: rampureadi - 12-05-2017, 05:44 AM - Forum: General - No Replies

Hello Friends,

I am wondering if it's possible to run macro only of specific application window for example i created macro for game but is it possible to make it work only on that window so i can do other work on my computer as of now i am running it normally because of which when macro is active i can't do any other work or use my computer.

Please help me if you know anything.

Best Regards,
Adi

Print this item

  How to use msctls_hotkey32
Posted by: BK - 12-04-2017, 07:10 AM - Forum: Programming - Replies (3)

Using the msctls_hotkey32 object
I want to output the same value as the result value below.
However, I tried many ways but I could not find a way.
Can I see an example?

Function dialog_hotkey_control_with_hook

Code:
;\Dialog_Editor

str controls = "3"
str e3
if(!ShowDialog("" &sub.DlgProc &controls)) ret

;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 224 136 "Dialog"
;3 Edit 0x54030080 0x200 64 8 152 12 ""
;4 Static 0x54000200 0x0 8 8 48 12 "Hotkey"
;1 Button 0x54030001 0x4 116 116 48 14 "OK"
;2 Button 0x54030000 0x4 168 116 48 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x2040105 "*" "" "" ""

#sub DlgProc
function# hDlg message wParam lParam

int- t_hhk t_hk
sel message
,case WM_INITDIALOG
,t_hhk=id(3 hDlg)
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case EN_SETFOCUS<<16|3
,int-- t_hh
,t_hh=SetWindowsHookEx(WH_KEYBOARD &sub.Hook_WH_KEYBOARD _hinst GetCurrentThreadId)
,case EN_KILLFOCUS<<16|3
,UnhookWindowsHookEx t_hh
,case IDOK
,out "hotkey: vk=%i, mod=%i" t_hk&255 t_hk>>8
,;note: mod used with RegisterHotKey is different: need to swap the first and third bits.
,case IDCANCEL
ret 1


#sub Hook_WH_KEYBOARD
function# nCode vk lparam
if(nCode<0) goto gNext

int up(lparam&0x80000000) m mod

sel(vk) case VK_SHIFT m=1; case VK_CONTROL m=2; case VK_MENU m=4; case [VK_LWIN,VK_RWIN] m=8
int-- t_mod
if(m) vk=0; if(up) t_mod~m; else t_mod|m
else mod=t_mod

if(!up) sub.SetHotkey vk mod

ret 1

;gNext
ret CallNextHookEx(0 nCode vk +lparam)


#sub SetHotkey
function vk mod

int- t_hhk t_hk
FormatKeyString vk mod &_s
_s.setwintext(t_hhk)
t_hk=mod<<8|vk

Print this item

  Console command
Posted by: Valentin - 12-04-2017, 06:19 AM - Forum: General - No Replies

Hello,

I have a problem with obtaining the desired result when I want to execute this in command window: program.exe -p 700.
When doing it directly from command window works, but when using "run" or "RunConsole2" it does not work. I need it as administrator so:
run "C:\program.exe, -p 700" "" "" "" 0x10000

Thank you.

Print this item

  Help to Receive shortcut param in a qm created exe
Posted by: ScottF - 12-03-2017, 01:16 AM - Forum: Programming - Replies (4)

Need help to receive shortcut param in a qm created exe.

Eg. I created an .exe with QM.
This program first thing, needs to check for the shortcuts params. The program does not know the path to the shortcut.
For example.. How does QM handle the "v"?
Desktop shortcut for QM:
"C:\Program Files (x86)\Quick Macros 2\qm.exe" v <---

1) Multiple shortcuts pointing to same program.
Some will have no arguments, and some will.

2) Shortcut target is:
C:\UT\OC\O_C.exe -sc <-- ;; this is what O_C.exe will look for.

Code below: sorry could not get code for forum to go correctly...
<<< STRINGS >>>
str s1
str sIni
str sRunPath;; ie. "C:\UT"
str sWinName;; ie. "UT"

<<< CHECK SHORTCUTINFO >>>

SHORTCUTINFO si
GetShortcutInfoEx(s1 si);; s1=Path to Shortcut si=Args
out si.initdir
out si.param;; ie. "-sc" look for this in O_C.exe program first thing!
if si.param="-sc"
sRunPath=si.initdir
goto Process:
else
goto GetPath:
end


Any help, many thanks.

Print this item

  How To Search Multiple Words On Website
Posted by: white700 - 11-30-2017, 10:12 PM - Forum: General - Replies (2)

Hi, I'd like to know if this is possible to search mutiple words on a website using one or few lines of script instead of searching word by word


Code:
,Acc a.Find(win() "TEXT" "California" "" 0x1000);err wait 0.10;goto Kansas
,goto No
,;Kansas
,Acc a1.Find(win() "TEXT" "Kansas" "" 0x1000);err wait 0.10;goto Los Angeles
,goto No
,;Los Angeles
,Acc a2.Find(win() "TEXT" "Los Angeles" "" 0x1000);err wait 0.10;goto New York
,goto No
,;New York
,Acc a3.Find(win() "TEXT" "New York" "" 0x1000);err wait 0.10;goto Continue
,goto No
,;Continue

What I want to do is to make the script search through many words and if it find any of them through the whole list it would goto No, how to simplify this? thank you in advance.

Print this item

  How to end rep after a specific time duration???
Posted by: Khing - 11-30-2017, 09:29 AM - Forum: General - Replies (4)

I'm very new to this but i got the logic and idea of it.
I know that it is possible to set a rep to loop an n amount of times.
But i can't seam to find the code anywhere on how to end a rep loop after x number of minutes. Is it even possible?

I need help.

Print this item