ฟอรั่ม PSsix

Would you like to react to this message? Create an account in a few clicks or log in to continue.

ฟอรั่มของบล็อก http://pssix.blogspot.com


2 posters

    ดักจับ Notifications ของ google talk ครับ

    avatar
    neeo
    มือใหม่เพิ่งสมัคร
    มือใหม่เพิ่งสมัคร


    ดักจับ Notifications ของ google talk ครับ Empty ดักจับ Notifications ของ google talk ครับ Empty
    จำนวนข้อความ : 6
    ความนิยม : 0
    เข้าร่วมเมื่อ : 31/08/2011

    ดักจับ Notifications ของ google talk ครับ Empty ดักจับ Notifications ของ google talk ครับ

    ตั้งหัวข้อ by neeo 12/02/13, 02:42 am

    ท่าน pos ครับผมพยายามดักจับ Notifications ของ google talk เพื่อที่จะให้ไป run สคริปครับ
    รบกวนท่าน pos แนะนำแนวทางด้วยครับ Notifications ของ google talk จะแจ้งคล้าย popup
    เลื่อนขึ้นมาจากด้านล่าง
    [You must be registered and logged in to see this link.]

    ผมลองอย่างนี้แล้วครับไม่ได้

    WinWait("google talk")
    Run(@ScriptDir & "\run.exe")
    Sleep(500)
    ProcessClose("run.exe")

    ขอบคุณมากครับ
    POS
    POS
    PSsix
    PSsix


    ดักจับ Notifications ของ google talk ครับ Empty ดักจับ Notifications ของ google talk ครับ Empty ดักจับ Notifications ของ google talk ครับ Empty
    จำนวนข้อความ : 1152
    ความนิยม : 326
    เข้าร่วมเมื่อ : 19/07/2010

    ดักจับ Notifications ของ google talk ครับ Empty Re: ดักจับ Notifications ของ google talk ครับ

    ตั้งหัวข้อ by POS 12/02/13, 06:11 am

    ใช้โปรแกรม AutoIt Window Info ลากไปวางที่หน้าต่างแจ้งเตือน ดูว่าแสดงรายละเอียดอะไรมาบ้างครับ ผมไม่แน่ใจว่าหน้าต่างนี้สร้างขึ้นมาจากอะไร เพราะคำสั่ง WinWait ตรวจจับได้เฉพาะหน้าต่างที่เรียกจาก APIวินโดวส์เท่านั้น
    avatar
    neeo
    มือใหม่เพิ่งสมัคร
    มือใหม่เพิ่งสมัคร


    ดักจับ Notifications ของ google talk ครับ Empty ดักจับ Notifications ของ google talk ครับ Empty
    จำนวนข้อความ : 6
    ความนิยม : 0
    เข้าร่วมเมื่อ : 31/08/2011

    ดักจับ Notifications ของ google talk ครับ Empty Re: ดักจับ Notifications ของ google talk ครับ

    ตั้งหัวข้อ by neeo 14/02/13, 11:19 am

    ขอบคุณแนวทางจากท่าน pos ครับ สำเร็จแล้วครับ เลยเอามาแจง เผื่อท่านอื่นจะเอาไปต่อยอดครับ
    ตอนนี้เป็น email alert google แบบง่ายๆ


    HotKeySet("{ESC}", "stop")

    Func stop()
    ToolTip("stop", 0, 0)
    Sleep(100)
    Exit
    EndFunc

    While 1
    Sleep(10000)
    WinWait("Google Notification")
    SoundPlay(@ScriptDir & "\newmail.wav") ;ใส่เสียงที่ต้องการให้แสดง
    Run(@ScriptDir & "\run.exe") ;ใส่โปรแกรมที่ต้องการให้รันอัตโนมัต
    Sleep(3000)
    If WinWait("Google Notification") Then ExitLoop

    WEnd

    ขอบคุณมากครับ

      เวลาขณะนี้ 19/05/24, 08:30 pm