Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DirectX - Mouse Won't Move
#31
Autoit test on another computer is successful, the following code can be successfully run, but the AHK is no


Attached Files Image(s)
   
#32
Ahk code, suggesting the following error


Attached Files Image(s)
   
#33
what is CLSID ? Confusedhock:
#34
Don't use IDispatch, it will not work anyway on computers where the COM dll is not registered. Use AHK type libarary, like with Autoit.
#35
I do not know (AHK type libarary) :oops:
#36
Look in 'COM libraries' dialog. If cannot find, register the dll file with button 'Register...'.
#37
I found, but after generating exe, still can not run, the right corner of the task bar, there will be an AHK icon, when I moved to it, the icon disappears

The following code, run in the QM editor, is normal

Macro Macro4
Code:
Copy      Help
AutoHotkey.CoCOMServer ahk._create(0 "$qm$\AutoHotkey.dll")
_s=
;MsgBox, test
ahk.ahktextdll(_s)


;BEGIN PROJECT
;main_function  Macro4
;exe_file  $my qm$\Macro4.exe
;icon  <default>
;manifest  $qm$\default.exe.manifest
;flags  6
;guid  {064BD790-C223-4338-97CC-448B668AEDDC}
;END PROJECT
#38
I guess that the function starts the AHK script and does not wait. Add this after it:

mes "Close me when the AHK script will end."
#39
The following code, you can run successfully, the command (run, notepad)

Why the (msgbox command) can not run?

Macro Macro4
Code:
Copy      Help
AutoHotkey.CoCOMServer ahk._create(0 "$qm$\AutoHotkey.dll")
_s=
;run, notepad
ahk.ahktextdll(_s)



;BEGIN PROJECT
;main_function  Macro4
;exe_file  $my qm$\Macro4.exe
;icon  <default>
;manifest  $qm$\default.exe.manifest
;flags  6
;guid  {064BD790-C223-4338-97CC-448B668AEDDC}
;END PROJECT
#40
You are right, I learned a lot of things to you, thank you very much! I am stupid, but I will continue to study hard Tongue


Forum Jump:


Users browsing this thread: 1 Guest(s)